Travis Cross [Tue, 13 May 2014 17:36:15 +0000 (17:36 +0000)]
Avoid polluting CFLAGS for mod_snmp
Putting `net-snmp-config --cflags` into CFLAGS causes major pollution;
it overrides optimization and debugging levels, warnings, and more.
While normally we do want to automatically locate library headers,
there has to be a better way to do this. libsnmp is normally in the
usual place and doesn't need special handling. Perhaps people with
libsnmp in a weird place should just need to add the -I flag to their
CFLAGS before build.
Travis Cross [Tue, 13 May 2014 17:27:46 +0000 (17:27 +0000)]
Cleanup makefile library dependencies of mod_snmp
Calling out to net-snmp-config --agent-libs causes transitive
dependencies to get pulled in, but we don't need those -- a sensible
dynamic linker pulls those in automatically. Trying to track the
transitive dependencies manually would be a losing battle.
People were recently hitting this on Debian sid/jessie, where libpci
is in the transitive dependency list but isn't otherwise one of our
build dependencies.
Travis Cross [Fri, 9 May 2014 20:19:00 +0000 (20:19 +0000)]
Test for pkg-config in configure
We depend on pkg-config, but we weren't explicitly testing for it, so
the absence of pkg-config would cause the sqlite test to fail, which
was confusing.
Steve Underwood [Tue, 6 May 2014 19:07:07 +0000 (03:07 +0800)]
Initialise custom TIFF directory offsets, as some versions of libtiff seem
to only set the low 32 bits of the 64 bit offset if the file only contains
a 32 bit offset.
FS-6506 --resolve Technically when you are not using groups you do not add a <users> tag inside <domain> you just put several <user> tags in <domain> This patch will consume an extraneous <users> tag and move on making it work either way.
sofia is treating all notify sending as if they were natted rather than when nat is detected. This causes issues on some polycoms that use strange ports in their contact for getting notifies that do not match the port the calls come from
Travis Cross [Mon, 5 May 2014 21:38:52 +0000 (21:38 +0000)]
Avoid training :'s in paths
When the path was empty, path_push_unique would cause a training colon
to be added. This was a known issue that didn't cause any harm, but
while we're here, we'll clean this up.
Travis Cross [Mon, 5 May 2014 21:26:34 +0000 (21:26 +0000)]
Work around Mac's broken sed
sed on Mac is apparently incredibly broken and incapable of adding
newlines. `printf 'x' | sed 's/x/\n/'` results in 'n' on Mac rather
than a newline. GNU sed even in --posix mode does not agree with this
behavior. None the less, we can work around it here.
Travis Cross [Fri, 2 May 2014 18:06:42 +0000 (18:06 +0000)]
Add a fallback test for ldns system library
Some systems don't have the pkg-config file, or don't have it in the
right place. Breaking build on those systems does have the positive
effect of getting people to file bugs with those distros, but we
should at least keep things working on Debian wheezy while getting
Debian to accept the fix to ldns.
Michael Jerris [Fri, 2 May 2014 17:26:37 +0000 (13:26 -0400)]
FS-353: look for ldns pkg-config for homebrew, you will need to update your homebrew ldns package if you installed it prior to this commit, they just fixed the pkg-config file being installed
Travis Cross [Fri, 2 May 2014 03:38:14 +0000 (03:38 +0000)]
Avoid leaking data_buf in mod_conference
When we couldn't acquire the rwlock on the conference we were leaking
a buffer we just allocated. On a 48k/10ms conference we would leak
960 bytes per attempt.
Travis Cross [Thu, 1 May 2014 21:17:45 +0000 (21:17 +0000)]
Use system ldns library
This library is used only by mod_enum and is available on most
platforms. The version in our tree has many code quality problems
that are generating noise when doing static analysis. Suffice it to
say we want rid of it as our responsibility.