Garrett Cooper wrote:
On May 12, 2010, at 4:56 PM, Mike Jakubik wrote:

Hi,

I am having trouble compiling net-snmp on a number of 8-STABLE systems, below 
is the error.

Thanks.

---
creating libnetsnmpmibs.la
(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 -O2 -pipe -march=nocona 
-fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8 -c -o snmpd.lo snmpd.c
cc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/include 
-O2 -pipe -march=nocona -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8 -c 
snmpd.c  -fPIC -DPIC -o .libs/snmpd.o
cc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/include -O2 -pipe 
-march=nocona -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8 -c snmpd.c -o snmpd.o 
>/dev/null 2>&1
/bin/sh ../libtool --mode=link cc -O2 -pipe -march=nocona -fno-strict-aliasing 
-Ufreebsd8 -Dfreebsd8=freebsd8 -o snmpd snmpd.lo -L../snmplib/.libs 
-L../snmplib -L./.libs -L./helpers/.libs -L./helpers -L/usr/lib  
-rpath=/usr/lib:/usr/local/lib libnetsnmpagent.la helpers/libnetsnmphelpers.la 
libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lelf -lssp_nonshared
cc -O2 -pipe -march=nocona -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=freebsd8 
-o .libs/snmpd .libs/snmpd.o -rpath=/usr/lib:/usr/local/lib  
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/.libs 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/helpers/.libs 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib/.libs 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib 
-L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/helpers -L/usr/lib 
./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so 
./.libs/libnetsnmpmibs.so 
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/helpers/.libs/libnetsnmphelpers.so
 
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/.libs/libnetsnmpagent.so
 -lwrap -lkvm 
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib/.libs/libnetsnmp.so 
-ldevstat ../snmplib/.libs/libnetsnmp.so -lcrypto -lelf -lssp_nonshared   
-Wl,--rpath -Wl,/usr/local/lib
./.libs/libnetsnmpmibs.so: undefined reference to `exp'
*** Error code 1

It looks like -lm is missing in the linker line -- do you have the config.log?
Thanks,
-Garrett_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
I don't have the autotools chops to submit a proper fix, but here are instructions to at least get it to finish building:

http://lists.freebsd.org/pipermail/freebsd-ports/2010-May/061065.html

-Boris

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to