From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TlI2v-0005SW-Q2 for ptxdist@pengutronix.de; Wed, 19 Dec 2012 12:42:45 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TlI2v-0005kl-O0 for ptxdist@pengutronix.de; Wed, 19 Dec 2012 12:42:45 +0100 Date: Wed, 19 Dec 2012 12:42:45 +0100 From: Michael Olbrich Message-ID: <20121219114245.GU32091@pengutronix.de> References: <20121214100734.GF32091@pengutronix.de> <20121214103255.GI32091@pengutronix.de> <20121214181935.GN32091@pengutronix.de> <20121217163739.GO32091@pengutronix.de> <20121218184606.GR32091@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Wed, Dec 19, 2012 at 11:22:09AM +0000, Schenk, Gavin wrote: > libgcrypt does not finish compile step > xterm does not finish compile step > Logs attached, can you confirm? Ah, yes, I forgot about that. The latest version of binutils changed some defaults. What happens is this: libb.so links to liba.so A program uses symbols from liba.so and libb.so. With the old binutils it was ok to just add '-lb' when linking. liba.so was picked up indirectly. With the new binutils it fails with the errors you're seeing. The real solution would be to fix all packages with this problem. However this is a lot of work, so for now, you can get the old behaviour by setting: PTXCONF_TARGET_EXTRA_LDFLAGS="-Wl,--copy-dt-needed-entries" in the platformconfig. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de