public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Balasaravanan P <pbalasaravanan@gmail.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Linker errors while linking ecos application with libc.a
Date: Wed, 22 Jun 2005 09:27:00 -0000	[thread overview]
Message-ID: <122f8500050622022761fef63a@mail.gmail.com> (raw)

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

             reply	other threads:[~2005-06-22  9:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22  9:27 Balasaravanan P [this message]
2005-06-22 10:15 ` Andrew Lunn
2005-06-22 10:34   ` Balasaravanan P
2005-06-22 10:57     ` Andrew Lunn
2005-06-22 13:14       ` Balasaravanan P
2005-06-22 18:55         ` Andrew Lunn
2005-06-23  5:05           ` Balasaravanan P

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=122f8500050622022761fef63a@mail.gmail.com \
    --to=pbalasaravanan@gmail.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).