mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Linker error sqlite3
@ 2013-11-06 10:24 Gieseler, Christian
  2013-11-17 18:32 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Gieseler, Christian @ 2013-11-06 10:24 UTC (permalink / raw)
  To: ptxdist

Hi,

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.

Best regards
Christian Gieseler


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] Linker error sqlite3
  2013-11-06 10:24 [ptxdist] Linker error sqlite3 Gieseler, Christian
@ 2013-11-17 18:32 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2013-11-17 18:32 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-17 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-06 10:24 [ptxdist] Linker error sqlite3 Gieseler, Christian
2013-11-17 18:32 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox