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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"