In V5-7-patches branch, recent changes to the configuration system (7c38dba08, 9e4b85d67 ) introduced bugs for Debian build systems since debian dpkg-buildflags produces "-Werror=format-security" and not just
"-Werror".
The existing "sed" expression in configure.ac only removes the "-Werror" leaving a
dangling "=format-security" which fails in dh_auto_configure (as part of a dpkg-buildpackage).
The patch looks a little odd because of m4 "absorbs" the square brackets in the regular expression.
Instead of square brackets to collect the string after the "-Werror", we need to use the quadrigraphs
@<:@ and @:>@ for [ and ] respectively.
I've tested this by merging latest upstream V5-7-patches into my branch and building with
dpkg-buildpackage -uc -us on latest Debian Jessie (Linux debian-stable 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux).
Regards,
Sam Tannous
Unfortunately, this causes other problems in compiling later on.
snmp_perl.c:5:20: fatal error: EXTERN.h: No such file or directory
So until I can figure out why this change in configure.ac (removing -Werror=format-security)
causes snmp_perl.c to not compile, I'm going to revert the two patches that caused this Debian
build breakage.
Please retest with the latest version of the Net-SNMP code. A fix for the build error mentioned above was checked in yesterday (https://sourceforge.net/p/net-snmp/code/ci/32cc6c32f96f17a5a4ccab1ae3a3896894fb4b97/).
Hey Bart,
Thanks for the quick patch for the Perl problem.
But Debian users will still have issues with an invalid configure script since removing only "-Werror" leaves a dangling "=format-security":
The last patch would need to remove "-Werror" and with a regex expression for m4 (yucky since m4 absorbs []). Something like this will work (feel free to use the quadrigraphs @<:@ and @:>@
if you like them instead of the [[foo]] ;-)
Thanks,
Sam Tannous
Please retest with the latest version of the master or the v5.7 branch.
Hi Bart,
I probably didn't make this clear enough in my last response....
I did test with latest v5.7 and without my patch, the build fails as described in my original patch.
The "sed" call has to remove -Werror as well as the other part of the argument. So the
configure fails since there is a dangling =format-security that is present in Debian build systems
that are tracking this branch (like mine).
So with my patch applied to the latest v5.7 branch, it works on Debian Jessie systems.
But if you could accept my patch, we'd have a working branch for Debian users.
Thanks,
Sam
The reason I asked to retest is because I checked in the following patch a about one hour ago: https://sourceforge.net/p/net-snmp/code/ci/d28eefcf4062091f6dd35a64c0fbae55ad04aaf3/
Yes, sorry. It works fine. (And your regex is cleaner then mine.)
Thanks for the report and for testing!