Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82483 - util-vserver needs new dependeny (dietlibc-0.26-r1) to compile on gcc-hardened
Summary: util-vserver needs new dependeny (dietlibc-0.26-r1) to compile on gcc-hardened
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 11:27 UTC by Christian Heim (RETIRED)
Modified: 2005-02-19 10:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Heim (RETIRED) gentoo-dev 2005-02-18 11:27:20 UTC
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
--
Comment 1 Christian Heim (RETIRED) gentoo-dev 2005-02-19 00:05:20 UTC
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 ..
Comment 2 Christian Heim (RETIRED) gentoo-dev 2005-02-19 10:35:21 UTC
Well, finally seems to be an issue with gcc. Marking as invalid.