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

next in thread | previous in thread | raw e-mail | index | archive | help
Garrett Cooper wrote:
> On May 12, 2010, at 4:56 PM, Mike Jakubik wrote:
>
>  =20
>> 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 lib=
netsnmpmibs.la)
>> : libnetsnmpmibs.la
>> /bin/sh ../libtool --mode=3Dcompile cc -I../include -I. -I../agent -I.=
=2E/agent/mibgroup  -I../snmplib -I/usr/include -O2 -pipe -march=3Dnocona=
 -fno-strict-aliasing -Ufreebsd8 -Dfreebsd8=3Dfreebsd8 -c -o snmpd.lo snm=
pd.c
>> cc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr=
/include -O2 -pipe -march=3Dnocona -fno-strict-aliasing -Ufreebsd8 -Dfree=
bsd8=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 -Dfree=
bsd8=3Dfreebsd8 -c snmpd.c -o snmpd.o >/dev/null 2>&1
>> /bin/sh ../libtool --mode=3Dlink cc -O2 -pipe -march=3Dnocona -fno-str=
ict-aliasing -Ufreebsd8 -Dfreebsd8=3Dfreebsd8 -o snmpd snmpd.lo -L../snmp=
lib/.libs -L../snmplib -L./.libs -L./helpers/.libs -L./helpers -L/usr/lib=
  -rpath=3D/usr/lib:/usr/local/lib libnetsnmpagent.la helpers/libnetsnmph=
elpers.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lelf -lssp_nonshare=
d
>> cc -O2 -pipe -march=3Dnocona -fno-strict-aliasing -Ufreebsd8 -Dfreebsd=
8=3Dfreebsd8 -o .libs/snmpd .libs/snmpd.o -rpath=3D/usr/lib:/usr/local/li=
b  -L/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/.libs -L/us=
r/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/helpers/.libs -L/us=
r/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib/.libs -L/usr/port=
s/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib -L/usr/ports/net-mgmt/n=
et-snmp/work/net-snmp-5.4.2.1/agent/helpers -L/usr/lib ./.libs/libnetsnmp=
agent.so helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so /us=
r/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/helpers/.libs/libne=
tsnmphelpers.so /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/=
=2Elibs/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
>>    =20
>
> It looks like -lm is missing in the linker line -- do you have the conf=
ig.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-unsubscribe@freebsd.org=
"
>  =20
I don't have the autotools chops to submit a proper fix, but here are=20
instructions to at least get it to finish building:

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

-Boris




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BEB64B1.5000302>