From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= on
Hi all,

since some days, I can't compile net-snmp on my FreeBSD 8-Stable using
the default make value.

I've got this error message:

net-snmp-5.4.2.1/agent/.libs/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'

Does anyone meet the same problem ?

Thanks,

Olivier
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Boris Kochergin on
Olivier Cochard-Labb� wrote:
> Hi all,
>
> since some days, I can't compile net-snmp on my FreeBSD 8-Stable using
> the default make value.
>
> I've got this error message:
>
> net-snmp-5.4.2.1/agent/.libs/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'
>
> Does anyone meet the same problem ?
>
> Thanks,
>
> Olivier
I can confirm this on an 8.0-RELEASE/i386 machine. exp(3) lives in the
math library, so those shared objects must be linked against it. Quick
fix: when the build bombs out, edit
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/Makefile and
modify this line:

LIBS = $(USELIBS) -lelf -lssp_nonshared $(PERLLDOPTS_FOR_APPS)

....to be this:

LIBS = $(USELIBS) -lelf -lssp_nonshared -lm
$(PERLLDOPTS_FOR_APPS)

Also, edit
/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/apps/Makefile and
modify this line:

TRAPDWITHAGENT = $(USETRAPLIBS) -lelf -lssp_nonshared

....to be this:

TRAPDWITHAGENT = $(USETRAPLIBS) -lelf -lssp_nonshared -lm


....then continue the build, which should now complete.

-Boris
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Mikhail Tsatsenko on
Hi.

I have the same problem while building recent net-mngt/net-snmp with
undefined PERL_EMBEDDED and IPV6, but using default options it builds fine.

On 07.05.2010 01:31, Olivier Cochard-Labb� wrote:
> Hi all,
>
> since some days, I can't compile net-snmp on my FreeBSD 8-Stable using
> the default make value.
>
> I've got this error message:
>
> net-snmp-5.4.2.1/agent/.libs/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'
>
> Does anyone meet the same problem ?
>
> Thanks,
>
> Olivier
> _______________________________________________
> freebsd-ports(a)freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Sean McAfee on
Olivier Cochard-Labb� wrote:
> Hi all,
>
> since some days, I can't compile net-snmp on my FreeBSD 8-Stable using
> the default make value.
>
> I've got this error message:
>
> net-snmp-5.4.2.1/agent/.libs/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'
>
> Does anyone meet the same problem ?

On 8.0p2 amd64, I actually get:

host/hr_system.c: In function 'var_hrsys':
host/hr_system.c:290: warning: passing argument 4 of 'sysctl' from
incompatible pointer type
host/hr_system.c: In function 'count_users':
host/hr_system.c:617: error: 'struct utmpx' has no member named 'ut_name'


But if I change:

..endfor
..if ${OSVERSION} >= 900007
${REINPLACE_CMD} -e 's!utmp_p->ut_name!utmp_p->ut_user!'
${WRKSRC}/agent/mibgroup/host/hr_system.c
..endif

to ".if ${OSVERSION} >= 800076"

I then get similar errors to yours:

../.libs/libnetsnmpmibs.so: undefined reference to `setutxent'
../.libs/libnetsnmpmibs.so: undefined reference to `endutxent'
../.libs/libnetsnmpmibs.so: undefined reference to `getutxent'
../.libs/libnetsnmpmibs.so: undefined reference to `exp'

I just started looking into this, I'm going to try the library chase
that Boris mentioned, but may not be able to get to it for a couple of days.

--
Sean McAfee
Senior Systems Engineer
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

 | 
Pages: 1
Prev: FreeBSD Port: websvn-2.3.0
Next: weaveserver