Chap. 5.6 - glibc-2.7 compilation error

Circul tatooine at ukr.net
Wed Jan 16 11:04:26 PST 2008


Hi All

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

http://www.linuxfromscratch.org/lfs/view/development/chapter05/glibc.html
During "make" have been recevied this error:

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

Try to compile glibc-2.6.1 - no errors, all compiled fine.

What's wrong ?

-- 
Good Luck & By ...
mailto:tatooine at ukr.net




More information about the lfs-dev mailing list