On Sun, 2012-07-01 at 18:20 +0100, Andrew Benton wrote: > Then an error due to a problem with gcc: > > /mnt/lfs/sources/glibc-build/resolv/libresolv_pic.a(gethnamaddr.os): In > function `getanswer': > /mnt/lfs/sources/glibc-2.16.0/resolv/gethnamaddr.c:180: undefined reference > to `__stack_chk_guard' > /mnt/lfs/sources/glibc-2.16.0/resolv/gethnamaddr.c:483: undefined reference > to `__stack_chk_guard' > /mnt/lfs/sources/glibc-build/resolv/libresolv_pic.a(gethnamaddr.os): In > function `res_gethostbyaddr': > /mnt/lfs/sources/glibc-2.16.0/resolv/gethnamaddr.c:644: undefined reference > to `__stack_chk_guard' > /mnt/lfs/sources/glibc-2.16.0/resolv/gethnamaddr.c:783: undefined reference > to `__stack_chk_guard' > /mnt/lfs/sources/glibc-build/resolv/libresolv_pic.a(gethnamaddr.os): In > function `__GI_res_gethostbyname2': > /mnt/lfs/sources/glibc-2.16.0/resolv/gethnamaddr.c:510: undefined reference > to `__stack_chk_guard' > /mnt/lfs/sources/glibc-build/resolv/libresolv_pic.a(gethnamaddr.os):/mnt/lfs/sources/glibc-2.16.0/resolv/gethnamaddr.c:636: > more undefined references to `__stack_chk_guard' follow > collect2: error: ld returned 1 exit status > make[2]: *** [/mnt/lfs/sources/glibc-build/resolv/libresolv.so] Error 1 > make[2]: *** Waiting for unfinished jobs.... > make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0/resolv' > make[1]: *** [resolv/others] Error 2 > make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.16.0' > make: *** [all] Error 2 > > Fixed by this sed in the gcc source before the first pass of gcc: > > sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure
I don't mind displaying my lack of autofoo knowledge in public, so why is passing 'gcc_cv_libc_provides_ssp=yes' on gcc pass1's configure command line not enough here? I tried it and still get the same error as you. Testing the sed now, but I'm sure it'll work. Regards, Matt. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page