when emerging any package, emerge will download, check the md5 sum, and then terminate with no errors. filer portage # emerge apache Calculating dependencies ...done! >>> emerge (1 of 1) net-www/apache-2.0.49-r3 to / >>> md5 src_uri ;-) httpd-2.0.49.tar.gz >>> md5 src_uri ;-) apache-patches-2.0.49-r3.tar.bz2 filer portage # here are the logs for this instance. 1088463934: Started emerge on: Jun 28, 2004 17:05:34 1088463934: *** emerge apache 1088463934: >>> emerge (1 of 1) net-www/apache-2.0.49-r3 to / 1088463934: === (1 of 1) Cleaning (net-www/apache-2.0.49-r3::/usr/portage/net-www/apache/apache-2.0.49-r3.ebuild) 1088463934: === (1 of 1) Compiling/Merging (net-www/apache-2.0.49-r3::/usr/portage/net-www/apache/apache-2.0.49-r3.ebuild) 1088463935: *** terminating. Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.7-gentoo-r1) filer portage # cat /etc/make.conf # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/make.conf.example for a more detailed example CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" use="cdr mysql apache php dhcp dns samba zlib"
reopen with output of emerge --info please.
filer root # emerge --info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.7-gentoo-r1) ================================================================= System uname: 2.6.7-gentoo-r1 i686 Intel(R) Xeon(TM) CPU 2.66GHz Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" 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="X apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
please attach the output of emerge -d apache also please.
The output looks similar no matter what package I try to emerge. filer root # emerge -d apache Calculating dependencies Parent: None Depstring: net-www/apache Candidates: ['net-www/apache'] ebuild: net-www/apache-2.0.49-r3 binpkg: None \ Parent: ebuild / net-www/apache-2.0.49-r3 merge Depstring: dev-util/yacc dev-lang/perl sys-libs/zlib dev-libs/expat dev-libs/ope nssl >=sys-apps/sed-4 berkdb? ( sys-libs/db ) gdbm? ( sys-libs/gdbm ) !mips? ( l dap? ( =net-nds/openldap-2* ) ) !bootstrap? ( sys-devel/patch ) >=sys-apps/sed-4 sys-devel/gnuconfig dev-util/yacc dev-lang/perl sys-libs/zlib dev-libs/expat de v-libs/openssl >=sys-apps/sed-4 berkdb? ( sys-libs/db ) gdbm? ( sys-libs/gdbm ) !mips? ( ldap? ( =net-nds/openldap-2* ) ) Candidates: [] Exiting... ebuild / net-www/apache-2.0.49-r3 merge Exiting... None ...done! >>> emerge (1 of 1) net-www/apache-2.0.49-r3 to / + /usr/sbin/ebuild.sh clean + dyn_clean + rm -rf /var/tmp/portage/apache-2.0.49-r3/image + rm -rf /var/tmp/portage/apache-2.0.49-r3/build-info + has keeptemp autoaddcvs ccache sandbox + hasq keeptemp autoaddcvs ccache sandbox + local x + local me=keeptemp + shift + '[' autoaddcvs == keeptemp ']' + '[' ccache == keeptemp ']' + '[' sandbox == keeptemp ']' + return 1 + return 1 + rm -rf /var/tmp/portage/apache-2.0.49-r3/temp/eclass-debug.log + has keepwork autoaddcvs ccache sandbox + hasq keepwork autoaddcvs ccache sandbox + local x + local me=keepwork + shift + '[' autoaddcvs == keepwork ']' + '[' ccache == keepwork ']' + '[' sandbox == keepwork ']' + return 1 + return 1 + rm -rf /var/tmp/portage/apache-2.0.49-r3/.compiled + rm -rf /var/tmp/portage/apache-2.0.49-r3/.unpacked + rm -rf /var/tmp/portage/apache-2.0.49-r3/work + '[' -f /var/tmp/portage/apache-2.0.49-r3/.unpacked ']' + true + set +x >>> md5 src_uri ;-) httpd-2.0.49.tar.gz >>> md5 src_uri ;-) apache-patches-2.0.49-r3.tar.bz2 + /usr/sbin/ebuild.sh setup + dyn_setup + '[' GNU == Linux ']' + pkg_setup + return + set +x
Checking for status. I am almost ready to make the four hour drive to go and rebuild this box from scratch. please advise if you have any ideas on how to resolve this issue.
rm -rf /var/tmp/portage/* first. If that's no good, try a portage binary (instructions at /usr/portage/sys-apps/portage/files/README.RESCUE) If neither of those work... From the shell as root, what happens when you execute the following? # APACHE_EBUILD="/usr/portage/net-www/apache/apache-2.0.49-r3.ebuild" # ebuild $(APACHE_EBUILD) unpack # ebuild $(APACHE_EBUILD) compile # ebuild $(APACHE_EBUILD) install # ebuild $(APACHE_EBUILD) merge
Old and the reason was probably a missing sandbox.
i was able to reproduce this ... basically it's either a problem with your bash and/or sandbox ... if something is causing bash+sandbox to segfault, you'll see this odd output ... check dmesg and try running `/usr/lib/portage/bin/sandbox` ... if sandbox exits without starting up a shell, then it's because the combination is segfaulting