svn commit: r216295 - in head/usr.sbin/bsnmpd: . tools
tools/bsnmptools tools/libbsnmptools
Kostik Belousov
kostikbel at gmail.com
Sun Dec 12 20:06:46 UTC 2010
On Sun, Dec 12, 2010 at 04:18:43PM +0100, Dimitry Andric wrote:
> On 2010-12-11 16:42, Shteryana Shopova wrote:
> >This is now fixed. However I wouldn't expect bsnmpd(1) compiled with
> >clang to work - it didn't run last time I checked several months ago,
> >and I still get the same error -
> >
> >udo /usr/sbin/bsnmpd -d -c /root/snmpd.config
> >snmpd[80050]: lm_load: open /usr/lib/snmp_mibII.so: Undefined symbol
> >"oid_zeroDotZero"
> >snmpd[80050]: init dep failed: 13 1.3.6.1.4.1.12325.1.1.1.6
> >5.109.105.98.73.73
> >snmpd[80050]: error in config file
> >
> >bsnmpd(1) uses export-dynamic flag
>
> Can you please try the attached patch, which makes clang pass the
> -export-dynamic flag to the linker properly?
> diff --git a/usr.sbin/bsnmpd/bsnmpd/Makefile b/usr.sbin/bsnmpd/bsnmpd/Makefile
> index f7e9b23..80b14e2 100644
> --- a/usr.sbin/bsnmpd/bsnmpd/Makefile
> +++ b/usr.sbin/bsnmpd/bsnmpd/Makefile
> @@ -31,7 +31,7 @@ CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_ERR_H -DHAVE_STRLCPY
> DPADD= ${LIBBEGEMOT} ${LIBBSNMP} ${LIBWRAP}
> LDADD= -lbegemot -lbsnmp -lwrap
>
> -LDFLAGS= -export-dynamic
> +LDFLAGS= -Wl,-export-dynamic
>
> .if ${MK_OPENSSL} != "no"
> CFLAGS+= -DHAVE_LIBCRYPTO
I believe this was already discussed ? Traditional cc driver behaviour
is to pass all unparsed flags and potential file names to the linker
as is.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-all/attachments/20101212/900b7f79/attachment.pgp
More information about the svn-src-all
mailing list