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 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. How-To-Repeat: Update ports tree, then try to build net-mgmt/net-snmp with the options described above.
Responsible Changed From-To: freebsd-ports-bugs->sylvio Over to maintainer (via the GNATS Auto Assign Tool)
It looks like it does not build unless the PERL_EMBEDDED option is turned o= n. Thanks, Josh On Mon, May 3, 2010 at 10:40 AM, <FreeBSD-gnats-submit@freebsd.org> wrote: > Thank you very much for your problem report. > It has the internal identification `ports/146268'. > The individual assigned to look at your > report is: freebsd-ports-bugs. > > You can access the state of your problem report at any time > via this link: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D146268 > >>Category: =A0 =A0 =A0 ports >>Responsible: =A0 =A0freebsd-ports-bugs >>Synopsis: =A0 =A0 =A0 net-mgmt/net-snmp fails to build on 8.0-RELEASE/amd= 64 >>Arrival-Date: =A0 Mon May 03 17:40:01 UTC 2010 >
State Changed From-To: open->closed Committed. Thanks!