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 1WvTGr-0002aC-NJ for ptxdist@pengutronix.de; Fri, 13 Jun 2014 17:20:01 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1WvTGr-0005My-Lq for ptxdist@pengutronix.de; Fri, 13 Jun 2014 17:20:01 +0200 Date: Fri, 13 Jun 2014 17:20:01 +0200 From: Michael Olbrich Message-ID: <20140613152001.GE5199@pengutronix.de> References: <20140613151244.GB26660@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140613151244.GB26660@localhost.localdomain> Subject: Re: [ptxdist] build failure in xterm 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 Fri, Jun 13, 2014 at 05:12:44PM +0200, Richard Cochran wrote: > Using the latest git ptxdist, building xterm fails like this. > > --------------------- > target: xterm.compile > --------------------- > ... > /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../lib/gcc/arm-cortexa9-linux-gnueabihf/4.7.3/../../../../arm-cortexa9-linux-gnueabihf/bin/ld: main.o: undefined reference to symbol 'IceSetIOErrorHandler' > /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../lib/gcc/arm-cortexa9-linux-gnueabihf/4.7.3/../../../../arm-cortexa9-linux-gnueabihf/bin/ld: note: 'IceSetIOErrorHandler' is defined in DSO /home/richard/git/DistroKit/platform-pengutronix-beagleboneti/sysroot-target/usr/lib/libICE.so.6 so try adding it to the linker command line > /home/richard/git/DistroKit/platform-pengutronix-beagleboneti/sysroot-target/usr/lib/libICE.so.6: could not read symbols: Invalid operation > collect2: error: ld returned 1 exit status > > The library seems to be okay: > > file /home/richard/git/DistroKit/platform-pengutronix-beagleboneti/sysroot-target/usr/lib/libICE.so.6.3.0 > /home/richard/git/DistroKit/platform-pengutronix-beagleboneti/sysroot-target/usr/lib/libICE.so.6.3.0: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not stripped > > Any ideas? Try: 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