This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Linker errors while linking ecos application with libc.a
- From: Balasaravanan P <pbalasaravanan at gmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 22 Jun 2005 14:57:33 +0530
- Subject: [ECOS] Linker errors while linking ecos application with libc.a
- Reply-to: Balasaravanan P <pbalasaravanan at gmail dot com>
Hi,
I was linking my ecos application with libc.a. I received the
following linker errors.
I am not able to figure out a fix for this.
Can anyone please let me know how this can be fixed?
"
GNU ld version 2.13.1 (eCosCentric)
libc.a(strtok.o): In function `strtok':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/str/strtok.c(.text+0xc8)
: undefined reference to `_libc_private_storage'
libc.a(rand.o): In function `rand':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/std/rand.c(.text+0x48):
undefined reference to `_libc_private_storage'
libc.a(rand.o): In function `srand':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/std/rand.c(.text+0x9c):
undefined reference to `_libc_private_storage'
libc.a(fclose.o): In function `_weak__flockfree':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fclose.c(.text+0x8
): undefined reference to `funlockfile'
libc.a(fclose.o): In function `fclose':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fclose.c(.text+0x2
c): undefined reference to `flockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fclose.c(.text+0x5
0): undefined reference to `funlockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fclose.c(.text+0x7
c): undefined reference to `funlockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fclose.c(.text+0x9
0): undefined reference to `close'
libc.a(fflush.o): In function `_flslbuf':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.text+0xc
): undefined reference to `ftrylockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.text+0x3
8): undefined reference to `funlockfile'
libc.a(fflush.o): In function `_flsobuf':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.text+0x6
8): undefined reference to `ftrylockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.text+0x9
8): undefined reference to `funlockfile'
libc.a(fflush.o): In function `fflush':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.text+0xe
4): undefined reference to `flockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.text+0x1
08): undefined reference to `funlockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.text+0x1
30): undefined reference to `funlockfile'
libc.a(fflush.o): In function `_fflush':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.text+0x1
d8): undefined reference to `lseek'
libc.a(fgetc.o): In function `fgetc':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fgetc.c(.text+0xc0
): undefined reference to `flockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fgetc.c(.text+0xd4
): undefined reference to `funlockfile'
libc.a(fopen.o): In function `fopen':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fopen.c:48: undefi
ned reference to `open'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fopen.c:48: undefi
ned reference to `open'
libc.a(localtime.o): In function `tzset':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.text+0
x844): undefined reference to `getenv'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.text+0
x858): undefined reference to `pthread_mutex_lock'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.text+0
x898): undefined reference to `pthread_mutex_unlock'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.text+0
x904): undefined reference to `pthread_mutex_lock'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.text+0
x93c): undefined reference to `pthread_mutex_unlock'
libc.a(localtime.o): In function `localtime':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.text+0
xb50): undefined reference to `_libc_private_storage'
libc.a(offtime.o): In function `offtime':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/offtime.c(.text+0x3
44): undefined reference to `_libc_private_storage'
libc.a(isatty.o): In function `isatty':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/px/isatty.c(.text+0x10):
undefined reference to `ioctl'
libc.a(time.o): In function `time':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/sys/time.c(.text+0x14):
undefined reference to `gettimeofday'
libc.a(_doprnt.o): In function `vfprintf':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_doprnt.c:205: und
efined reference to `flockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_doprnt.c:205: und
efined reference to `funlockfile'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_doprnt.c:205: und
efined reference to `funlockfile'
libc.a(_filbuf.o): In function `_filbuf':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_filbuf.c(.text+0x
7c): undefined reference to `read'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_filbuf.c(.text+0x
bc): undefined reference to `read'
libc.a(_flsbuf.o): In function `_flsbuf':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_flsbuf.c(.text+0x
dc): undefined reference to `write'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_flsbuf.c(.text+0x
140): undefined reference to `write'
libc.a(_flspbuf.o): In function `_flspbuf':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_flspbuf.c(.text+0
x50): undefined reference to `write'
libc.a(_iobproc.o): In function `_ioballoc':
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_iobproc.c(.text+0
x14): undefined reference to `pthread_mutex_lock'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_iobproc.c(.text+0
xb4): undefined reference to `pthread_mutex_unlock'
/amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_iobproc.c(.text+0
x124): undefined reference to `pthread_mutex_unlock'
make: *** [build] Error 1
"
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss