Hi,
  The build script has found a valid problem, but is giving an incorrect
error message.

The message:

checking whether C compiler supports flag "-g -O2
-Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/net-snmp-5.9.5.2+dfsg=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -DNETSNMP_USE_INLINE
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64
-Werror=declaration-after-statement -g -O2
-ffile-prefix-map=/build/reproducible-path/net-snmp-5.9.5.2+dfsg=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-fcf-protection -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE -I/usr/include/libnl3
-I/usr/include/libnl3 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include
-Wl,-z,relro -Wl,-z,now -fcf-protection -L/usr/lib/x86_64-linux-gnu
-lnetsnmpmibs -lsensors -lpci -lnl-route-3 -lnl-3 -lm -lnetsnmpagent
-lwrap -Wl,-E -lnetsnmp -lm -lssl -lssl -lssl -lssl -lcrypto" from
Net-SNMP... no
configure: error: *** incorrect CFLAGS from net-snmp-config


Not quite, looking at the build log shows:

configure:23483: checking whether C compiler supports flag "-g -O2
-Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/net-snmp-5.9.5.2+dfsg=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -DNETSNMP_USE_INLINE
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64
-Werror=declaration-after-statement -g -O2
-ffile-prefix-map=/build/reproducible-path/net-snmp-5.9.5.2+dfsg=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-fcf-protection -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE -I/usr/include/libnl3
-I/usr/include/libnl3 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include
-Wl,-z,relro -Wl,-z,now -fcf-protection -L/usr/lib/x86_64-linux-gnu
-lnetsnmpmibs -lsensors -lpci -lnl-route-3 -lnl-3 -lm -lnetsnmpagent
-lwrap -Wl,-E -lnetsnmp -lm -lssl -lssl -lssl -lssl -lcrypto" from
Net-SNMP
configure:23502: gcc -o conftest -g -O2
-Werror=implicit-function-declaration
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security
-fcf-protection -isystem /usr/include/x86_64-linux-gnu/bsd
-DLIBBSD_OVERLAY  -g -O2 -Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/net-snmp-5.9.5.2+dfsg=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -DNETSNMP_USE_INLINE
-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64
-Werror=declaration-after-statement -g -O2
-ffile-prefix-map=/build/reproducible-path/net-snmp-5.9.5.2+dfsg=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-fcf-protection -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/x86_64-linux-gnu/perl/5.40/CORE -I/usr/include/libnl3
-I/usr/include/libnl3 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include
-Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -fcf-protection
conftest.c  -lbsd  -Wl,-z,relro -Wl,-z,now -fcf-protection
-L/usr/lib/x86_64-linux-gnu -lnetsnmpmibs -lsensors -lpci -lnl-route-3
-lnl-3 -lm -lnetsnmpagent -lwrap -Wl,-E -lnetsnmp -lm -lssl -lssl
-lssl -lssl -lcrypto >&5
/usr/bin/ld: cannot find -lnl-route-3: No such file or directory
/usr/bin/ld: cannot find -lnl-3: No such file or directory

This (the missing libraries) is the actual issue. Already reported in
#1124219 and fixed in net-snmp 5.9.5.2+dfsg-2 which I'll upload shortly.

I think you just have to wait for that to appear and this will be fixed.

 - Craig

Reply via email to