gcc cannot link with libopenal. I noticed this when building fakenes, which gives me the following errors. Here's what I see if I try to build a dummy source file: gcc foo.c -lopenal /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../libopenal.so: undefined reference to `_alMMXmemcpy' /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../libopenal.so: undefined reference to `_alDetectx86CPUCaps' /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../libopenal.so: undefined reference to `__alDetectx86CPUCaps' /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/../../../libopenal.so: undefined reference to `__alMMXmemcpy' collect2: ld returned 1 exit status Reproducible: Always Steps to Reproduce: Portage 2.2_rc12 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.7-r2, 2.6.26-tuxonice i686) ================================================================= System uname: Linux-2.6.26-tuxonice-i686-Intel-R-_Pentium-R-_M_processor_1.73GHz-with-gentoo-2.0.0 Timestamp of tree: Sat, 25 Oct 2008 20:45:02 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.6-r3 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 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.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS=" ftp://lug.mtu.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ " LANG="en_US" LC_ALL="en_US" LDFLAGS="-Wl,-O1" LINGUAS="en en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/perl-experimental /usr/local/portage" SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi aim alsa apache2 apm audiofile bash-completion berkdb blas branding bzip2 cairo cdparanoia cdr cli cracklib crypt cscope css cups dbus dhcp directfb divx4linux doc dri dts dv dvd dvdr dvdread eds emboss encode esd evo fam fame fbcon ffmpeg fftw flac font-server fortran ftp gcj geoip gif ginac glut gmp gnutls gpm gs gstreamer gtk gtk2 hal howl iconv icq ieee1394 imap imlib ipod ipv6 isdnlog java java6 javascript jce joystick jpeg jpeg2k kerberos lame lapack latex libcaca libedit libnotify lzo mad maildir midi mikmod mime mmx mmx2 mng mp3 mpeg mplayer msn mudflap musepack ncurses network nfs nls nntp nptl nptlonly nsplugin ogg oggvorbis openal opengl openmp pam pcmcia pcre pdf perl png posix ppds pppd prelude python qt3 qt3support qt4 quicktime rar readline real reflection rtc ruby samba sasl sdl seamonkey session slang sockets socks5 sox speex spell spl sse sse2 ssl startup-notification subtitles svg sysfs sysvinc tcpd tetex tga theora threads tiff truetype udev unicode usb v41 vcd vim-syntax vim-with-x vorbis wavpack wifi win32codecs wxwindows x264 x86 xcomposite xine xinerama xinetd xml xorg xpm xprint xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES=" actionsshared aliasshared asisdisabled auth_basicshared auth_digestshared authn_aliasdisabled authn_anonshared authn_dbdshared authn_dbmshared authn_defaultshared authn_fileshared authz_dbmshared authz_defaultshared authz_groupfileshared authz_host authz_hostshared authz_ownershared authz_usershared autoindexshared cacheshared cern_metadisabled charset_litedisabled davshared dav_fsshared dav_lockshared dbdshared deflateshared dir dirshared disk_cacheshared dumpiodisabled echodisabled envshared exampledisabled expiresshared ext_filtershared file_cacheshared filtershared headersshared identshared imagemapshared includeshared infoshared log_configshared log_forensicdisabled logioshared mem_cacheshared mime mimeshared mime_magicshared negotiationshared proxyshared proxy_ajpshared proxy_balancershared proxy_connectshared proxy_ftpdisabled proxy_httpshared rewriteshared setenvifshared sostatic spelingshared statusshared unique_idshared userdirshared usertrackshared versiondisabled vhost_aliasshared " ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
same problem!! Portage 2.1.4.5 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r1 i686) ================================================================= System uname: 2.6.27-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Timestamp of tree: Wed, 05 Nov 2008 09:30:01 +0000 distcc 3.0 i686-pc-linux-gnu [disabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r8 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.3.0-r1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /lib/modules" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="" LC_ALL="es_ES.utf8" LDFLAGS="-Wl,-O1" LINGUAS="es_ES es" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amr apache2 asf avahi beagle bluetooth branding browserplugin bzip2 bzuo2 cairo cdr cgi cli cracklib cups curl custom-cflags dbus dlloader dts dvb dvd dvdr dvdread dvi eds emboss encode ethereal evo exif faad fam fame ffmpeg firefox flac fuse gif gimp glitz gnome gnome-keyring gnome-print gpm gstreamer gtk hal iconv isdnlog ithreads java5 javascript joystick jpeg lame lcms libnotify libsamplerate libvisual live lzo lzw-tiff mad maildir matroska midi mikmod minimal mjpeg mmap mmx mono mp3 mpeg mpeg2 mplayer mudflap nautilus ncurses net nfs nls nopie nossp nptl nptlonly nsplugin ogg oggvorbis openal opengl openmp pam pcre pdf png ppds pppd print qt3support quicktime raw readline reflection samba scanner session smp sndfile snmp spell spl sse sse2 ssl svg theora threads tiff timidity truetype unicode usb v4l v4l2 vcd vhosts vidix vorbis win32codecs win32codes wma123 wxwindows x264 x86 xine xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ens1370 bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es_ES es" LIRC_DEVICES="serial sir" USERLAND="GNU" VIDEO_CARDS="nvidia v4l" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Please try with the new ~x86 keyworded version: 1.5.304
media-libs/freealut-1.1.0 and fakenes-0.5.8 built successfully with new openal. Thanks, Ben.