On Wednesday October 15 2008 03:39:49 am Bruce Dubbs wrote:
> LFS SVN-20081015
>
> I tried jhalfs and a manual build but glibc fails for me in exactly the
> same place:
>
> /mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libssp/../../../gcc-4.3.2/libs
>sp/ssp.c:175: multiple definition of `__stack_chk_fail_local'
> /mnt/lfs/sources/glibc-build/libc_nonshared.a(stack_chk_fail_local.oS):/mnt
>/lfs/sources/glibc-2.8-20080929/debug/stack_chk_fail_local.c:28: first
> defined here
>
> This was while trying to build
>
>    -o /mnt/lfs/sources/glibc-build/nscd/nscd
>
> Has anyone else see this?
>
>    -- Bruce

Glibc builds nscd with -fstack-protector. If GCC pass1 does not find a new 
version of glibc (glibc-2.5 I think), it will link to libssp 
when -fstack-protector is used, and then you get this conflict.

--disable-libssp in GCC pass1 is best. Last time I looked at the test in 
gcc/configure, it checks "/usr/include/features.h" for the Glibc version. So 
you will probably need --disable-libssp in GCC pass2 too, because 
gcc/configure is going to check your host again, and you'll run into the same 
conflict in the chroot. --disable-libssp prevents libssp from being built, 
and removes -lssp from gcc specs, so -fstack-protector will only work if you 
have libssp built in to libc.

--disable-libssp can be used again in the chroot when building gcc. Everything 
in this library is included in Glibc-2.8, and libssp is just a waste of 
space.

robert

Attachment: pgprRlh0f2mdR.pgp
Description: PGP signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to