glibc-2.7 step 1 compilation error

Dima tatooine at ukr.net
Wed Jan 16 15:28:13 PST 2008


Hello Dan,

Wednesday, January 16, 2008, 10:15:08 PM, you wrote:

DN> On Jan 15, 2008 10:38 AM, Dima <tatooine at ukr.net> wrote:
>> Hi All
>>
>> LFS book       : SVN-2008-0104
>> uname -a       : Linux saturn 2.6.23.8-34.fc7 #1 SMP Thu Nov 22 20:32:37 EST 2007 i586 i586 i386 GNU/Linux
>> CPU            : Intel Pentium MMX 200
>>
>> On step 5.6 have next error while compiling glibc-2.7:
>>
>> a - io/lstat64.oS
>> a - io/fstatat.oS
>> a - io/fstatat64.oS
>> a - io/mknod.oS
>> a - io/mknodat.oS
>> a - debug/warning-nop.oS
>> a - debug/stack_chk_fail_local.oS
>> : /mnt/lfs/sources/glibc-build/libc_nonshared.a
>> gcc -B/tools/bin/   -nostdlib -nostartfiles -r -o /mnt/lfs/sources/glibc-build/libc_pic.os \
>>          -Wl,-d -Wl,--whole-archive /mnt/lfs/sources/glibc-build/libc_pic.a
>> /mnt/lfs/sources/glibc-build/libc_pic.a(memcpy_chk.os): In function `__memcpy_chk':
>> /var/src/glibc-2.7/debug/memcpy_chk.c:32: multiple definition of `__memcpy_chk'
>> /mnt/lfs/sources/glibc-build/libc_pic.a(memcpy.os):(.text+0x0): first defined here
>> /mnt/lfs/sources/glibc-build/libc_pic.a(mempcpy_chk.os): In function `__mempcpy_chk':
>> /var/src/glibc-2.7/debug/mempcpy_chk.c:33: multiple definition of `__mempcpy_chk'
>> /mnt/lfs/sources/glibc-build/libc_pic.a(mempcpy.os):(.text+0x0): first defined here
>> /mnt/lfs/sources/glibc-build/libc_pic.a(memset_chk.os): In function `__memset_chk':
>> /var/src/glibc-2.7/debug/memset_chk.c:28: multiple definition of `__memset_chk'
>> /mnt/lfs/sources/glibc-build/libc_pic.a(memset.os):(.text+0x0): first defined here
>> collect2: ld returned 1 exit status
>> make[1]: *** [/mnt/lfs/sources/glibc-build/libc_pic.os] Error 1
>> make[1]: Leaving directory `/var/src/glibc-2.7'
>> make: *** [all] Error 2
>>
>> What's wrong ? How to resolve this problem ?

DN> I'm not sure, but some patches were committed to glibc CVS that were
DN> supposed to fix this. Here's the original report, although it didn't
DN> fix the issue for the reporter:

DN> http://sourceware.org/ml/libc-alpha/2007-10/msg00003.html

DN> Here's the commit with links to the patches:
DN> http://sourceware.org/ml/glibc-cvs/2007-q4/msg00428.html

DN> Can you try those out?

Thanks a lot. This patch solve this problem.

First link was finded by me, but i start it from wrong folder and it
wasn't implemented.
Your second link help me to understand my mistake.
Thank you very mach.



-- 
Best regards,
 Dima                            mailto:tatooine at ukr.net




More information about the lfs-support mailing list