2008/3/4, Geri <>:
> I am still working on this problem but have not found any hint how to
> solve it. I followed all the hints from the Linux for ARM on TS-7000
> User's Guide but I have no success.
>
> I use crosstool: crosstool-cygwin-gcc-3.3.2-glibc-2.3.2.tar
libc.so.* is the binary version of the C library, which must reside in
the filesystem of the device you run the executables on. It's normally
in /lib/libc.so.6
(in ancient times libc.so.5 was used, and before that libc.so.4)
You have on the target board ("ls /lib/libc.so.*")
Your cross-compiler contains the dynamic libraries for the target
host, which it uses as a reference to construcy the executables. But
when you rin it on the target system those libraries (or something fo
the same name that is close enough to work) must be present. If your
target system is missing /lib/libc.so.6, you should be able to find,
in the cross-compiler's directories somewhere, the version that it is
using. Copy that (and probably all the other missing dynamic
libraries) over to the target system.
If you don't want to taint your target operating system, you can place
the extra shared libraries in some directory
(/usr/local/lib/glibc-2.3.2 or something), add the name of that
directory on a line of it own to /etc/ld.so.conf and run "ldconfig"
(as root) to update the loader path. It should then work.
However, adding a dir to ld.so.conf will affect all programs on the system.
If you prefer a safe alternative, you can tell it to add that library
directory for just one run of one executable by saying
LD_LOAD_PATH=/usr/local/gcc-3.2.3 my-prog
or whatever
Good luck!
M
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|