View Single Post
Old 05-23-2012, 09:38 AM   #90
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
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"

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
deep is offline   Reply With Quote