[uClibc]uClibc 0.9.17 cross compiling for mipsel-linux
Mark and Janice Juszczec
juszczec at hotmail.com
Thu Jan 30 20:49:48 UTC 2003
Hi folks
I'm working with a Helio PDA running mipsel-linux. I want to replace glibc
with uClibc, but I'm having some trouble. Can anyone please give me some
advice?
I'm using:
linux kernel 2.4.0-test1-acc22 precompiled for me
glibc v? precompiled for me
BusyBox 0.60.1 precompiled for me with glibc
uClibc 0.9.16 compiled by me with mipsel-gcc 2.95.2
BusyBox 0.60.1 compiled by me with uClibc 0.9.16
BusyBox init won't run with uClibc 0.9.16
Someone on the BusyBox list said use uClibc 0.9.17
I compiled it and got:
syscalls.c: In function `getdents64':
syscalls.c:1773: `__NR_getdents64' undeclared (first use in this function)
(snip)
make[4]: *** [getdents64.o] Error 1
I found it commented out in libc/sysdeps/linux/common/syscalls.c
and uncommented it. Then I got to wondering if it was the right thing to
do. Is it?
When I compiled again, I got:
make[1]: Entering directory `/home/markj/myboot/uClibc-0.9.17/libc'
mipsel-linux-ar rv ./tmp/libgcc-need.a
Finding missing symbols in libc.a ...
partial linking...
Symbol _fini needed by libc.a but not found in libgcc.a
Symbol _init needed by libc.a but not found in libgcc.a
Symbol fcntl64 needed by libc.a but not found in libgcc.a
make[1]: *** [shared] Error 1
What do I need to do to correct this?
I found numerous references to this in the archive. I also found reference
to a patch. The subject line was "[uClibc][PATCH] MIPS dynamic linker
patch and init/fini changes..." and it was posted by Steven J. Hill
Do I need to apply the patch or has it been included in 0.9.17?
I also saw reference to setting HAVE_ELF=false to fix the problem. Isn't
elf the binary format for linux on all architectures, even mipsel-linux?
BTW, what is LDSO as in BUILD_UCLIBC_LDSO=y and LDSO_LDD_SUPPORT=y?
Thanks
Mark
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
More information about the uClibc
mailing list