simple bug here ... mesa code uses 'dprintf' defines for debugging purposes ... too bad 'dprintf' is a reserved glibc function ... simple fix for me was: sed -i 's:dprintf:__mesa_dprintf:g' $(grep dprintf * -rl) root@G5[ppc64] 0 sgi # make make[1]: Entering directory `/var/tmp/portage/mesa-6.4.2-r1/work/Mesa-6.4.2/src/glu/sgi' powerpc64-unknown-linux-gnu-g++ -c -I../../../include -Iinclude -Iinternals -Ilibnurbs/internals -Ilibnurbs/interface -Ilibnurbs/nurbtess -Wall -O2 -pipe -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DDEFAULT_DRIVER_DIR='"/usr/lib64/xorg/modules/dri"' -DNDEBUG -DLIBRARYBUILD libnurbs/internals/ccw.cc -o libnurbs/internals/ccw.o libnurbs/internals/sorter.h:43: warning: 'class Sorter' has virtual functions but non-virtual destructor libnurbs/internals/flistsorter.h:48: warning: 'class FlistSorter' has virtual functions but non-virtual destructor /usr/include/bits/stdio-ldbl.h:53: error: type of 'dprintf' is unknown /usr/include/bits/stdio-ldbl.h:53: error: invalid type in declaration before ';' token /usr/include/bits/stdio-ldbl.h:53: error: 'int dprintf' redeclared as different kind of symbol /usr/include/stdio.h:394: error: previous declaration of 'int dprintf(int, const char*, ...)' make[1]: *** [libnurbs/internals/ccw.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/mesa-6.4.2-r1/work/Mesa-6.4.2/src/glu/sgi' make: *** [default] Error 2 Portage 2.1_pre5-r4 (default-linux/ppc/2005.1/ppc64/64bit-userland, gcc-4.1.0, glibc-2.4-r0, 2.6.15-gentoo-r1 ppc64) ================================================================= System uname: 2.6.15-gentoo-r1 ppc64 PPC970, altivec supported Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.90.0.3-r5, 2.16.1-r2, 2.16.91.0.6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="ppc64 ~ppc64" AUTOCLEAN="yes" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks noauto noinfo sandbox sfperms splitdebug" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,-z,relro" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages/powerpc64-unknown-linux-gnu" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc64 X a52 aac aalib acl altivec asf audiofile berkdb bitmap-fonts boundschecking bzip2 cairo cddb cdparanoia cdr crypt css curl dri dts dvd dvdr dvdread encode fame ffmpeg flac fontconfig gd gif glitz gpm ibm imagemagick ipv6 jbig jpeg jpeg2k libcaca lzo mad matroska mikmod mjpeg mng modplug multislot musepack ncurses nls nptl nptlonly ogg openal pdf perl php png python quicktime readline rle samba sdl sndfile spell ssl subversion tcltk tcpd tga theora tiff truetype truetype-fonts type1-fonts unicode vcd vidix vorbis xanim xinetd xml xmms xpm xprint xrandr xvid yv12 zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS
Created attachment 81914 [details] A new ebuild with SpanKY sed script.
Fixed, thanks.
Josh, does this need to get fixed upstream as well?
Urgh, I meant to post a patch but didn't get around to it. Thanks for the poke. I'll mark upstream until they confirm the fix.