Hi Bart
Command used: cd /var/mps64/main/rs_ads_dev/usr.src/contrib/net-snmp/net-snmp-5.9.1 && ./configure -C --without-perl-modules --disable-embedded-perl --disable-perl-cc-checks --with-enterprise-sysoid="1.3.6.1.4.1.5951.6" --disable-applications --disable-manuals --disable-scripts --with-default-snmp-version="3" --with-sys-contact="citrix" --with-sys-location="location" --with-logfile="." --with-persistent-directory="/var/mps/netsnmp/" --enable-mini-agent --enable-reentrant --with-mib-modules=mps,mpsGet --with-cflags='-I/var/mps64/main/rs_ads_dev/usr.src/contrib/zeromq-4.1.0/include -I/var/mps64/main/rs_ads_dev/usr.src/crypto/openssl/include -DOPENSSL_FIPS -DNETSCALER -DNETSNMP_NO_INLINE' --with-libs=-lzmq --with-out-mib-modules="mibII/sysORTable" --without-pcre --with-ldflags='-L/var/mps64/main/rs_ads_dev/usr.src/contrib/zeromq-4.1.0/src/.libs -L/usr/obj/var/mps64/main/rs_ads_dev/usr.src/secure/lib/libcrypto -lcrypto -Wl,-rpath,/usr/obj/var/mps64/main/rs_ads_dev/usr.src/secure/lib/libcrypto' > config.out Following is the configure output checking for kvm.h... (cached) yes checking for library containing kvm_read... (cached) none required checking for library containing kvm_openfiles... (cached) none required checking for library containing kvm_getprocs... (cached) none required checking for library containing kvm_getproc2... (cached) no checking for library containing kvm_getfiles... (cached) no checking for library containing kvm_getfile2... (cached) no checking for library containing kvm_getswapinfo... (cached) none required checking for kvm_openfiles... (cached) yes checking for kvm_getprocs... (cached) yes checking for kvm_getproc2... (cached) no checking for kvm_getswapinfo... (cached) yes checking for kvm_getfiles... (cached) no checking for kvm_getfile2... (cached) no Thank you Krishna Vivek From: Bart Van Assche <bvanass...@acm.org> Sent: 05 July 2021 21:18 To: Krishna Vivek Vitta <krishna.vivekvi...@citrix.com>; Krishna Vivek Vitta via Net-snmp-users <net-snmp-users@lists.sourceforge.net> Subject: Re: Building net-snmp-5.9.1 in Freebsd [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments unless you have verified the sender and know the content is safe. On 7/1/21 9:33 PM, Krishna Vivek Vitta via Net-snmp-users wrote: Hi Experts I am upgrading 5.8 to 5.9.1 in Freebsd 11.4 setup. During the course of compilation, we received the below errors: libtool: link: cc -shared -fPIC -DPIC helpers/.libs/all_helpers.o helpers/.libs/baby_steps.o helpers/.libs/bulk_to_ne xt.o helpers/.libs/cache_handler.o helpers/.libs/debug_handler.o helpers/.libs/instance.o helpers/.libs/mode_end_call.o helpers/.libs/multiplexer.o helpers/.libs/null.o helpers/.libs/old_api.o helpers/.libs/read_only.o helpers/.libs/row_m erge.o helpers/.libs/scalar.o helpers/.libs/scalar_group.o helpers/.libs/serialize.o helpers/.libs/snmp_get_statistic.o helpers/.libs/stash_cache.o helpers/.libs/stash_to_next.o helpers/.libs/table.o helpers/.libs/table_array.o helpers/.l ibs/table_container.o helpers/.libs/table_data.o helpers/.libs/table_dataset.o helpers/.libs/table_iterator.o helpers/. libs/table_row.o helpers/.libs/table_tdata.o helpers/.libs/watcher.o .libs/agent_handler.o .libs/agent_index.o .libs/ag ent_read_config.o .libs/agent_registry.o .libs/agent_sysORTable.o .libs/agent_trap.o .libs/kernel.o .libs/netsnmp_close _fds.o .libs/snmp_agent.o .libs/snmp_vars.o mibgroup/mibII/.libs/vacm_conf.o mibgroup/snmpv3/.libs/usmConf.o -Wl,-rpa th -Wl,/var/mps64/main/rs_ads_dev/usr.src/contrib/net-snmp/net-snmp-5.9.1/snmplib/.libs -Wl,-rpath -Wl,/usr/local/lib . ./snmplib/.libs/libnetsnmp.so -L/var/mps64/main/rs_ads_dev/usr.src/contrib/zeromq-4.1.0/src/.libs -L/usr/obj/var/mps64/ main/rs_ads_dev/usr.src/secure/lib/libcrypto -lcrypto -lelf -Wl,-no-undefined -Wl,-rpath -Wl,/usr/obj/var/mps64/main/r s_ads_dev/usr.src/secure/lib/libcrypto -Wl,-soname -Wl,libnetsnmpagent.so.40 -o .libs/libnetsnmpagent.so.40.1.0 .libs/kernel.o: In function `init_kmem': kernel.c:(.text+0x2f): undefined reference to `kvm_openfiles' kernel.c:(.text+0x64): undefined reference to `kvm_openfiles' .libs/kernel.o: In function `klookup': kernel.c:(.text+0x118): undefined reference to `kvm_read' kernel.c:(.text+0x157): undefined reference to `kvm_geterr' .libs/kernel.o: In function `free_kmem': kernel.c:(.text+0x1c0): undefined reference to `kvm_close' cc: error: linker command failed with exit code 1 (use -v to see invocation) gmake[1]: *** [Makefile:492: libnetsnmpagent.la] Error 1 gmake[1]: Leaving directory '/var/mps64/main/rs_ads_dev/usr.src/contrib/net-snmp/net-snmp-5.9.1/agent' gmake: *** [Makefile:674: subdirs] Error 1 Is there any way to disable linking of kvm using configure command ? The above errors weren't returned during compiling in 5.8 Can you share the configure output related to kvm? Net-SNMP v5.9.1 builds and runs fine in my FreeBSD 13 virtual machine. I see the following related to kvm in the Net-SNMP configure output: [ ... ] checking kvm.h usability... yes checking kvm.h presence... yes checking for kvm.h... yes [ ... ] checking for library containing kvm_read... -lkvm checking for library containing kvm_openfiles... none required checking for library containing kvm_getprocs... -lkvm checking for library containing kvm_getproc2... no checking for library containing kvm_getfiles... no checking for library containing kvm_getfile2... no checking for library containing kvm_getswapinfo... none required checking for kvm_openfiles... yes checking for kvm_getprocs... yes checking for kvm_getproc2... no checking for kvm_getswapinfo... yes checking for kvm_getfiles... no checking for kvm_getfile2... no [ ... ] Bart.
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users