mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Linker error sqlite3
Date: Sun, 17 Nov 2013 19:32:21 +0100	[thread overview]
Message-ID: <20131117183221.GV31417@pengutronix.de> (raw)
In-Reply-To: <C9183576C7342045BFDCAE863EB3C37A030FE2@EKS-Exchange.eks-engel.local>

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

      reply	other threads:[~2013-11-17 18:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-06 10:24 Gieseler, Christian
2013-11-17 18:32 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131117183221.GV31417@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox