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 1Vi78v-0003SE-KW for ptxdist@pengutronix.de; Sun, 17 Nov 2013 19:32:21 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1Vi78v-00008B-Ix for ptxdist@pengutronix.de; Sun, 17 Nov 2013 19:32:21 +0100 Date: Sun, 17 Nov 2013 19:32:21 +0100 From: Michael Olbrich Message-ID: <20131117183221.GV31417@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Linker error sqlite3 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, Nov 06, 2013 at 10:24:25AM +0000, Gieseler, Christian wrote: > i am using ptxdist-2013.05.0 and wanted to enable sqlite3 as extension in php5.3.10. > There seems to be a linker error. > > /opt/OSELAS.Toolchain-2012.12.1/arm-v5te-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../lib/gcc/arm-v5te-linux-gnueabi/4.7.2/../../../../arm-v5te-linux-gnueabi/bin/ld: note: 'pthread_mutex_trylock@@GLIBC_2.4' is defined in DSO /opt/OSELAS.Toolchain-2012.12.1/arm-v5te-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../sysroot-arm-v5te-linux-gnueabi/lib/libpthread.so.0 so try adding it to the linker command line > /opt/OSELAS.Toolchain-2012.12.1/arm-v5te-linux-gnueabi/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../sysroot-arm-v5te-linux-gnueabi/lib/libpthread.so.0: could not read symbols: Invalid operation > collect2: error: ld returned 1 exit status > make[1]: *** [sapi/cli/php] Error 1 > > Has the configure script to be modified to include lpthread? Thanks for any advice/help. This is caused by a different default option of the linker. Add "-Wl,--copy-dt-needed-entries" to TARGET_EXTRA_LDFLAGS. 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