View Single Post
Old 05-23-2012, 09:05 AM   #80
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
Hmm ... I didnt notice that !
However, still no luck

Here's what happened ...


Code:
[root@kindle /lib]# mntroot rw
system: I mntroot:def:Making root filesystem writeable
[root@kindle root]# cd /lib
[root@kindle /lib]# ln -s libpthread-2.12.1.so libpthread.so
[root@kindle /lib]# cd /mnt/us/codes
[root@kindle codes]# tccmake cfile -lpthread
tcc: file '/usr/lib/libpthread_nonshared.a' not found


And here's the output of the lib search once again
Code:
[root@kindle codes]# 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 May 23 18:07 /lib/libpthread.so -> 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
A new symlink has been added...
Correct, that was the command I had you run, to make that new link.

The above tells us that TCC is searching /usr/lib/* first in its default library search path (the fact that the behavior didn't change, it errored before it got around to searching /lib/*).

I do not have a KT or even a KT file system image, so I am not sure what tools you have on hand.
So this may get to be a few posts long...

First thing to try - the 'file' command (if it is present on a KT):
Code:
file /usr/lib/libpthread.so
If you get a: "sh file: not found" - well, then you don't have that tool on the KT.
Otherwise the file utility will identify the type of file (*nix doesn't go by file name extensions).

What the heck - (try to) run the command above - post output - we will continue with whatever happens.
EDIT: I typo'd the pathname above, now fixed.

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