From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10936 invoked by alias); 22 Jun 2005 09:27:49 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 10711 invoked by uid 22791); 22 Jun 2005 09:27:35 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.207) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 22 Jun 2005 09:27:35 +0000 Received: by wproxy.gmail.com with SMTP id 69so186862wri for ; Wed, 22 Jun 2005 02:27:33 -0700 (PDT) Received: by 10.54.29.24 with SMTP id c24mr322141wrc; Wed, 22 Jun 2005 02:27:33 -0700 (PDT) Received: by 10.54.2.32 with HTTP; Wed, 22 Jun 2005 02:27:33 -0700 (PDT) Message-ID: <122f8500050622022761fef63a@mail.gmail.com> Date: Wed, 22 Jun 2005 09:27:00 -0000 From: Balasaravanan P Reply-To: Balasaravanan P To: ecos-discuss@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [ECOS] Linker errors while linking ecos application with libc.a X-SW-Source: 2005-06/txt/msg00198.txt.bz2 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.=20 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+0x= 48): 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+0x= 9c): 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(.tex= t+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(.tex= t+0x2 c): undefined reference to `flockfile' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fclose.c(.tex= t+0x5 0): undefined reference to `funlockfile' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fclose.c(.tex= t+0x7 c): undefined reference to `funlockfile' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fclose.c(.tex= t+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(.tex= t+0xc ): undefined reference to `ftrylockfile' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.tex= t+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(.tex= t+0x6 8): undefined reference to `ftrylockfile' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.tex= t+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(.tex= t+0xe 4): undefined reference to `flockfile' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.tex= t+0x1 08): undefined reference to `funlockfile' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fflush.c(.tex= t+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(.tex= t+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: u= ndefi ned reference to `open' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/fopen.c:48: u= ndefi 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(.t= ext+0 x844): undefined reference to `getenv' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.t= ext+0 x858): undefined reference to `pthread_mutex_lock' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.t= ext+0 x898): undefined reference to `pthread_mutex_unlock' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.t= ext+0 x904): undefined reference to `pthread_mutex_lock' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/time/localtime.c(.t= ext+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(.t= ext+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(.tex= t+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+0= x10): 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+0x= 14): 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(.te= xt+0x 7c): undefined reference to `read' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_filbuf.c(.te= xt+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(.te= xt+0x dc): undefined reference to `write' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_flsbuf.c(.te= xt+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(.t= ext+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(.t= ext+0 x14): undefined reference to `pthread_mutex_lock' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_iobproc.c(.t= ext+0 xb4): undefined reference to `pthread_mutex_unlock' /amd/olympia/root/mnt/raid/home/nigel/sandbox/sde/lib/c/stdio/_iobproc.c(.t= ext+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