Hi,

-----Original Message-----
From: Natanael Copa [mailto:[EMAIL PROTECTED] 
Sent: 02 June 2005 11:53
To: [email protected]
Subject: [gentoo-embedded] vim and less segfaulting

Looks like my uclibc hardened environment is broken.

<snip>

Also gcc fails to compile.

/work/build/gcc/xgcc
-B/var/tmp/portage/gcc-3.4.3.20050110-r2/work/build/gcc/
-B/usr/i386-pc-linux-uclibc/bin/ -B/usr/i386-pc-linux-uclibc/lib/
-isystem /usr/i386-pc-linux-uclibc/include -isystem
/usr/i386-pc-linux-uclibc/sys-include -E checking for egrep... grep -E
checking for ANSI C header files... yes checking for sys/types.h... yes
checking for sys/stat.h... yes checking for stdlib.h... yes checking for
string.h... yes checking for memory.h... yes checking for strings.h...
yes checking for inttypes.h... yes checking for stdint.h... yes checking
for unistd.h... yes checking for C locale to use... configure: error:
Unknown argument to enable/disable clocale
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory
`/var/tmp/portage/gcc-3.4.3.20050110-r2/work/build'
make: *** [profiledbootstrap] Error 2

I had a problem with my gentoo due to hardened a little while ago and it
took me a while to find the problem. I had problems to run X11 and to
build grub. In the end I read http://lwn.net/Articles/106214/ and
discovered that X was a known issue for hardened. Following their advice
I did:

USE="-hardened -pie -pic" emerge glibc
USE="-hardened -pie -pic" emerge gcc
USE="-hardened -pie -pic" emerge binutils
USE="-hardened -pie -pic" emerge xorg-x11

This fixed the problem with X and also allowed to compile grub again (I
think you can safely build binutils hardened). Maybe glibc / gcc is your
issue here?

Hope that proves to be some help. If not, I hope you find someone with
more idea who can help you
Good luck
Chris

-- 
[email protected] mailing list

Reply via email to