(Ch.5) GCC: undefined reference to `__guard'

Robert Connolly robert at linuxfromscratch.org
Fri Aug 26 18:40:59 PDT 2005


I don't think you used the ssp patch in for libc. The undefined reference 
error is because there is no __guard function in libc.so.

robert

On August 26, 2005 08:55 pm, David Ciecierski wrote:
> Hello,
> Just starting HLFS and came across this error. I'm quite sure I did
> everything as I was supposed to - perhaps maybe except some innocent
> optimizations. I did remember to apply patches and stuff. My host system
> is LFS SVN ~2005.08, so pretty recent. Can you please point me where
> things could have gone wrong?
>
> Regards,
> David Ciecierski
>
> PS: Full output:
>
> hlfs:/mnt/hlfs/sources/gcc-build$ gcc -o test test.c
> /tmp/ccknw0vc.o: In function `overflow':
> test.c:(.text+0x14): undefined reference to `__guard'
> test.c:(.text+0x3f): undefined reference to `__guard'
> test.c:(.text+0x5b): undefined reference to `__stack_smash_handler'
> /tmp/ccknw0vc.o: In function `main':
> test.c:(.text+0x8f): undefined reference to `__guard'
> test.c:(.text+0xa0): undefined reference to `__guard'
> test.c:(.text+0xd6): undefined reference to `__guard'
> test.c:(.text+0xf2): undefined reference to `__stack_smash_handler'
> collect2: ld returned 1 exit status
> hlfs:/mnt/hlfs/sources/gcc-build$



More information about the hlfs-dev mailing list