linux-mips
[Top] [All Lists]

Re: mips linux glibc-2.3.3 build - linker errors

To: linux-mips@linux-mips.org
Subject: Re: mips linux glibc-2.3.3 build - linker errors
From: "T. P. Saravanan" <sara@procsys.com>
Date: Fri, 08 Oct 2004 15:23:54 +0530
In-reply-to: <41665DEA.3090307@procsys.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <41665DEA.3090307@procsys.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
T. P. Saravanan wrote:

glibc-2.3.3 build on linux-mips breaks down with following linker error:

sara@eyeore: [over] ~/build/glibc/objdir6$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.3.3 objdir=`pwd` all
make[1]: Entering directory `/home/sara/build/glibc/glibc-2.3.3'
make  -C csu subdir_lib
.
.
.
make[4]: Nothing to be done for `rtld-all'.
make[4]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3/time'
make[3]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3/elf'
make[2]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3/elf'
gcc -mabi=32 -nostdlib -nostartfiles -r -o /home/sara/build/glibc/objdir6/libc_pic.os \
-Wl,-d -Wl,--whole-archive /home/sara/build/glibc/objdir6/libc_pic.a
/home/sara/build/glibc/objdir6/libc_pic.a(strtold_l.os)(.text+0x0): In function `*__GI___strtold_internal': ../sysdeps/generic/strtold.c:25: multiple definition of `__GI___strtold_internal' /home/sara/build/glibc/objdir6/libc_pic.a(strtold.os)(.text+0x0):../sysdeps/generic/strtold.c:25: first defined here /home/sara/build/glibc/objdir6/libc_pic.a(strtold_l.os)(.text+0x0): In function `*__GI___strtold_internal': ../sysdeps/generic/strtold.c:25: multiple definition of `__strtold_internal' /home/sara/build/glibc/objdir6/libc_pic.a(strtold.os)(.text+0x0):../sysdeps/generic/strtold.c:25: first defined here /home/sara/build/glibc/objdir6/libc_pic.a(strtold_l.os)(.text+0x38): In function `strtold':
../sysdeps/generic/strtold.c:32: multiple definition of `strtold'
/home/sara/build/glibc/objdir6/libc_pic.a(strtold.os)(.text+0x38):../sysdeps/generic/strtold.c:32: first defined here
collect2: ld returned 1 exit status
make[1]: *** [/home/sara/build/glibc/objdir6/libc_pic.os] Error 1
make[1]: Leaving directory `/home/sara/build/glibc/glibc-2.3.3'
make: *** [all] Error 2

ar -d lib_pic.a strtold.os

got me be beyond this point. (If somebody knows that this is not the way to do it - let me know.)

-Sa.

<Prev in Thread] Current Thread [Next in Thread>