Ernesto Rodriguez Ortiz skrev:
Hello here, I have some problems compiled glibc, I am trying to install a
server with PaX and SELinux, I have an decompressing stage3 hardened and
portage, change the profile for selinux/2007.0/x86/hardened and set the
make.conf as a show down .Any idea how I can fix the problem with glibc?
Portage 2.1.4.4 (selinux/2007.0/x86/hardened, gcc-3.4.6, glibc-2.6.1-r0,
2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.22-nova-r9 i686 unknown
Timestamp of tree: Mon, 22 Sep 2008 01:45:01 +0000
app-shells/bash: 3.2_p33
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r2
sys-devel/automake: 1.10
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fstack-protector-all"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf
/etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer -fstack-protector-all"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks loadpolicy metadata-transfer sandbox selinux sesandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://10.128.50.122
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... no
configure: error: Need linker with .init_array/.fini_array support.
*
* ERROR: sys-libs/glibc-2.6.1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3379: Called eblit-run 'src_compile'
* environment, line 1104: Called eblit-glibc-src_compile
* src_compile.eblit, line 181: Called toolchain-glibc_src_compile
* src_compile.eblit, line 120: Called glibc_do_configure 'src_compile'
* src_compile.eblit, line 97: Called die
* The specific snippet of code:
* "${S}"/configure ${myconf} || die "failed to configure glibc"
* The die message:
* failed to configure glibc
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at
'/var/log/portage/sys-libs:glibc-2.6.1:20081008-153540.log'.
* The ebuild environment file is located at
'/var/tmp/portage/sys-libs/glibc-2.6.1/temp/environment'.
*
Start with removeing the -fstack-protector-all in your CFLAGS and CXXFLAGS.
Any hardened flag is on by the compiler and don't need to be set in your
CFLAGS and CXXFLAGS.
/Magnus