Gentoo Archives: gentoo-dev

From: Imran Sher Rafique <imran_lists1@×××××××.org>
To: gentoo-dev@l.g.o, gentoo-user@l.g.o
Subject: [gentoo-dev] glibc/PaX problem in stage1 install
Date: Sat, 21 Feb 2004 13:06:34
Message-Id: 20040221131056.GA23347@ulric.rafique.org
1 (cross-posting this to -dev, as I'm unsure which is the better forum for this)
2
3 While in the process of building a new gentoo system from scratch (ie: from stage1), I am hitting a persistant problem at the bootstrap phase - with a recent 2004.0 stage1 tarball (stage1-x86-20040204.tar.bz2), and then with the most recent 1.4 stage1 tarball (stage1-x86-20030910.tar.bz2).
4
5 In bootstrap, once gcc-3.3.2-r5 is built, then any compiles thereafter fails. For example, after gcc, bootstrap.sh builds glibc-2.3.2-r9, and that fails with the following error:
6
7 /var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/rpcgen: error while loading shared libraries: /lib/libsandbox.so: cannot enable executable stack as shared object requires: Error 14
8 make[2]: *** [/var/tmp/portage/glibc-2.3.2-r9/work/glibc-2.3.2/buildhere/sunrpc/xbootparam_prot.stmp] Error 127
9
10 Making FEATURES="-sandbox" allows the bootstrapping to complete - but this error is not a one-off situation. All compiles are affected, and obviously disabling sandbox permanently is not a desirable solution!
11
12 With the inclusion of the dl_execstack-PaX-support patch in the glibc-2.3.2-9 ebuild, and the closure of the accompanying bug (32960), I suppose the assumption is that the above error should no longer happen?
13
14 So:
15 1) Is the problem due to the fact that bootstrap.sh builds gcc first, and then glibc? There is a mail (sent to -dev & -hardened) from Alexander Gabert on Dec 2, warning that this order needs to be changed.
16
17 2) Could there be anything in my make.conf which is causing the problem? `emerge info` output follows:
18 Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.17-r5)
19 =================================================================
20 System uname: 2.4.17-r5 i686 AMD Athlon(tm) Processor
21 Gentoo Base System version 1.4.3.13
22 Autoconf:
23 Automake:
24 ACCEPT_KEYWORDS="x86"
25 AUTOCLEAN="yes"
26 CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
27 CHOST="i686-pc-linux-gnu"
28 COMPILER="gcc3"
29 CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
30 CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
31 CXXFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer"
32 DISTDIR="/usr/portage/distfiles"
33 FEATURES="autoaddcvs ccache sandbox"
34 GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
35 MAKEOPTS="-j2"
36 PKGDIR="/usr/portage/packages"
37 PORTAGE_TMPDIR="/var/tmp"
38 PORTDIR="/usr/portage"
39 PORTDIR_OVERLAY=""
40 SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
41 USE="3dnow X alsa async avi berkdb cdr chroot crypt cups doc dvd encode evms2 fastcgi gdbm gif gkrellm gpm gtk gtk2 imagemagick imap imlib joystick jpeg kde libwww lufsusermount mbox mozilla moznocompose moznoirc moznomail moznoxft mpeg ncurses nls offensive oggvorbis opengl pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd tiff truetype usb videos vim-with-x wxwindows x86 xmms"
42
43 3) Assuming my make.conf is ok, could someone please point me to a stage1 tarball (or just an amended bootstrap.sh) which will work? Pretty please :)
44
45 Regards,
46 Imran Sher Rafique
47
48
49
50 --
51 gentoo-dev@g.o mailing list