Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58625 - SDL (?sound?) causing all SDL programs not to be compilable
Summary: SDL (?sound?) causing all SDL programs not to be compilable
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-27 22:34 UTC by Avuton Olrich
Modified: 2004-07-28 15:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Avuton Olrich 2004-07-27 22:34:49 UTC
When trying to compile stella (games-emulation/stella-1.4) the compile fails with:

g++ -o stella Booster.o Cart.o Cart2K.o Cart3F.o Cart4K.o CartAR.o CartDPC.o CartE0.o CartE7.o CartF4.o CartF4SC.o CartF6.o CartF6SC.o CartF8.o CartF8SC.o CartFASC.o CartFE.o CartMC.o CartCV.o CartMB.o CartUA.o Console.o Control.o Driving.o Event.o Joystick.o Keyboard.o M6532.o MD5.o MediaSrc.o Paddles.o Props.o PropsSet.o Random.o Sound.o Switches.o Settings.o TIA.o Serializer.o Deserializer.o TIASound.o EventHandler.o FrameBuffer.o D6502.o Device.o M6502.o M6502Low.o M6502Hi.o NullDev.o System.o mainSDL.o SoundSDL.o FrameBufferSDL.o FrameBufferSoft.o Snapshot.o FrameBufferGL.o SettingsUNIX.o -I/usr/include/SDL -D_REENTRANT -L/usr/X11R6/lib -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lpng -lz -lGL
SoundSDL.o(.text+0xe5): In function `SoundSDL::SoundSDL[not-in-charge](unsigned)':
: undefined reference to `SDL_OpenAudio'
SoundSDL.o(.text+0x171): In function `SoundSDL::SoundSDL[not-in-charge](unsigned)':
: undefined reference to `SDL_CloseAudio'
SoundSDL.o(.text+0x1d2): In function `SoundSDL::SoundSDL[not-in-charge](unsigned)':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x315): In function `SoundSDL::SoundSDL[in-charge](unsigned)':
: undefined reference to `SDL_OpenAudio'
SoundSDL.o(.text+0x3a1): In function `SoundSDL::SoundSDL[in-charge](unsigned)':
: undefined reference to `SDL_CloseAudio'
SoundSDL.o(.text+0x402): In function `SoundSDL::SoundSDL[in-charge](unsigned)':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x4d3): In function `SoundSDL::~SoundSDL [not-in-charge]()':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x4d8): In function `SoundSDL::~SoundSDL [not-in-charge]()':
: undefined reference to `SDL_CloseAudio'
SoundSDL.o(.text+0x553): In function `SoundSDL::~SoundSDL [in-charge]()':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x558): In function `SoundSDL::~SoundSDL [in-charge]()':
: undefined reference to `SDL_CloseAudio'
SoundSDL.o(.text+0x5d3): In function `SoundSDL::~SoundSDL [in-charge deleting]()':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x5d8): In function `SoundSDL::~SoundSDL [in-charge deleting]()':
: undefined reference to `SDL_CloseAudio'
SoundSDL.o(.text+0x668): In function `SoundSDL::mute(bool)':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x6b8): In function `SoundSDL::reset()':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x718): In function `SoundSDL::setVolume(int)':
: undefined reference to `SDL_LockAudio'
SoundSDL.o(.text+0x75a): In function `SoundSDL::set(unsigned short, unsigned char, int)':
: undefined reference to `SDL_LockAudio'
SoundSDL.o(.text+0x7c2): In function `SoundSDL::set(unsigned short, unsigned char, int)':
: undefined reference to `SDL_UnlockAudio'
SoundSDL.o(.text+0xba8): In function `SoundSDL::load(Deserializer&)':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0xbf5): In function `SoundSDL::load(Deserializer&)':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x6e0): In function `SoundSDL::reset()':
: undefined reference to `SDL_PauseAudio'
SoundSDL.o(.text+0x731): In function `SoundSDL::setVolume(int)':
: undefined reference to `SDL_UnlockAudio'
collect2: ld returned 1 exit status
make[1]: *** [stella] Error 1
make[1]: Leaving directory `/var/tmp/portage/stella-1.4/work/stella-1.4/src/build'
make: *** [linux-gl] Error 2

!!! ERROR: games-emulation/stella-1.4 failed.
!!! Function src_compile, Line 27, Exitcode 2
!!! emake failed


So, I try to compile SDL-sound (which I never seemed to need before, but what do I care? and end up getting:

gcc -march=i686 -O3 -pipe -I/usr/include/SDL -D_REENTRANT -D_REENTRANT -o .libs/playsound playsound-playsound.o -Wl,-rpath -Wl,/usr/lib  -pthread ../.libs/libSDL_sound.so -L/usr/lib -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib -L/usr/X11R6/lib /usr/lib/libSDL.so /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so -lgcc_s -lc -lXext -lvga /usr/lib/libaa.so -lslang -lX11 -lpthread /usr/lib/libFLAC.so /usr/lib/libmikmod.so -ldl /usr/lib/libvorbisfile.so /usr/lib/libvorbisenc.so /usr/lib/libvorbis.so /usr/lib/libogg.so /usr/lib/libspeex.so -lm -Wl,--rpath -Wl,/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3
playsound-playsound.o(.text+0x4e0): In function `main':
: undefined reference to `SDL_OpenAudio'
playsound-playsound.o(.text+0x51b): In function `main':
: undefined reference to `SDL_PauseAudio'
playsound-playsound.o(.text+0x537): In function `main':
: undefined reference to `SDL_PauseAudio'
playsound-playsound.o(.text+0x552): In function `main':
: undefined reference to `SDL_CloseAudio'
playsound-playsound.o(.text+0xcef): In function `sigint_catcher':
: undefined reference to `SDL_PauseAudio'
playsound-playsound.o(.text+0xcf4): In function `sigint_catcher':
: undefined reference to `SDL_CloseAudio'
collect2: ld returned 1 exit status
make[2]: *** [playsound] Error 1
make[2]: Leaving directory `/var/tmp/portage/sdl-sound-1.0.1/work/SDL_sound-1.0.1/playsound'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/sdl-sound-1.0.1/work/SDL_sound-1.0.1'
make: *** [all] Error 2

!!! ERROR: media-libs/sdl-sound-1.0.1 failed.
!!! Function src_compile, Line 51, Exitcode 2
!!! emake failed

then I goto find out I can't seem to upgrade any of the following without errors:

[ebuild     U ] games-emulation/stella-1.4 [1.3-r1] 
[ebuild     U ] games-board/gtkatlantic-0.4.1 [0.3.1] 
[ebuild     U ] media-video/mplayer-1.0_pre5-r2 [1.0_pre5] 
[ebuild     U ] games-fps/doomlegacy-1.42 [1.41-r1] 
[ebuild     U ] games-puzzle/neverball-1.3.6 [1.3.1] 


So here's my emerge info:

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-ck5)
=================================================================
System uname: 2.6.7-ck5 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Gentoo Base System version 1.5.1
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb/rules /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi aim alsa apache2 apm arts audiofile avi berkdb bzlib cddb chroot crypt cups dvd emacs emacs-w3 encode esd faac faad flac foomaticdb freetype ftp gcj gd gdbm gif gimp gmp gnome gnutls gpg gpm gtk gtk2 iconv imlib imlib2 java jpeg kde libg++ libwww mad mikmod mono motif mozilla mpeg ncurses net nls noaudio nocd offensive oggvorbis opengl oscar oss pam pcre pdflib perl php png python qt quicktime readline sdl slang speex spell ssl svga szip tcltk tcpd theora tiff transcode truetype type1 unicode usb uudeview video_cards_radeon wmf x86 xine xml2 xmms xv zlib"


Reproducible: Always
Steps to Reproduce:
1. 
2.
3.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-07-28 03:37:01 UTC
Take noaudio out of your USE flags.
Comment 2 Avuton Olrich 2004-07-28 08:47:39 UTC
No bones, removed 'noaudio' (doh!) failed again, so I promptly rebooted to _ensure_ there was no way it was cached somewhere and boom didn't work again.

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.8-rc1-bk6)
=================================================================
System uname: 2.6.8-rc1-bk6 i686 AMD Athlon(tm) XP 2700+
Gentoo Base System version 1.4.16
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.ccccom.com http://gentoo.binarycompass.org http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="aac acl aim alsa apache2 apm async audiofile bzlib caps chroot crypt cups curl emacs emacs-w3 faad flac flood freetds ftp gd gdbm gmp gnutls iconv imagemagick ipv6 joystick libwww mad maildir mikmod mmap mmx mysql ncurses net nls offensive oggvorbis openssh pam pcre perl php python readline slang speex spell src sse ssl szip unicode usb uudeview x86 zlib"


and the errors are exactly the same
Comment 3 Avuton Olrich 2004-07-28 08:49:48 UTC
aggh! Sorry emerge info from wrong box, here it is again:

Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-ck5)
=================================================================
System uname: 2.6.7-ck5 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
Gentoo Base System version 1.5.1
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb/rules /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi aim alsa apache2 apm arts audiofile avi berkdb bzlib cddb chroot crypt cups dvd emacs emacs-w3 encode esd faac faad flac foomaticdb freetype ftp gcj gd gdbm gif gimp gmp gnome gnutls gpg gpm gtk gtk2 iconv imlib imlib2 java jpeg kde libg++ libwww mad mikmod mono motif mozilla mpeg ncurses net nls nocd offensive oggvorbis opengl oscar oss pam pcre pdflib perl php png python qt quicktime readline sdl slang speex spell ssl svga szip tcltk tcpd theora tiff transcode truetype type1 unicode usb uudeview video_cards_radeon wmf x86 xine xml2 xmms xv zlib"
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-07-28 15:05:05 UTC
it's NOT a blocker, because it doesn't prevent your gentoo system from being installed.
Comment 5 SpanKY gentoo-dev 2004-07-28 15:07:20 UTC
like mr bones said, take noaudio out of your USE

what he missed was that you'll also have to recompile libsdl