When emerging system in a hardened stage1 or 2 using 'emerge system', bash compiles, but dies on install, giving the following error: --- /bin/ >>> /bin/bash >>> /bin/sh -> bash [bash-2.05b-r5] bash: relocation error: [bash-2.05b-r5] bash: undefined symbol: __setostype >>> Regenerating /etc/ld.so.cache... >>> app-shells/bash-2.05b-r5 merged. [bash-2.05b-r5] bash: relocation error: [bash-2.05b-r5] bash: undefined symbol: __setostype Reproducible: Always Steps to Reproduce: 1. Chroot into a hardened stage1 2. bootstrap 3. emerge system Actual Results: the bash installation failed Expected Results: it should've kept emerging system.. Portage 2.0.49-r3 (default-x86-1.4, [unavailable], glibc-2.3.2-r1, sh: relocation error: sh: undefined symbol: __setostype) ================================================================= System uname: sh: relocation error: sh: undefined symbol: __setostype ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" CHOST="i486-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=i686 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk imlib java jpeg kde gnome libg++ libwww mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt quicktime readline sdl slang spell ssl svga tcpd truetype X xml2 xmms xv zlib"
Perhaps we should get -r{6,7} bumped to stable, which do not seem to suffer from this problem. I'd opt for -r7 as its the same as -r6 but with fixed rbash support my -r7 here looks like. /bin/bash: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped
stage1 building of bash is being tested in the next days.
solar said that bash -r7 has gone stable, please test with this one
does this really resolve the bug?
I don't know if it is related but I get the following when I try to emerge bash. /bin/install -c -m 0755 bash /var/tmp/portage/bash-2.05b-r7/image//usr/bin/bash /bin/install: cannot create regular file `/var/tmp/portage/bash-2.05b-r7/image//usr/bin/bash': No such file or directory make: *** [install] Error 1 !!! ERROR: app-shells/bash-2.05b-r7 failed. !!! Function einstall, Line 347, Exitcode 2 !!! einstall failed
Stephen, I dont think the error your getting is related to this closed bug. I have however rebuilt bash -r7 two times here with and without nls in my USE flags and I can not reproduce the error your getting at all. me@here $ emege info Portage 2.0.49-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.21-grsec) ================================================================= System uname: 2.4.21-grsec i686 Intel(R) Pentium(R) 4 CPU 1400MHz distcc 2.5 i686-pc-linux-gnu (protocol 1) (default port 3632) [disabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=i686 -O3 -pipe -fPIC -fstack-protector -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=i686 -O3 -pipe -fPIC -fstack-protector -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache nostrip sfperms -prelink flawfinder sandbox noclean noauto buildpkg usersandbox cvs fakeroot antivirus" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/home/cvsroot/gentoo-x86/" PORTDIR_OVERLAY="/home/solar/cvsd/gentoo/gentoo-x86/" SYNC="rsync://192.168.1.1/gentoo-portage" USE="x86 oss 3dnow apm avi crypt encode foomaticdb jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline tetex aalib bonobo svga guile mysql X sdl gpm tcpd pam libwww ssl perl imlib oggvorbis gnome motif opengl mozilla ldap cdr acpi apic clflush cmov cx8 de dts fpu fxsr gd gnomedb ht linbsd mca mce moznocompose moznoirc moznomail mozxmlterm msr mtrr pae pat pge prelude pse pse36 sep snmp ss sse sse2 tm tsc ungif vme voodoo3 xinerama -cups -gif -java -kde -arts -tcltk -gtk -qt -esd offensive uclibc ospfapi -python"