View Single Post
Old 05-23-2012, 08:32 AM   #77
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by deep View Post
Here you go ..

Code:
[root@kindle root]# ls -l /lib/libpthread* /usr/lib/libpthread*
-rw-r--r--    1 root     root        105233 Nov  4  2011 /lib/libpthread-2.12.1.so
lrwxrwxrwx    1 root     root            20 Nov  4  2011 /lib/libpthread.so.0 -> libpthread-2.12.1.so
-rw-r--r--    1 root     root           221 Sep 11  2010 /usr/lib/libpthread.so
So the aforementioned libpthread_nonshared.a doesn't exist !

Any suggestions on where I can get the file Knc1 ?
Thanks for replying
According to the text of the command you posted, it should not have been referenced (to then have been reported as missing). That is for doing a static linked executable, and TCC (should) be defaulting to dynamic linked executables.

Note the size of /usr/lib/libpthread.so
That is too small to be the dynamic thread library. It may be an example of part of the general problem.

I am not sure what the built-in library search order is in TCC - so we will just shotgun it (or take a WAFG).
If it searchs /lib first, this will fix the problem you see:
Code:
cd /lib
ln -s libpthread-2.12.1.so libpthread.so
cd -
Note: The above presumes you are running as "root" and that /lib is in a filesystem mounted read/write.
If either of those conditions are not true, you will get an error message, post the error from the command and we can continue from there.

If no error message, retry your posted compile command.

If it searchs /usr/lib first (which I think it should, but who knows) -
The we will have to examine what that too small file with the correct name is all about.

Last edited by knc1; 05-23-2012 at 08:34 AM.
knc1 is offline   Reply With Quote