On Thu, 7 Apr 2022 at 07:11, Craig Small <csm...@dropbear.xyz> wrote:
> I'll run the source code through a standard Debian pbuilder and one with > OpenSSL v3 added as well to check it works with both versions. > Standard Debian sid pbuilder came up with this error below. convert_v1pdu_to_v2() and send_v2trap() are in agent/agent_trap.c I'm trying to work out why this compile failed while the previous one worked. It's either the Debian specific patches or the build flags. So, some more investigation is needed; but if anyone has some ideas about where to look that would be helpful. - Craig libtool: compile: gcc -I../include -I. -I../agent -I../agent/helpers -I../agent/mibgroup -I../snmplib -I/usr/include/mariadb/ -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 "-ffile-prefix-map=/build/net-snmp-5.9.2~pre1+dfsg=." -fstack-protector-strong -Wformat -Werror=format-security -DNETSNMP_USE_INLINE -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 "-ffile-prefix-map=/build/net-snmp-5.9.2~pre1+dfsg=." -fstack-protector-strong -Wformat -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.34/CORE -c snmptrapd_sql.c -o snmptrapd_sql.o >/dev/null 2>&1 /bin/bash ../libtool --mode=link gcc -g -O2 -ffile-prefix-map=/build/net-snmp-5.9.2~pre1+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DNETSNMP_USE_INLINE -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -ffile-prefix-map=/build/net-snmp-5.9.2~pre1+dfsg=. -fstack-protector-strong -Wformat -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.34/CORE -rpath /usr/lib/x86_64-linux-gnu -version-info 41:0:2 -Wl,-no-undefined -o libnetsnmptrapd.la snmptrapd_handlers.lo snmptrapd_log.lo snmptrapd_auth.lo snmptrapd_sql.lo ../agent/libnetsnmpmibs.la -L/usr/lib/x86_64-linux-gnu/ -lmariadb ../snmplib/libnetsnmp.la -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -Wl,-z,relro -Wl,-z,now libtool: link: gcc -shared -fPIC -DPIC .libs/snmptrapd_handlers.o .libs/snmptrapd_log.o .libs/snmptrapd_auth.o .libs/snmptrapd_sql.o -Wl,-rpath -Wl,/build/net-snmp-5.9.2~pre1+dfsg/agent/.libs -Wl,-rpath -Wl,/build/net-snmp-5.9.2~pre1+dfsg/snmplib/.libs ../agent/.libs/libnetsnmpmibs.so -L/usr/lib/x86_64-linux-gnu/ -lmariadb ../snmplib/.libs/libnetsnmp.so -L/usr/local/lib -L/usr/lib/x86_64-linux-gnu/perl/5.34/CORE -lperl -ldl -lm -lpthread -lc -lcrypt -g -O2 -fstack-protector-strong -g -O2 -fstack-protector-strong -Wl,-no-undefined -Wl,-E -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libnetsnmptrapd.so.39 -o .libs/libnetsnmptrapd.so.39.2.0 /usr/bin/ld: .libs/snmptrapd_handlers.o: in function `command_handler': ./apps/snmptrapd_handlers.c:862: undefined reference to `run_shell_command' /usr/bin/ld: ./apps/snmptrapd_handlers.c:818: undefined reference to `convert_v1pdu_to_v2' /usr/bin/ld: .libs/snmptrapd_handlers.o: in function `axforward_handler': ./apps/snmptrapd_handlers.c:883: undefined reference to `send_v2trap' /usr/bin/ld: .libs/snmptrapd_auth.o: in function `netsnmp_trapd_auth': ./apps/snmptrapd_auth.c:138: undefined reference to `vacm_check_view_contents' /usr/bin/ld: ./apps/snmptrapd_auth.c:95: undefined reference to `convert_v1pdu_to_v2' /usr/bin/ld: .libs/snmptrapd_auth.o: in function `init_netsnmp_trapd_auth': ./apps/snmptrapd_auth.c:51: undefined reference to `init_vacm_config_tokens' collect2: error: ld returned 1 exit status >
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders