Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2010 17:16:33 -0400
From:      Garrett Cooper <yanefbsd@gmail.com>
To:        Mike Jakubik <mike.jakubik@intertainservices.com>
Cc:        sylvio@FreeBSD.org, freebsd-ports@freebsd.org
Subject:   Re: FreeBSD Port: net-mgmt/net-snmp
Message-ID:  <FF364ED4-B2C6-4B2D-82E4-C60C3050C9DE@gmail.com>
In-Reply-To: <4BEB160B.7050101@intertainservices.com>
References:  <4BEB160B.7050101@intertainservices.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 12, 2010, at 4:56 PM, Mike Jakubik wrote:

> Hi,
>=20
> I am having trouble compiling net-snmp on a number of 8-STABLE =
systems, below is the error.
>=20
> Thanks.
>=20
> ---
> creating libnetsnmpmibs.la
> (cd .libs && rm -f libnetsnmpmibs.la && ln -s ../libnetsnmpmibs.la =
libnetsnmpmibs.la)
> : libnetsnmpmibs.la
> /bin/sh ../libtool --mode=3Dcompile cc -I../include -I. -I../agent =
-I../agent/mibgroup  -I../snmplib -I/usr/include -O2 -pipe -march=3Dnocona=
 -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=3Dfreebsd8 -c -o snmpd.lo =
snmpd.c
> cc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib =
-I/usr/include -O2 -pipe -march=3Dnocona -fno-strict-aliasing -Ufreebsd8 =
-Dfreebsd8=3Dfreebsd8 -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=3Dnocona -fno-strict-aliasing -Ufreebsd8 =
-Dfreebsd8=3Dfreebsd8 -c snmpd.c -o snmpd.o >/dev/null 2>&1
> /bin/sh ../libtool --mode=3Dlink cc -O2 -pipe -march=3Dnocona =
-fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=3Dfreebsd8 -o snmpd snmpd.lo =
-L../snmplib/.libs -L../snmplib -L./.libs -L./helpers/.libs -L./helpers =
-L/usr/lib  -rpath=3D/usr/lib:/usr/local/lib libnetsnmpagent.la =
helpers/libnetsnmphelpers.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la =
-lelf -lssp_nonshared
> cc -O2 -pipe -march=3Dnocona -fno-strict-aliasing -Ufreebsd8 =
-Dfreebsd8=3Dfreebsd8 -o .libs/snmpd .libs/snmpd.o =
-rpath=3D/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/lib=
netsnmphelpers.so =
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/.libs/libnetsnmpa=
gent.so -lwrap -lkvm =
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib/.libs/libnetsnm=
p.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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FF364ED4-B2C6-4B2D-82E4-C60C3050C9DE>