From owner-svn-src-all@FreeBSD.ORG Sun Dec 12 20:06:46 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82E401065670; Sun, 12 Dec 2010 20:06:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 16A638FC18; Sun, 12 Dec 2010 20:06:45 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id oBCK6elU058676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Dec 2010 22:06:41 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id oBCK6eNu065911; Sun, 12 Dec 2010 22:06:40 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id oBCK6eWj065910; Sun, 12 Dec 2010 22:06:40 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 12 Dec 2010 22:06:40 +0200 From: Kostik Belousov To: Dimitry Andric Message-ID: <20101212200640.GY33073@deviant.kiev.zoral.com.ua> References: <201012081430.oB8EUP8J006067@svn.freebsd.org> <5A7A3A47-18EF-4634-AA83-1501EF433A57@gmail.com> <4D04E7D3.3060308@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GOnUD/NgUx2c77Ud" Content-Disposition: inline In-Reply-To: <4D04E7D3.3060308@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, ed@freebsd.org, Garrett Cooper , syrinx@freebsd.org, svn-src-head@freebsd.org, rdivacky@freebsd.org Subject: Re: svn commit: r216295 - in head/usr.sbin/bsnmpd: . tools tools/bsnmptools tools/libbsnmptools X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 20:06:46 -0000 --GOnUD/NgUx2c77Ud Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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=20 > >5.109.105.98.73.73 > >snmpd[80050]: error in config file > > > >bsnmpd(1) uses export-dynamic flag >=20 > 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/Mak= efile > index f7e9b23..80b14e2 100644 > --- a/usr.sbin/bsnmpd/bsnmpd/Makefile > +++ b/usr.sbin/bsnmpd/bsnmpd/Makefile > @@ -31,7 +31,7 @@ CFLAGS+=3D -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_ERR= _H -DHAVE_STRLCPY > DPADD=3D ${LIBBEGEMOT} ${LIBBSNMP} ${LIBWRAP} > LDADD=3D -lbegemot -lbsnmp -lwrap > =20 > -LDFLAGS=3D -export-dynamic > +LDFLAGS=3D -Wl,-export-dynamic > =20 > .if ${MK_OPENSSL} !=3D "no" > CFLAGS+=3D -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. --GOnUD/NgUx2c77Ud Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk0FK1AACgkQC3+MBN1Mb4hbJgCffg7jy+wzP/44yF8rDsVVPN66 Kh8AoLENdJmyKFzS2UTl970/77PCmllH =4R9v -----END PGP SIGNATURE----- --GOnUD/NgUx2c77Ud--