FreeBSD Port: net-mgmt/net-snmp
Sahil Tandon
sahil at FreeBSD.org
Thu May 13 04:56:38 UTC 2010
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 at FreeBSD.org>
-------------- next part --------------
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
More information about the freebsd-ports
mailing list