Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109036 - emerging of sanbox failed on "undefined reference to `rpl_realloc'"
Summary: emerging of sanbox failed on "undefined reference to `rpl_realloc'"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Sandbox (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Sandbox Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 11:31 UTC by Karel Honzl
Modified: 2005-10-13 07:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
log from emerge sandbox>& log (log,22.37 KB, text/plain)
2005-10-13 03:15 UTC, Karel Honzl
Details
config.log from sandbox-1.1.12-amd64 (config.log - amd64,45.46 KB, text/plain)
2005-10-13 03:16 UTC, Karel Honzl
Details
config.log from sandbox-1.1.12-amd64 (config.log - amd64,45.46 KB, application/octet-stream)
2005-10-13 03:17 UTC, Karel Honzl
Details
config.log from sandbox-1.1.12-x86 (config.log - x86,48.50 KB, text/plain)
2005-10-13 03:21 UTC, Karel Honzl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karel Honzl 2005-10-12 11:31:03 UTC
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
Comment 1 Karel Honzl 2005-10-12 11:31:36 UTC
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"
Comment 2 SpanKY gentoo-dev 2005-10-12 11:47:13 UTC
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
Comment 3 Karel Honzl 2005-10-13 03:15:06 UTC
Created attachment 70541 [details]
log from emerge sandbox>& log
Comment 4 Karel Honzl 2005-10-13 03:16:08 UTC
Created attachment 70542 [details]
config.log from sandbox-1.1.12-amd64
Comment 5 Karel Honzl 2005-10-13 03:17:28 UTC
Created attachment 70543 [details]
config.log from sandbox-1.1.12-amd64
Comment 6 Karel Honzl 2005-10-13 03:21:16 UTC
Created attachment 70544 [details]
config.log from sandbox-1.1.12-x86
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2005-10-13 04:11:40 UTC
Problem is:

-----
configure:21989: checking for GNU libc compatible malloc
configure:22040: result: no
-----

No idea why though
Comment 8 SpanKY gentoo-dev 2005-10-13 05:55:28 UTC
the test there is to see what malloc(0) returns

GNU compatabile malloc returns a pointer while non-GNU compatabile malloc
returns NULL
Comment 9 SpanKY gentoo-dev 2005-10-13 06:23:39 UTC
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
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2005-10-13 06:59:48 UTC
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).
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2005-10-13 07:03:24 UTC
Actually, it should be fixed in portage-2.0.51.22-r3 (current stable).  Update
portage to fix it.