ports/146268: net-mgmt/net-snmp fails to build on 8.0-RELEASE/amd64
Josh Carroll
josh.carroll at gmail.com
Mon May 3 17:40:02 UTC 2010
>Number: 146268
>Category: ports
>Synopsis: net-mgmt/net-snmp fails to build on 8.0-RELEASE/amd64
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon May 03 17:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Josh Carroll
>Release: 8.0-RELEASE-p2/amd64
>Organization:
N/A
>Environment:
FreeBSD pflog.net 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #13: Wed Jan 6 22:22:42 EST 2010 root at pflog.net:/usr/obj/usr/src/sys/PFLOG amd64
>Description:
I'm having trouble building net-mgmt/net-snmp since the update to 5.4.2.1_7 (_6 built fine for me).
I'm on 8.0-RELEASE-p2/amd64, and this is with a ports tree portsnap'd as of 5/3/2010.
Here is my config for this port:
# make showconfig
===> The following configuration options are available for net-snmp-5.4.2.1_7:
IPV6=off "Build with IPv6 support"
MFD_REWRITES=on "Build with 64-bit Interface Counters"
PERL=on "Install additional perl modules"
PERL_EMBEDDED=off "Build embedded perl"
TKMIB=off "Install graphical MIB browser"
DUMMY=on "Enable dummy values as placeholders"
DMALLOC=off "Enable dmalloc debug memory allocator"
===> Use 'make config' to modify these settings
And here is the tail end of the output including the error when I try to build:
===> Building for net-snmp-5.4.2.1_7
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/helpers
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/mibgroup
/bin/sh ../libtool --mode=link cc -O2 -pipe -O2 -mmmx -msse -msse2 -msse3 -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 -O2 -mmmx -msse -msse2 -msse3 -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
Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent.
*** Error code 1
Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1.
*** Error code 1
Stop in /usr/ports/net-mgmt/net-snmp.
If I go into the work dir and re-run libtool with -lm, it works properly and finds exp(3). So it looks like something is broken and it should be including -lm in the linker flags.
Thanks!
Josh
>How-To-Repeat:
Update ports tree, then try to build net-mgmt/net-snmp with the options described above.
>Fix:
Adding -lm to the linker flags fixes it, but I don't have a patch to do this automatically via the port or a patch to the upstream source.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list