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

David Ciecierski davidcie at klub.chip.pl
Fri Aug 26 17:55:10 PDT 2005


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