Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Dec 2010 22:06:40 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, ed@freebsd.org, Garrett Cooper <gcooper@freebsd.org>, 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
Message-ID:  <20101212200640.GY33073@deviant.kiev.zoral.com.ua>
In-Reply-To: <4D04E7D3.3060308@FreeBSD.org>
References:  <201012081430.oB8EUP8J006067@svn.freebsd.org> <5A7A3A47-18EF-4634-AA83-1501EF433A57@gmail.com> <AANLkTim1r-aY1cBALEOxOms=0U==g7dwtzdpWHG5%2BPbP@mail.gmail.com> <AANLkTinTeeLD80eMRPdR6tigvsSSmpAefBHvaWn_VGRS@mail.gmail.com> <4D04E7D3.3060308@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101212200640.GY33073>