View Single Post
Old 05-23-2012, 10:02 AM   #100
deep
Enthusiast
deep began at the beginning.
 
Posts: 29
Karma: 10
Join Date: May 2012
Device: Kindle Touch
Quote:
Originally Posted by geekmaster View Post
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).

Hmm the above method of completely replacing the libpthread.so file actually solved the problem

Thanks geekmaster ... Your method works without modifying the actual library files
deep is offline   Reply With Quote