[uClibc]still getting undefined symbols
Ilan Pollak
ilanp at galileo.co.il
Thu Jul 25 07:36:33 UTC 2002
Hello again,
I've downloaded my toolchain (arm-elf-tools-20011219) and now when I try
to build uClinux-dist-20020701 i get this problem:
arm-elf-gcc -Os -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED
-I/home/ilanp/uclinux/uClinux-dist/lib/uClibc/include
-I/home/ilanp/uclinux/uClinux-dist/lib/libm
-I/home/ilanp/uclinux/uClinux-dist -fno-builtin -nostartfiles
-I/home/ilanp/uclinux/uClinux-dist/linux-2.4.x/include -Wl,-elf2flt
/home/ilanp/uclinux/uClinux-dist/lib/libc/crt0.o
-o boa alias.o auth.o boa.o cgi.o cgi_header.o config.o get.o hash.o
log.o nls.o pipe.o queue.o read.o request.o
response.o signals.o timestamp.o util.o -lcrypt
-L/home/ilanp/uclinux/uClinux-dist/lib/uClibc/.
-L/home/ilanp/uclinux/uClinux-dist/lib/uClibc/lib
-L/home/ilanp/uclinux/uClinux-dist/lib/libm
-L/home/ilanp/uclinux/uClinux-dist/lib/libnet
-L/home/ilanp/uclinux/uClinux-dist/lib/libdes
-L/home/ilanp/uclinux/uClinux-dist/lib/libpcap
-L/home/ilanp/uclinux/uClinux-dist/lib/libssl -lc
boa.elf2flt: In function `__uClibc_main':
boa.elf2flt(.text+0x726c): undefined reference to `_fini'
boa.elf2flt(.text+0x7274): undefined reference to `_init'
collect2: ld returned 1 exit status
This happens after uClibc is built with no errors... why's that?
(i had a problem with these symbols, but using arm-elf-tools-20010315
solved it - i guess not that great ...)
BTW: nm libc/misc/internals/__uClibc_main.o generates this:
00000000 D __environ
U __errno_location
U __h_errno_location
00000000 T __uClibc_main
U _fini
U _init
U _stdio_init
U atexit
00000000 V environ
U exit
U main
How do I get these symbols to be REALLY weak, and not undefined ?
ilan.
More information about the uClibc
mailing list