05-23-2012, 08:09 AM | #76 |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
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 Any suggestions on where I can get the file Knc1 ? Thanks for replying |
05-23-2012, 08:32 AM | #77 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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 - 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. |
|
Advert | |
|
05-23-2012, 08:44 AM | #78 | |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
Quote:
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 |
|
05-23-2012, 09:02 AM | #79 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
That looks like the same problem as with the libm library that shows up when you add "-lm" to the tccmake command line. It will need a similar fix. I did not try it yet, but I added a possible fix to the tcc install script (see the new red line below). Try it and report your results here.
Code:
#!/bin/sh
cd /usr/lib
mntroot rw >/dev/null
ln -s /mnt/us/tcc/crt1.o
ln -s /mnt/us/tcc/crti.o
ln -s /mnt/us/tcc/crtn.o
cd /usr/bin >/dev/null
ln -s /mnt/us/tcc/tcc
ln -s /mnt/us/tcc/tccmake
[[ -e libm.so ]]||ln -s /lib/libm.so.6 libm.so
[[ -e libpthread.so ]]||ln -s /lib/libpthread.so.0 libpthread.so
mntroot ro >/dev/null
echo "*** tcc installed ***"
echo Uninstall with /mnt/us/tcc/uninstall
echo Compile demo.c with "tccmake demo"
Last edited by geekmaster; 05-23-2012 at 09:16 AM. |
05-23-2012, 09:05 AM | #80 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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 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. |
|
Advert | |
|
05-23-2012, 09:19 AM | #81 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
See my fix above. On firmware 3.3 the /usr/lib folder is missing some "generic" symlinks to the libraries in /lib. You can compare to other firmware versions to see what is missing.
Another reported problem for some people is that a symlink to a symlink might not work sometimes (but it worked for me for libc.so). In that case change the symlink destination to the actual versions-dependent binary library file. |
05-23-2012, 09:23 AM | #82 |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
Ok here's the output
I copied the file over to /mnt/us and ran the command from my linux machine Code:
/media/Kindle$ file ./libpthread.so ./libpthread.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=0x245a6c47c401422afb251b0bb4d29e9e309404dc, for GNU/Linux 2.6.16, not stripped |
05-23-2012, 09:23 AM | #83 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I just want to know what that lab126 brain fart really is first. PS: this is 5.1.0 again. |
|
05-23-2012, 09:24 AM | #84 | |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
Quote:
Thanks geekmaster |
|
05-23-2012, 09:26 AM | #85 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
You have the correct file, we just need to tell you what to do about the incorrect one first. I would rather know what it is that I will be telling you to replace before we go that far. |
|
05-23-2012, 09:31 AM | #86 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Just do the command shown in red in this post and report your results as I had requested:
https://www.mobileread.com/forums/sho....php?p=2090431 |
05-23-2012, 09:31 AM | #87 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
There should not be any links between the content of /usr/lib/* and /lib/* - but there existance is a lab126 screw-up that we have to live with. That is what I am about to direct the O.P. to do, once I know the contents of that too short lab126 brain fart. |
|
05-23-2012, 09:33 AM | #88 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
05-23-2012, 09:37 AM | #89 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I thought this thread was discussing 3.3 again. I looked back now and I see 5.1.0, so I will have to plug in a different kindle and poke around. The install script can get big and ugly if it has to fix too many amazon/lab126 screw-ups.
P.S. I called lab126 awhile ago, and they referred all firmware-related questions to "Seattle" (where they transferred my call). At the Seattle site, they call themselves "amazon". It is unclear who is responsible for the recent firmware fiasco. |
05-23-2012, 09:38 AM | #90 | |
Enthusiast
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
|
Quote:
Ok ... so here's the output after I modified my install file as above I also tried creating the symlink ! Code:
[root@kindle tcc]# ./uninstall *** tcc uninstalled *** [root@kindle tcc]# ./install *** tcc installed *** Uninstall with /mnt/us/tcc/uninstall Compile demo.c with tccmake demo [root@kindle tcc]# ./install ln: crt1.o: File exists ln: crti.o: File exists ln: crtn.o: File exists ln: tcc: File exists ln: tccmake: File exists *** tcc installed *** Uninstall with /mnt/us/tcc/uninstall Compile demo.c with tccmake demo [root@kindle tcc]# cd ../codes/ [root@kindle codes]# tccmake cfile -lpthread tcc: file '/usr/lib/libpthread_nonshared.a' not found Once again output of the lib search after the above Code:
[root@kindle us]# 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 |
|
Tags |
tcc, tinycc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
geekmaster simple touchscreen script support hack | geekmaster | Kindle Developer's Corner | 12 | 04-21-2021 11:38 PM |
Very simple guide to reading newspapers on the kindle, please? :) | Pismire | Amazon Kindle | 7 | 06-01-2012 11:26 PM |
Free (Kindle/Nook/ChristianBook) The Invitation: A Simple Guide to the Bible | arcadata | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 08-22-2011 01:05 PM |
Simple guide to choosing a Creative Commons license for your work | Bob Russell | News | 0 | 12-26-2006 11:10 AM |