glibc fails to compile

Wesley Schroth wschroth at sbcglobal.net
Thu Jun 18 02:30:45 PDT 2009


On Thu, 2009-06-18 at 10:10 +0100, Ken Moffat wrote:
> 2009/6/18 Wesley Schroth <wschroth at sbcglobal.net>:
> > I am currently attempting to build glibc, however, it fails with the
> > message:
> > gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs
> > -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2
> > -B/mnt/lfs/sources/glibc-build/csu/
> > -Wl,--version-script=/mnt/lfs/sources/glibc-build/libc.map
> > -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro
> > -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main
> > -L/mnt/lfs/sources/glibc-build -L/mnt/lfs/sources/glibc-build/math
> > -L/mnt/lfs/sources/glibc-build/elf -L/mnt/lfs/sources/glibc-build/dlfcn
> > -L/mnt/lfs/sources/glibc-build/nss -L/mnt/lfs/sources/glibc-build/nis
> > -L/mnt/lfs/sources/glibc-build/rt -L/mnt/lfs/sources/glibc-build/resolv
> > -L/mnt/lfs/sources/glibc-build/crypt -L/mnt/lfs/sources/glibc-build/nptl
> > -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl -o /mnt/lfs/sources/glibc-build/libc.so -T /mnt/lfs/sources/glibc-build/shlib.lds /mnt/lfs/sources/glibc-build/csu/abi-note.o /mnt/lfs/sources/glibc-build/elf/soinit.os /mnt/lfs/sources/glibc-build/libc_pic.os /mnt/lfs/sources/glibc-build/elf/sofini.os /mnt/lfs/sources/glibc-build/elf/interp.os /mnt/lfs/sources/glibc-build/elf/ld.so -lgcc
> > /mnt/lfs/sources/glibc-build/libc_pic.os: In function `iconv_open':
> > /mnt/lfs/sources/glibc-2.10.1/iconv/iconv_open.c:89: undefined reference
> > to `__stack_chk_fail_local'
> 
> >
> > I don't know what to try.
> >
> 
> I'm not familiar with this error message, but google has seen a few of
> these over the years
> [ http://www.google.com/linux?hl=en&q=undefined+reference+to+`__stack_chk_fail_local'&btnG=Search
> ]
> 
> Some of those, particularly from hlfs, seem to be caused by SSP (Stack
> Smashing Protector, I think), so that might be relevant if your host
> distro enables it.  Unfortunately I have no idea how to check if SSP
> is in use, nor how to turn it off.
> 
> But, one of the other matches was for somebody who had passed an
> inadequate command line to glibc's configure.  So, please check that
> you passed all the specified parameters to configure (e.g. no missing
> backslashes), and that (for the development book) LFS_TGT is
> defined.
> 
> ĸen

I poked around, and I tried some of the advice from this:
http://sources.redhat.com/ml/libc-help/2008-05/msg00012.html
So far, it seems to be working.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20090618/4e4b5dc7/attachment.sig>


More information about the lfs-support mailing list