when I try to emerge sandbox I get: x86_64-pc-linux-gnu-gcc -O2 -mtune=k8 -DSB_HAVE_64BIT_ARCH -o sandbox sandbox-sandbox.o sandbox-sandbox_futils.o sandbox-getcwd.o sandbox-sandbox.o(.text+0x2bf): In function `print_sandbox_log': : undefined reference to `rpl_malloc' sandbox-sandbox.o(.text+0xcb2): In function `main': : undefined reference to `rpl_malloc' sandbox-sandbox.o(.text+0xcc1): In function `main': : undefined reference to `rpl_malloc' sandbox-sandbox.o(.text+0xced): In function `main': : undefined reference to `rpl_malloc' sandbox-sandbox.o(.text+0xd94): In function `main': : undefined reference to `rpl_realloc' sandbox-getcwd.o(.text+0x459): In function `__egetcwd': : undefined reference to `rpl_realloc' sandbox-getcwd.o(.text+0x478): In function `__egetcwd': : undefined reference to `rpl_malloc' collect2: ld returned 1 exit status make[1]: *** [sandbox] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/sandbox-1.2.12/work/sandbox-1.2.12-amd64' make: *** [all] Error 2 I tryed to upgrade gcc, glibc, emu-linux-x86-glibc, but still fails Reproducible: Always Steps to Reproduce: 1. emerge sandbox
Portage 2.0.51-r3 (default-linux/amd64/2004.3, gcc-3.4.4, glibc-2.3.5-r1, 2.6.9-gentoo-r14 x86_64) ================================================================= System uname: 2.6.9-gentoo-r14 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13 Automake: sys-devel/automake-1.4_p6,sys-devel/automake-1.9.4 Binutils: sys-devel/binutils-2.15.92.0.2-r10 Headers: sys-kernel/linux-headers-2.6.11-r2 Libtools: sys-devel/libtool-1.5.10-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-O2 -mtune=k8" CHOST="x86_64-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=k8" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 acl alsa apache2 avi berkdb bitmap-fonts cdr crypt cups curl dba djbfft dvd eds emboss encode flac foomaticdb fortran gd gdbm gif gpm gstreamer gtk2 imagemagick imlib ipv6 java jikes jpeg junit ldap libwww lzw lzw-tiff mad mp3 mpeg mysql ncurses nls ogg oggvorbis opengl pam pdflib perl php png postgres python quicktime readline samba sdl slang spell spl ssl tcpd tetex tiff truetype-fonts type1-fonts unicode usb userlocales vorbis xml xml2 xpm xv zlib userland_GNU kernel_linux elibc_glibc"
that should only happen when your system is screwed up run `emerge sandbox >& log` and post the log file as an attachment also post the config.log files from the build dir as attachments
Created attachment 70541 [details] log from emerge sandbox>& log
Created attachment 70542 [details] config.log from sandbox-1.1.12-amd64
Created attachment 70543 [details] config.log from sandbox-1.1.12-amd64
Created attachment 70544 [details] config.log from sandbox-1.1.12-x86
Problem is: ----- configure:21989: checking for GNU libc compatible malloc configure:22040: result: no ----- No idea why though
the test there is to see what malloc(0) returns GNU compatabile malloc returns a pointer while non-GNU compatabile malloc returns NULL
try emerging glibc-2.3.5-r2 from portage if it still fails, run this test program: echo 'int main() {return (malloc(0) ? 0 : 1);}' > test.c gcc test.c -o a.out ./a.out echo $? also, make sure you arent using any modifications to glibc ... just the ebuild that is in portage and nothing else
Please update to portage-2.0.53_rc5 (emerge --nodeps portage) and try again. Thanks Mike for figuring it out (older portage passed --build twice the second go).
Actually, it should be fixed in portage-2.0.51.22-r3 (current stable). Update portage to fix it.