From owner-svn-src-all@FreeBSD.ORG Thu May 9 08:22:49 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4A5D544D; Thu, 9 May 2013 08:22:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id DD27A827; Thu, 9 May 2013 08:22:48 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r498MiUJ023196; Thu, 9 May 2013 11:22:44 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r498MiUJ023196 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r498Mhik023195; Thu, 9 May 2013 11:22:43 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 9 May 2013 11:22:43 +0300 From: Konstantin Belousov To: Mikolaj Golub Subject: Re: svn commit: r250379 - in head/usr.sbin/bsnmpd/modules: . snmp_hast Message-ID: <20130509082243.GP3047@kib.kiev.ua> References: <201305082003.r48K3cYv062256@svn.freebsd.org> <20130509071412.GA94250@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aXQ9qeeh/qQh3JeE" Content-Disposition: inline In-Reply-To: <20130509071412.GA94250@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Peter Wemm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 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: Thu, 09 May 2013 08:22:49 -0000 --aXQ9qeeh/qQh3JeE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 09, 2013 at 10:14:14AM +0300, Mikolaj Golub wrote: > On Wed, May 08, 2013 at 04:44:54PM -0700, Peter Wemm wrote: > > On Wed, May 8, 2013 at 4:25 PM, Peter Wemm wrote: > > > On Wed, May 8, 2013 at 1:03 PM, Mikolaj Golub w= rote: > > >> 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. > > > > > > =3D=3D=3D> 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 wh= en making a > > > shared object; recompile with -fPIC^M > > > /usr/obj/usr/src/tmp/usr/lib/libl.a: could not read symbols: Bad valu= e^M > > > *** [snmp_hast.so.6] Error code 1^M > >=20 > >=20 > > Hmm. It seems clang optimizes something away that gcc doesn't. When > > building with clang the problem doesn't show up. >=20 > Sorry for breaking build. I am always running tinderbox before commits > like this, which did not help this time. Now I will run it twice, with > both clang and gcc. >=20 > Thank you for r250394. I will investigate how to fix this. Any > suggestions are highly appreciated. Why do you need libl.a ? If only for yywrap(), then re-implementing it for the module seems to be trivial. --aXQ9qeeh/qQh3JeE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRi1zTAAoJEJDCuSvBvK1BNpYP/1J8V107T2J1jBv6AsP7oanY C3/RrLRxV3eIJmxx9d++eyR5grFra3o0Q0aRsM/2rQG0a8T4xolTXF2wkGprrw1P sYGUEQ7PXoMH/GgM7jbkripBuqQ3MGubRQIJpxq2FjWoYbe2mJPwSbTw3zxZN23V FWVg39eckmBnaLN1oRFOI541pKwU+r/AM2aUpj9doPxSH8EcGBEK79oPYGQm1q/a EI8aSZ6GiCQHkMMYyk0AcQwhbQC9LKMYSnMO4KprYQTA9vTIm6JKVYZhdFGufRYs nurRHM0GREZ2c+Gke0Yv746zKT+2UnLDkWLT025CSJ40AgfXAzq9TLi8BW6C0/DQ 0/3mHkMPd1Hj263ZPq1+2DtZ2KaBoPqehp5F5ES8w48SkqC9m2Zj9tRaxW4am5yQ QsQ8KZRirvzWHnEzCbpvK9XfPsQ0j9GklRqlJJLPZhSWAHkHA2Nn8jP7Us9XfHGU Llq52x0f2pOg8hXMZt2YgsaiAHv8rB6Q2lZs3XqbWTm9goTwF72m29Gfzkaw2ZdI 8ojiuWfzEikj7xwJ7BOf0+lHJ5piPgm48hKKCA4cqGxjapSYgQQ1Aq6OdMM5VQ9F Iz4PHvkJSL203rsZPHmmsezPNvg4w9/rSw2nHDjEfxd4wjQzpCeBC0a5FTsKcaTz ILH1W1ekzjVHB1IUcdSV =Zhrj -----END PGP SIGNATURE----- --aXQ9qeeh/qQh3JeE--