Well, I tried to merge util-vserver yesterday on my hardened machine, and it died. -- /bin/sh ./libtool --mode=link --tag=CC i686-pc-linux-gnu-gcc -march=athlon-xp -O2 -pipe -std=c99 -Wall -pedantic -W -o src/vdu src/vdu.o diet i686-pc-linux-gnu-gcc -march=athlon-xp -O2 -pipe -std=c99 -Wall -pedantic -W -o src/exec-cd src/exec-cd.o src/exec-cd.o(.text+0xf): In function `FatalErrnoError': : undefined reference to `__guard' src/exec-cd.o(.text+0x31): In function `FatalErrnoError': : undefined reference to `__stack_smash_handler' src/exec-cd.o(.text+0x8a): In function `main': : undefined reference to `__guard' src/exec-cd.o(.text+0x160): In function `main': : undefined reference to `__guard' src/exec-cd.o(.text+0x17a): In function `main': : undefined reference to `__stack_smash_handler' collect2: ld returned 1 exit status make[2]: *** [src/exec-cd] Error 1 make[2]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -march=athlon-xp -O2 -pipe -std=c99 -Wall -pedantic -W -o src/vdu src/vdu.o make[2]: Leaving directory `/var/tmp/portage/util-vserver-0.30.196/work/util-vserver-0.30.196' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/util-vserver-0.30.196/work/util-vserver-0.30.196' make: *** [all] Error 2 -- So i did some investigations and found out that it was due to dietlibc which wasn't working properly on gcc-hardened. So I created an ebuild for it in my overlay with another dependency (>=dietlibc-0.26-r1) and it worked ... Thank solar for the patches ;) -- 07 Aug 2004; <solar@gentoo.org> : Made dietlibc propolice/ssp aware on arches sparc/sparc64/x86_64/i386. Also made feeble attempt to version bump to 0.27 but that failed something fierce --
Well, this works for me on >=gcc-3.4.3 but not on =gcc-3.3.5-r1. Same error as perviously ... gcc-3.3.5-r1-hardenednopie works ... doesn't know exactly why, but it works ..
Well, finally seems to be an issue with gcc. Marking as invalid.