Re: Getting linker error for Net-snmp. Need help

Magnus Fromreide <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
On Wed, Feb 27, 2019 at 09:23:40AM +0000, [email protected] wrote:
> Please let me know the fix for the same.

Please let us know what you did before the make.
How did you invoke configure?
Did you run in a clean checkout?

> # make
> making all in /usr/pkg/src/net-snmp-5.8/snmplib
> making all in /usr/pkg/src/net-snmp-5.8/agent
> making all in /usr/pkg/src/net-snmp-5.8/agent/helpers
> making all in /usr/pkg/src/net-snmp-5.8/agent/mibgroup
> /bin/sh ../libtool --mode=link gcc -g -O2 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Unetbsdelf7 -Dnetbsdelf7=netbsdelf7 -o snmpd snmpd.lo  libnetsnmpagent.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lelf -lm
> libtool: link: gcc -g -O2 -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -g -O2 -Unetbsdelf7 -Dnetbsdelf7=netbsdelf7 -o .libs/snmpd .libs/snmpd.o  ./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so /usr/pkg/src/net-snmp-5.8/agent/.libs/libnetsnmpagent.so /usr/pkg/src/net-snmp-5.8/snmplib/.libs/libnetsnmp.so -lkvm ../snmplib/.libs/libnetsnmp.so -lcrypto -lelf -lm  -Wl,-rpath -Wl,/usr/local/lib
> ./.libs/libnetsnmpmibs.so: undefined reference to `netbsd_read_ip_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to `netbsd_read_icmp_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to `netbsd_read_icmp6_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to `netbsd_read_icmp_msg_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to `netbsd_read_icmp6_msg_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to `netbsd_read_tcp_stat'
> ./.libs/libnetsnmpmibs.so: undefined reference to `netbsd_read_udp_stat'
> 
> Regards,
> Kiran


> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.