From owner-freebsd-ports@FreeBSD.ORG Thu May 13 02:33:10 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E9ED106564A for ; Thu, 13 May 2010 02:33:10 +0000 (UTC) (envelope-from spawk@acm.poly.edu) Received: from acm.poly.edu (acm.poly.edu [128.238.9.200]) by mx1.freebsd.org (Postfix) with ESMTP id 34A6D8FC12 for ; Thu, 13 May 2010 02:33:08 +0000 (UTC) Received: (qmail 16141 invoked from network); 13 May 2010 02:33:07 -0000 Received: from unknown (HELO ?192.168.0.2?) (spawk@96.224.221.101) by acm.poly.edu with AES256-SHA encrypted SMTP; 13 May 2010 02:33:07 -0000 Message-ID: <4BEB64B1.5000302@acm.poly.edu> Date: Wed, 12 May 2010 22:32:17 -0400 From: Boris Kochergin User-Agent: Thunderbird 2.0.0.24 (X11/20100330) MIME-Version: 1.0 To: Garrett Cooper References: <4BEB160B.7050101@intertainservices.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Cc: sylvio@FreeBSD.org, Mike Jakubik , freebsd-ports@freebsd.org Subject: Re: FreeBSD Port: net-mgmt/net-snmp X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 May 2010 02:33:10 -0000 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