Results 1 to 2 of 2
Last week I decided to try and further my knowledge of Linux by making my own distro by following the LinuxFromScratch guide and to be expected I hit a little ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-08-2013 #1
- Join Date
- Jun 2013
Getting errors when running make on glibc
I am trying to compile the glibc program for my initial toolchain. After running the make install command it ends with this.
/mnt/lfs/sources/glibc-2.17/resolv/gethnamaddr.c:180: undefined reference to `__stack_chk_guard' /mnt/lfs/sources/glibc-2.17/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.17/resolv/gethnamaddr.c:644: undefined reference to `__stack_chk_guard' /mnt/lfs/sources/glibc-2.17/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.17/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.17/resolv/gethnamaddr.c:636: more undefined references to `__stack_chk_guard' follow collect2: error: ld returned 1 exit status make: *** [/mnt/lfs/sources/glibc-build/resolv/libresolv.so] Error 1 make: Leaving directory `/mnt/lfs/sources/glibc-2.17/resolv' make: *** [resolv/subdir_install] Error 2 make: Leaving directory `/mnt/lfs/sources/glibc-2.17' make: *** [install] Error 2
- 07-09-2013 #2
The error comes from the linker ld, which means that the compilation worked but the linking stage failed. There is a function referred to in the code which wasn't found in any of the modules to be linked.
If this kind of error occurs in lfs, it's probably because you used the wrong version of something earlier on. lfs is like painting by numbers; you have to follow the instructions rigidly, including using the correct versions of all the tools in your toolchain."I'm just a little old lady; don't try to dazzle me with jargon!"