View Single Post
Old 05-23-2012, 09:58 AM   #98
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
I loop mounted another 5.1.0 image somebody sent me, and it appears that this is a library loader script problem just like for libc.

Try replacing your tccmake script contents with this:
Code:
#!/bin/sh
[[ -f /usr/lib/libc.so ]]&& mount -o bind /mnt/us/tcc/tcc.libc.so /usr/lib/libc.so
[[ -f /usr/lib/libpthread.so ]]&& mount -o bind /mnt/us/tcc/tcc.libpthread.so /usr/lib/libpthread.so
tcc -I/mnt/us/tcc/include -o $1 $2 $3 $4 $5 $6 $7 $8 $9 $1.c
[[ -f /usr/lib/libc.so ]]&& umount /usr/lib/libc.so
[[ -f /usr/lib/libpthread.so ]]&& umount /usr/lib/libpthread.so
Does that work for you?

EDIT: Bind mounts like I show above are MUCH safer than making changes to root that could break an OTA update (possibly bricking the kindle). Please UNDO the changes you made and try my script. It is the same problem as libc, so the fix shown above WILL work. Although the changes you made are fine for testing (if you allow for undoing them like knc1 suggested with the backup copy of the old file). Please undo your changes and do it the right way as I showed, to prevent bricking your kindle. Thanks. Also, I want confirmation that the CORRECT (bind mount) fix that I provided works as expected.

Last edited by geekmaster; 05-23-2012 at 10:05 AM.
geekmaster is offline   Reply With Quote