Make sure your embedded fs contain all the libs needed by the application.
You can execute arm_v5t_le-ldd command on the host to query the libs required 
by the app.

e.g to run the pthread app I did the following

1. compiled app on Host machine 
   # arm_v5t_le-gcc thread_test.c -lpthread
   # arm_v5t_le-ldd a.out
        libpthread.so.0         
=>/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/lib/libpthre  ad.so.0 
(0xdead1000)
        libc.so.6 =>    
/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/lib/libc.so.6   
(0xdead2000)
        ld-linux.so.3 =>        
/opt/mv_pro_4.0/montavista/pro/devkit/arm/v5t_le/target/lib/ld- linux.so.3 
(0xdead3000)
2. My embedded fs contain libc.so.6 and ld-linux.so.3 files. 

3. copy libpthread-0.10.so from host to embedded fs and create a symbolic link 
to libpthread.so.0
   
4. execute pthread app.


-Brijesh




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sz Lian Yu
Sent: Tuesday, April 03, 2007 9:51 PM
To: Harrison; davinci-linux-open-source
Subject: pthread function in different filesystem... :(

It's about the pthread function in different
filesystems.

Case 1: (Works!)
If i use the filesystem in davinci DVEVM CD package,
it's about 1GB , the pthread function i use works
fine.

Case 2: (Fail!)
But for the embedded version of filesystem (
SPRAAH2.pdf ) ,
my thread function cannot work.

Both cases are compiled and linked without warning and
error.

Originally , I doubt it's the library issue with my
embedded system filesystem.
So i copy the lib*thread* in filesystem from the case
1 to my case 2. ( located in /lib )
But it still fails...

What's wrong with the case 2 version???
Could someone give me a hint?




___________________________________________________ 
 您的生活即�r通 - �贤ā����贰⑸�活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to