Date: Wed, 8 May 2013 16:44:54 -0700 From: Peter Wemm <peter@wemm.org> To: Mikolaj Golub <trociny@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r250379 - in head/usr.sbin/bsnmpd/modules: . snmp_hast Message-ID: <CAGE5yCqiwjAa4H50Hf-TWBWfLZxp-K1JA=XzEFEHzo825BFOtg@mail.gmail.com> In-Reply-To: <CAGE5yCozBYWpWOWM4e1T0uMOe3n3FLEP0X5hggN64hzdUJnU7w@mail.gmail.com> References: <201305082003.r48K3cYv062256@svn.freebsd.org> <CAGE5yCozBYWpWOWM4e1T0uMOe3n3FLEP0X5hggN64hzdUJnU7w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 8, 2013 at 4:25 PM, Peter Wemm <peter@wemm.org> wrote: > On Wed, May 8, 2013 at 1:03 PM, Mikolaj Golub <trociny@freebsd.org> wrote: >> Author: trociny >> Date: Wed May 8 20:03:37 2013 >> New Revision: 250379 >> URL: http://svnweb.freebsd.org/changeset/base/250379 >> >> Log: >> HAST module for bsnmpd(1). >> >> Reviewed by: harti, pjd >> MFC after: 2 weeks > > This breaks world on just about everything other than i386, and it is > technically broken there too but doesn't actually cause a build > failure. > > You cannot link a .so file against a non-pic library, libl.a in this case. > > ===> usr.sbin/bsnmpd/modules/snmp_hast (all)^M > /usr/obj/usr/src/tmp/usr/bin/ld: /usr/obj/usr/src/tmp/usr/lib/libl.a(libyywrap.o > ): relocation R_X86_64_32 against `a local symbol' can not be used when making a > shared object; recompile with -fPIC^M > /usr/obj/usr/src/tmp/usr/lib/libl.a: could not read symbols: Bad value^M > *** [snmp_hast.so.6] Error code 1^M Hmm. It seems clang optimizes something away that gcc doesn't. When building with clang the problem doesn't show up. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGE5yCqiwjAa4H50Hf-TWBWfLZxp-K1JA=XzEFEHzo825BFOtg>