[uClibc]linker errors

Tom Walsh tom at cyberiansoftware.com
Mon Apr 23 20:30:10 UTC 2001


Hello,

I cannot seem to figure out how this is failing..  I am attempting to
get ifattach compiled and I keep getting this:

============================================================
make[1]: Entering directory `/home/opt/ez328lcd-2.4/src.kuhn/ifattach'
m68k-elf-gcc -m68000 -O2 -fomit-frame-pointer -I../include ifattach.o
-Wl,-elf2flt -lc -L../libns -lns -o ifattach
mount.elf2flt: In function `lock_mtab':
mount.elf2flt(.text+0x13ae): undefined reference to `sigfillset'
mount.elf2flt: In function `block_signals':
mount.elf2flt(.text+0x1e96): undefined reference to `sigfillset'
collect2: ld returned 1 exit status
make[1]: *** [mount] Error 1
ifattach.elf2flt: In function `lseek':
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `close'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `socket'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `close'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `strcpy'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `strerror'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `strerror'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `strcpy'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `inet_addr'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `inet_addr'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `memset'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `inet_addr'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `inet_addr'
/usr/local/src/m68k-elf/uClibc.kuhn/sysdeps/linux/common/syscalls.c:175:
undefined reference to `inet_addr'
collect2: ld returned 1 exit status
make[1]: *** [ifattach] Error 1
make[1]: Leaving directory `/home/opt/ez328lcd-2.4/src.kuhn/ifattach'
make: *** [all] Error 2

============================================================

Any ideas?  I have two versions of uClibc and they both do this.  I
looked in the libc.a and the symbols are defined in there and the
routines are not declared anything like 'static'.  Ideas welcome!

TIA,

TomW

-- 
Tom Walsh - WN3L - Embedded Systems Consultant
'www.openhardware.net', 'www.cyberiansoftware.com'
"Windows? No thanks, I have work to do..."





More information about the uClibc mailing list