Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236352 - Glibc-2.8_p20080602 configuration failed : PIE hardening not applied
Summary: Glibc-2.8_p20080602 configuration failed : PIE hardening not applied
Status: RESOLVED DUPLICATE of bug 137933
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-01 13:48 UTC by Boursin
Modified: 2008-09-01 13:51 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 Boursin 2008-09-01 13:48:22 UTC
I was merging glibc to upgrading my gentoo system to an hardened one. I don't know if it's a bug, but I didn't found any solution. 


Reproducible: Always

Steps to Reproduce:
1.Switching to hardened profile
2.Merging binutils
3.Merging gcc ( dependencies : glibc )

Actual Results:  
Glibc fails to configure itself

Expected Results:  
Glibc correcty configured and installed

Here is my emerge --info :

OvoiDs ~ & emerge --info
Portage 2.2_rc8 (hardened/amd64/multilib, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-hardened-r1 x86_64)
=================================================================
System uname: Linux-2.6.26-hardened-r1-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-56-with-glibc2.2.5
Timestamp of tree: Mon, 01 Sep 2008 12:04:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse -msse2 -mmmx -msse3 -fstack-protector-all -m3dnow -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -msse -msse2 -msse3 -mmmx -fstack-protector-all -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac acl acpi alsa amd64 bash-completion berkdb bzip2 cairo ccache cdr cracklib crypt cups dvd dvdr encore flac gif gnutls gtk hal hardened hvm jpeg justify midi mp3 mplayer multilib nls nptl nptlonly ocaml ogg pam pdf pic png readline sse sse2 ssl svg symlink syslog tcpd tiff urandom vnc vorbis xorg xscreensaver zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x 	ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 	trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

    >>> Messages generated by process 4266 on 2008-09-01 15:02:25 GMT-2 for package$

WARN: setup
PIE hardening not applied, as your compiler doesn't default to PIE

ERROR: compile

ERROR: sys-libs/glibc-2.8_p20080602 failed.
Call stack:
              ebuild.sh, line   49:  Called src_compile
            environment, line 3378:  Called eblit-run 'src_compile'
            environment, line 1095:  Called eblit-glibc-src_compile
      src_compile.eblit, line  173:  Called src_compile
            environment, line 3378:  Called eblit-run 'src_compile'
            environment, line 1095:  Called eblit-glibc-src_compile
src_compile.eblit, line  120:  Called glibc_do_configure 'nptl'
      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
Comment 1 Boursin 2008-09-01 13:48:55 UTC
configure: error: Need linker with .init_array/.fini_array support.
Comment 2 Boursin 2008-09-01 13:51:43 UTC

*** This bug has been marked as a duplicate of bug 137933 ***