Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 May 2010 00:56:34 -0400
From:      Sahil Tandon <sahil@FreeBSD.org>
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:  <20100513045634.GE38019@magic.hamla.org>
In-Reply-To: <4BEB160B.7050101@intertainservices.com>
References:  <4BEB160B.7050101@intertainservices.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, 12 May 2010, Mike Jakubik wrote:

> I am having trouble compiling net-snmp on a number of 8-STABLE
> systems, below is the error.

Are you using any non-default OPTIONS?

> ./.libs/libnetsnmpmibs.so: undefined reference to `exp'

I wonder if this is a quirk with how link time arguments are passed to
ld(1) via the configure script.  Would you try compiling after applying
the attached patch?

-- 
Sahil Tandon <sahil@FreeBSD.org>

--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="net-snmp.diff"

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net-mgmt/net-snmp/Makefile,v
retrieving revision 1.178
diff -u -r1.178 Makefile
--- Makefile	1 May 2010 01:38:47 -0000	1.178
+++ Makefile	13 May 2010 04:36:50 -0000
@@ -40,7 +40,7 @@
 		--with-sys-location="${NET_SNMP_SYS_LOCATION}" \
 		--with-logfile="${NET_SNMP_LOGFILE}" \
 		--with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
-		--with-gnu-ld --with-libwrap --with-libs="-lm -lkvm -ldevstat"
+		--with-gnu-ld --with-libwrap --with-ldflags="-lm -lkvm -ldevstat"
 
 .if defined(BATCH)
 CONFIGURE_ARGS+=--with-defaults

--bg08WKrSYDhXBjb5--



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