Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 199292

Summary: games-emulation/snes9x-1.43-r2 compile fails with undefined references with opengl USE flag
Product: Gentoo Linux Reporter: Jeff Mitchell <jeffrey.mitchell>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jeff Mitchell 2007-11-15 19:58:32 UTC
Trying to emerge snes9x 1.4.3-r1 or -r2 both fail with several undefined references in /usr/lib32/libGLU.so.  I've tried 7.0-r8, 10.0, and 10.1 of the providing package (emul-linux-x86-xlibs) with no luck.  Using normal, stable gcc.  At some point in the past it worked, because 1.4.3-r1 is currently installed on my system (but cannot be re-emerged).

Reproducible: Always

Steps to Reproduce:
1.Attempt to emerge snes9x, any current version in Portage.
2.
3.

Actual Results:  
The following errors:

x86_64-pc-linux-gnu-g++  -fno-rtti -INONE -I/var/tmp/portage/games-emulation/snes9x-1.43-r2/work/snes9x-1.43-src/snes9x -I/var/tmp/portage/games-emulation/snes9x-1.43-r2/work/snes9x-1.43-src/snes9x/unzip  -o osnes9x cpuops.o cpuexec.o sa1cpu.o spc700.o soundux.o apu.o  apudebug.o fxinst.o fxemu.o fxdbg.o c4.o c4emu.o cpu.o sa1.o debug.o sdd1.o tile.o srtc.o gfx.o memmap.o clip.o dsp1.o ppu.o dma.o snes9x.o data.o globals.o spc7110.o obc1.o seta.o seta010.o seta011.o seta018.o 2xsai.o sdd1emu.o cheats.o cheats2.o unix/unix.o unix/config.o snaporig.o snapshot.o screenshot.o movie.o netplay.o server.o loadzip.o unzip/unzip.o unzip/explode.o unzip/unreduce.o unzip/unshrink.o unix/x11.o unix/opengl.o  -lGL -lGLU -ldl  -lz -lpng -lXxf86dga -lXxf86vm -lnsl   -Wl,-z,noexecstack   -lpthread -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `operator new[](unsigned int)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info@CXXABI_1.3'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../lib32/libGLU.so: undefined reference to `operator new(unsigned int)@GLIBCXX_3.4'
collect2: ld returned 1 exit status
make: *** [osnes9x] Error 1

Expected Results:  
Compiles correctly.

emerge --info details:

Portage 2.1.3.19 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.6.1-r0, 2.6.22-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r9 x86_64 Intel(R) Pentium(R) D CPU 3.00GHz
Timestamp of tree: Thu, 15 Nov 2007 11:57:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
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.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
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/fonts/fonts.conf /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 /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X X509 a52 aac aalib acpi aiglx aim alisp alsa amarok amd64 ao apache2 arts asf async audiofile authfile authlib automount avalon bash-completion bcmath bdf berkdb bidi bitmap-fonts bittorrent bonobo branding bzip2 cairo calendar cddb cdparanoia cgi chroot cjk clamav clamd cli commercial contentcache cracklib crypt css ctype cups curl curlwrappers d daap dbus dcc dcraw dga dio directfb disassembler dovecot-sasl dri dts dvd dvdr dvdread ecc eds emacs emboss encode esd ethereal exif expat extraengine extrafilters fam fame fastcgi fat ffmpeg fftw firefox flac fltk font-server fontconfig foomaticdb force-cgi-redirect fortran fpx ftp fuse gd gdbm gif glut gmp gnome gpgme gpm graphviz gs gstreamer gtk gtk2 gtkhtml hal hash hdri howl howl-compat hpn iconv icq id3 idea idn ifsession imagemagick imap imlib innodb inode iproute2 ipv6 irc isdnlog jabber java javamail javascript jbig jce jikes jms jmx joystick jpeg jpeg2k json jython kde kdeenablefinal lame largeterminal latex lcms ldap libcaca libedit libg++ libvisual libwww lm_sensors logitech-mouse logrotate lzo lzw lzw-tiff mad mailbox maildir math mbox mcal mdnsresponder-compat memlimit mhash midi mikmod mime mjpeg mmap mng modplug mono motif mouse mozilla mozsvg mp3 mp4live mpeg mpeg2 mplayer msn mule multiuser musepack musicbrainz mysql mysqli ncurses nethack netpbm network new-login nfs nis nls nocardbus nptl nptlonly nsplugin ntfs nvidia nxclient offensive ogg oggvorbis on-the-fly-crypt openexr opengl openmp openntpd openssh oss pam pango passwordsave paste64 pcntl pcre pear pear-db perl php plotutils pmu png pop3d posix postfix ppds pppd pulseaudio python qt3 qt3support qt4 quicktime rdesktop readline reflection reiserfs restrict rewrite rhino rt2500pci ruby samba sasl script sdl sensord session shaper sharedext sharedmem shorten sieve simplexml sitemisc slang slp smime sndfile soap sockets socks5 softquota spamassassin speex spell spl sql sqlite sqlite3 ssl streamzap svg svgz sysfs syslog sysvipc tcl tcltk tcpd theora threads tiff tk tokenizer tools transcode truetype truetype-fonts type1 type1-fonts ucs2 unicode unzip usb utempter utf8 utils v4l v4l2 vcd vda vfat vhosts vim-syntax visualization vorbis vroot webdav wma wmf wordperfect wv wxwindows xcb xemacs xface xforms xfs xinerama xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xscreensaver xsl xslt xv xvid xvmc yahoo zeroconf zip zlib" ALSA_CARDS="usb-audio" 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" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv fbdev nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeff Mitchell 2007-11-15 20:04:17 UTC
Doh, I noticed after putting in emerge --info that I was still on 2006.0 profile.  Changing to 2007.0 fixed things.
Comment 2 Jeff Mitchell 2007-11-16 03:26:18 UTC
The reason it worked when the profile changed is that the new profile reset the opengl USE flag.  Once I realized this, I enabled the opengl USE flag again and attempted a re-emerge, with the same results as first reported in this bug.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2008-02-09 06:23:53 UTC
use 1.51