I'm not sure this is a good report as the sandbox version is masked and gcc-4.2.1 isn't in portage but maybe it will help. The errors when I emerge this are as follows: ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c: In function 'libsb_open': ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: 'true_open_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: (Each undeclared identifier is reported only once ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: for each function it appears in.) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: 'symname_open_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:673: error: 'symver_open_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:675: warning: implicit declaration of function 'true_open_DEFAULT' ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c: In function 'libsb_getcwd': ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:684: error: 'true_getcwd_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:684: error: 'symname_getcwd_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:684: error: 'symver_getcwd_DEFAULT' undeclared (first use in this function) ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:686: warning: implicit declaration of function 'true_getcwd_DEFAULT' ../../sandbox-1.2.20alpha2/libsandbox/wrappers.c:686: warning: return makes pointer from integer without a cast make[2]: *** [libsandbox_la-wrappers.lo] Error 1 I'll attach the complete build log next Reproducible: Always Portage 2.1.3.6 (default-linux/amd64/2007.0, gcc-4.2.1, glibc-2.6.1-r0, 2.6.22-gentoo-r4 x86_64) ================================================================= System uname: 2.6.22-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ Gentoo Base System release 1.12.10 Timestamp of tree: Fri, 24 Aug 2007 07:00:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17.50.0.18 sys-devel/gcc-config: 1.4.0 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe -march=native -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.mirrors.tds.net/gentoo" LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -Wl,-z,now -Wl,--sort-common" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/mnt/windows/pkgdir" PORTAGE_COMPRESS="pbzip2" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/mnt/windows/tmp" PORTDIR="/mnt/windows/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/xeffects /usr/local/portage /usr/portage/local/layman/xeffects" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac acl acpi alsa amd64 amr ao apache2 arts artworkextra audacious audiofile avahi berkdb bidi binary-drivers binfilter bitmap-fonts bittorrent bjam blas boost branding bzip2 ccache cddb cdparanoia cdr cli cracklib crosscompile crypt cups curl dbus directfb divx dri dts dvd dvdr dvdread emul-linux-x86 encode fbcon ffmpeg firefox flac foomaticdb fortran ftp garmin gdbm gif glibc-omitfp gpm gs hal hpn iconv icq icu idn ieee1394 imagemagick imlib int64 isdnlog java jikes jpeg jpeg2k kde kdrive lame lapack lcms libnotify live lm_sensors logrotate lzo mad maildir matroska mbox mdb midi mikmod mime mmx mmxext mng mono motif mp3 mpeg mplayer mpm-worker msn mudflap mysqli nas ncurses network nforce2 nls normalize nptl nptlonly nsplugin nvidia offensive ogg opengl openmp oscar pam pcre pda pdf perl pertty php plotutils png pppd print python qt4 quicktime rar readline realmedia reflection reiserfs rtc samba sdl session smp sndfile snmp sou sound sox speex spell spl sse sse2 sse3 ssl svg swat tcltk tcpd theora threads tidy tiff timidity truetype truetype-fonts type1 type1-fonts unicode usb v4l vcd videos vorbis wifi wma wmf wmp wxwindows x264 xanim xcb xcomposite xine xml xml2 xorg xpm xv xvid xvmc zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv vesa nvidia fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 129075 [details] complete buuld log
Mike, this is a race condition (symbols.h is not finished generated when wrappers.c is compiled). MAKEOPTS=-j1 fixes it this side.
*** Bug 196152 has been marked as a duplicate of this bug. ***
Dunno if I missing something or there is a better way to fix this but, how about to patch makefile.am to include symbols.h as a dependency of wrappers.c? Something like: -------- 8< ------ Index: libsandbox/Makefile.am =================================================================== --- libsandbox/Makefile.am (revision: 357) +++ libsandbox/Makefile.am (working copy) @@ -34,6 +34,8 @@ canonicalize.c libsandbox.c: libsandbox.map symbols.h +# wrappers.c also need of sysmbols.h. see bug #190051 +wrappers.c: symbols.h SYMBOLS_FILE = $(srcdir)/symbols.h.in SYMBOLS_LIST = $(shell $(EGREP) -v '^\#' $(SYMBOLS_FILE)) -------- 8< ------ Seems to fix the problem here.
ive added Jose's fix to the tree