ts-7000
[Top] [All Lists]

[ts-7000] Re: Adding libpthread to TS-7250 (part 2)

To:
Subject: [ts-7000] Re: Adding libpthread to TS-7250 (part 2)
From: "Mike Charnoky" <>
Date: Wed, 28 May 2008 02:42:31 -0000
--- In  "Anouk Ahamitet" <> wrote:

> Our application works perfectly (well, almost, but that's a different
> (hardware) issue) on the old board.  But, when run on the new board,
> the exact same app gets this error:
> 
>   relocation error: /lib/libpthread.so.0: symbol __libc_fork, 
>   version GLIBC_PRIVATE not defined in file libc.so.6 with 
>   link time reference
> 
> The only references I've been able to find suggest that there was a
> bad libc 2.3.2 (which is what I have) built for the ARM processor. 
> However, since it works on the old board, and md5sum says the libc
> files are identical, I don't know how only one could be good or bad.
> 
> I've run out of ideas for things to check, try, test and am hoping
> (praying) that someone here might have solved this problem before and
> be willing to share the solution.

I've run into the same problem and found a solution.  In my case, the
java implementation I'm using worked fine, unless I tried to use java
to execute an external program using Runtime.getRuntime().exec()

Since libpthread wasn't happy with libc, I decided to replace
/lib/libc-2.3.2.so with the one provided in the crosstool package
where I obtained libpthread
(ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7200-linux/cross-toolchains/crosstool-linux-gcc-3.4.4-glibc-2.3.2.tar.gz).
 I got a similar error:

relocation error: /lib/libnss_compat.so.2: symbol
__nss_lookup_function, version GLIBC_PRIVATE not defined in file
libc.so.6 with link time reference

So, I replaced libnss_compat-2.3.2.so... and everything worked.

Which begs the question... if the crosstool was compiled for libc
2.3.2, why don't all these libraries play nicely?  Would it be wise to
replace all the files in /lib with all the libraries from the
crosstool if using libpthread?  Or is there a libpthread that plays
nicely to begin with? 

Also, it looks like the crosstool I mentioned was just uploaded a
month ago... why was this done?  What does it provide over
crosstool-linux-gcc-3.3.4-glibc-2.3.2-0.28rc39.tar.bz2


Mike


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU