media-libs/aalib (and other packages, like sys-libs/gpm) fail to compile with 64-bit kernel and 32-bit userland. That's because linux-headers installs the 64-bit headers, so that glibc can use them. Currently, it looks like the error happens only in /usr/include/linux/spinlock.h, but I'm not sure on this. Commenting out PROFILE_ARCH in make.defaults and remerging linux-headers helps as a temporary fix. emerge --info: Portage 2.0.51.22-r2 (default-linux/ppc/2005.1/ppc64/32bit-userland/970/pmac, gcc-3.4.4, glibc-2.3.5-r0, 2.6.13-rc6-g5-64 ppc64) ================================================================= System uname: 2.6.13-rc6-g5-64 ppc64 PPC970, altivec supported Gentoo Base System version 1.12.0_pre6 distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=powerpc -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -mtune=powerpc -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig confcache cvs distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/" LINGUAS="de" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://taipan.lan/gentoo-portage" USE="ppc X Xaw3d a52 aac aalib alsa altivec apm audiofile berkdb bitmap-fonts bzip2 cdr cjk cpudetection crypt cscope cups curl dba disablexmb dts dv dvd dvdr dvdread encode esd faad fam fame ffmpeg fftw flac freetype gcc64 gd gdbm gif gmp gnutls gphoto2 gtk gtk2 imagemagick imap imlib ipv6 jpeg ldap libwww live lzo mad maildir matroska md5sum motif mozdevelop moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mysql ncurses network nls nntp nptl nptlonly objc ogg oggvorbis opengl pam pdflib perl png python readline real rtc sdl slang softmmu ssl stream svg tcltk tcpd tetex theora tiff transcode truetype truetype-fonts type1-fonts unicode usb utf8 vlm vorbis wxwindows xanim xine xinerama xml2 xmms xv xvid zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Created attachment 66582 [details] Log of media-libs/aalib
Created attachment 66583 [details] Log of media-libs/aalib, second try
I think I've got one possible fix using sys-kernel/linux-headers-2.6.11-r2: Move lines 222-228 to line 44. aalib compiles after that, but I'm not totally sure wether this fixes everything.
... of spinlock.h, that is.
Fixed by Daniel Ostrow on Oct. 28, 2005.