net/net-snmp: Linker Failure

Larry Rosenman ler at lerctr.org
Sun Jan 25 20:18:27 UTC 2015


libtool: link: ( cd ".libs" && rm -f "libnetsnmpmibs.la" && ln -s 
"../libnetsnmpmibs.la" "libnetsnmpmibs.la" )
: libnetsnmpmibs.la
/bin/sh ../libtool --mode=compile cc -I../include -I. -I../agent 
-I../agent/mibgroup  -I../snmplib -I/usr/include -DNETSNMP_ENABLE_IPV6 
-fno-strict-aliasing -O2 -pipe  -I/usr/local/include -I/include 
-D_WANT_IFADDR -fstack-protector -fno-strict-aliasing -std=c99 
-Ufreebsd11 -Dfreebsd11=freebsd11  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include  
-I/usr/local/lib/perl5/5.16/mach/CORE -c -o snmpd.lo snmpd.c
libtool: compile:  cc -I../include -I. -I../agent -I../agent/mibgroup 
-I../snmplib -I/usr/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing 
-O2 -pipe -I/usr/local/include -I/include -D_WANT_IFADDR 
-fstack-protector -fno-strict-aliasing -std=c99 -Ufreebsd11 
-Dfreebsd11=freebsd11 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-I/usr/local/lib/perl5/5.16/mach/CORE -c snmpd.c  -fPIC -DPIC -o 
.libs/snmpd.o
libtool: compile:  cc -I../include -I. -I../agent -I../agent/mibgroup 
-I../snmplib -I/usr/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing 
-O2 -pipe -I/usr/local/include -I/include -D_WANT_IFADDR 
-fstack-protector -fno-strict-aliasing -std=c99 -Ufreebsd11 
-Dfreebsd11=freebsd11 -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include 
-I/usr/local/lib/perl5/5.16/mach/CORE -c snmpd.c -o snmpd.o >/dev/null 
2>&1
/bin/sh ../libtool --mode=link cc -DNETSNMP_ENABLE_IPV6 
-fno-strict-aliasing -O2 -pipe  -I/usr/local/include -I/include 
-D_WANT_IFADDR -fstack-protector -fno-strict-aliasing -std=c99 
-Ufreebsd11 -Dfreebsd11=freebsd11  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include  
-I/usr/local/lib/perl5/5.16/mach/CORE -o snmpd snmpd.lo -L/usr/lib -lm 
-lkvm -ldevstat -L/lib -L/usr/local/lib libnetsnmpagent.la 
libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lelf -lpkg -lssp_nonshared 
-Wl,-R/usr/local/lib/perl5/5.16/mach/CORE  -lpkg
libtool: link: cc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -pipe 
-I/usr/local/include -I/include -D_WANT_IFADDR -fstack-protector 
-fno-strict-aliasing -std=c99 -Ufreebsd11 -Dfreebsd11=freebsd11 
-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe 
-fstack-protector -I/usr/local/include 
-I/usr/local/lib/perl5/5.16/mach/CORE -o .libs/snmpd .libs/snmpd.o 
-Wl,-R/usr/local/lib/perl5/5.16/mach/CORE  -L/usr/lib -L/lib 
-L/usr/local/lib ./.libs/libnetsnmpagent.so 
-L/usr/local/lib/perl5/5.16/mach/CORE ./.libs/libnetsnmpmibs.so 
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/agent/.libs/libnetsnmpagent.so 
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/snmplib/.libs/libnetsnmp.so 
../snmplib/.libs/libnetsnmp.so -lpci -lwrap -lperl -lcrypt -lutil -lelf 
-lpkg -lssp_nonshared -lm -lkvm -ldevstat -lcrypto -pthread  -Wl,-rpath 
-Wl,/usr/local/lib
./.libs/libnetsnmpmibs.so: undefined reference to 
`sysctl_read_icmp_stat'
./.libs/libnetsnmpmibs.so: undefined reference to 
`sysctl_read_icmp6_stat'
./.libs/libnetsnmpmibs.so: undefined reference to 
`sysctl_read_icmp6_msg_stat'
./.libs/libnetsnmpmibs.so: undefined reference to 
`sysctl_read_icmp_msg_stat'
cc: error: linker command failed with exit code 1 (use -v to see 
invocation)
*** Error code 1

Stop.
make[3]: stopped in 
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/agent
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net-mgmt/net-snmp
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/net-snmp

===>>> make build failed for net-mgmt/net-snmp
===>>> Aborting update

Ideas?

borg.lerctr.org /usr/ports # svn info
Path: .
Working Copy Root Path: /usr/ports
URL: svn://svn.freebsd.org/ports/head
Relative URL: ^/head
Repository Root: svn://svn.freebsd.org/ports
Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
Revision: 377899
Node Kind: directory
Schedule: normal
Last Changed Author: matthew
Last Changed Rev: 377899
Last Changed Date: 2015-01-25 13:17:27 -0600 (Sun, 25 Jan 2015)

borg.lerctr.org /usr/ports # uname -aKU
FreeBSD borg.lerctr.org 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r277674: 
Sat Jan 24 22:28:36 CST 2015     
root at borg.lerctr.org:/usr/obj/usr/src/sys/VT-LER  amd64 1100056 1100056
borg.lerctr.org /usr/ports #

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler at lerctr.org
US Mail: 108 Turvey Cove, Hutto, TX 78634-5688



More information about the freebsd-ports mailing list