[uClibc]Wrong directory for ld-uClibc.so.0

Peter Jonas PJonas at t-online.de
Sun Jan 12 08:47:45 UTC 2003


Hello,
I am trying to use the toolchain to compile a simple hello-world
program. I have set the PATH as follows:

export PATH=/usr/i386-linux/bin:$PATH

and compiled by 

i386-uclibc-gcc -o test test.c

when checking with i386-uclibc-ldd test, I get

 libm.so.0 => /usr/i386-linux-uclibc/lib/libm.so.0 (0x00000000)
 libdl.so.0 => /usr/i386-linux-uclibc/lib/libdl.so.0 (0x00000000)
 libc.so.0 => /usr/i386-linux-uclibc/lib/libc.so.0 (0x00000000)
 /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000

but in /lib there is no ld-uClibc.so.0 but in
/usr/i386-linux-uclibc/lib.

As result, I can't execute the compiled program on the target machine.

Additionally, I tried to change the PATH to 
 
export PATH=/usr/i386-linux/i386-linux/bin:$PATH
and then use "gcc -o test test.c"

but with the same result. Sorry, if this question was posted before but
also after reading similar postings I found no solution.

Regards,
 Peter



More information about the uClibc mailing list