glibc-2.8-20080929 build fails in Chapter 5
robert at linuxfromscratch.org
Wed Oct 15 11:58:10 PDT 2008
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:
>sp/ssp.c:175: multiple definition of `__stack_chk_fail_local'
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the lfs-dev