Ebuild fails to compile. Reproducible: Always Steps to Reproduce: 1. emerge stellarium Actual Results: x86_64-pc-linux-gnu-g++ -march=k8 -O2 -pipe -Wall -I/usr/include/SDL -D_REENTRANT -o stellarium main.o stel_sdl.o stel_core.o stel_utility.o stel_object.o stel_atmosphere.o grid.o constellation.o constellation_mgr.o nebula.o nebula_mgr.o planet.o solarsystem.o hip_star.o hip_star_mgr.o navigator.o draw.o s_texture.o s_font.o orbit.o skylight.o skybright.o tone_reproductor.o init_parser.o s_gui.o stel_ui.o stel_ui_conf.o stel_ui_tuiconf.o projector.o observator.o fisheye_projector.o landscape.o s_tui.o meteor.o meteor_mgr.o sky_localizer.o command_interface.o stel_command_interface.o script_mgr.o script.o image_mgr.o image.o audio.o loadingbar.o ../src/glpng/libglpng.a ../src/stellplanet/libstellplanet.a ../src/stellastro/libstellastro.a ../src/iniparser/libiniparser.a -lGLU -lGL -lm -L/usr/lib64 -lSDL -lpthread -lpng -lz audio.o: In function `Audio::play(bool)': audio.cpp:(.text+0x1b): undefined reference to `Mix_PlayMusic' audio.o: In function `Audio::sync()': audio.cpp:(.text+0x71): undefined reference to `Mix_RewindMusic' audio.cpp:(.text+0x81): undefined reference to `Mix_SetMusicPosition' audio.cpp:(.text+0x86): undefined reference to `Mix_ResumeMusic' audio.o: In function `Audio::pause()': audio.cpp:(.text+0x95): undefined reference to `Mix_PauseMusic' audio.o: In function `Audio::resume()': audio.cpp:(.text+0xa5): undefined reference to `Mix_ResumeMusic' audio.o: In function `Audio::stop()': audio.cpp:(.text+0xb5): undefined reference to `Mix_HaltMusic' audio.o: In function `Audio::~Audio()': audio.cpp:(.text+0x1ae): undefined reference to `Mix_HaltMusic' audio.cpp:(.text+0x1b7): undefined reference to `Mix_FreeMusic' audio.cpp:(.text+0x1bc): undefined reference to `Mix_CloseAudio' audio.o: In function `Audio::~Audio()': audio.cpp:(.text+0x27e): undefined reference to `Mix_HaltMusic' audio.cpp:(.text+0x287): undefined reference to `Mix_FreeMusic' audio.cpp:(.text+0x28c): undefined reference to `Mix_CloseAudio' audio.o: In function `Audio::~Audio()': audio.cpp:(.text+0x33e): undefined reference to `Mix_HaltMusic' audio.cpp:(.text+0x347): undefined reference to `Mix_FreeMusic' audio.cpp:(.text+0x34c): undefined reference to `Mix_CloseAudio' audio.o: In function `Audio::Audio(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long)': audio.cpp:(.text+0x42e): undefined reference to `Mix_OpenAudio' audio.cpp:(.text+0x475): undefined reference to `Mix_VolumeMusic' audio.cpp:(.text+0x47e): undefined reference to `Mix_LoadMUS' audio.o: In function `Audio::Audio(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, long)': audio.cpp:(.text+0x56e): undefined reference to `Mix_OpenAudio' audio.cpp:(.text+0x5b5): undefined reference to `Mix_VolumeMusic' audio.cpp:(.text+0x5be): undefined reference to `Mix_LoadMUS' audio.o: In function `Audio::set_volume(float)': audio.cpp:(.text+0xf5): undefined reference to `Mix_VolumeMusic' audio.o: In function `Audio::increment_volume()': audio.cpp:(.text+0x13e): undefined reference to `Mix_VolumeMusic' audio.o: In function `Audio::decrement_volume()': audio.cpp:(.text+0x189): undefined reference to `Mix_VolumeMusic' collect2: ld returned 1 exit status make[3]: *** [stellarium] Error 1 make[3]: Leaving directory `/usr/tmp/portage/stellarium-0.7.1/work/stellarium-0.7.1/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/tmp/portage/stellarium-0.7.1/work/stellarium-0.7.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/tmp/portage/stellarium-0.7.1/work/stellarium-0.7.1' make: *** [all] Error 2 !!! ERROR: sci-astronomy/stellarium-0.7.1 failed. !!! Function src_compile, Line 24, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. It has something to do with linking to SDL so, ls /usr/lib/*SDL* /usr/lib/libSDL-1.2.so.0 /usr/lib/libSDL_image.a /usr/lib/libSDL_net.so /usr/lib/libSDL-1.2.so.0.7.2 /usr/lib/libSDL_image.la /usr/lib/libSDL_sound-1.0.so.1 /usr/lib/libSDL.a /usr/lib/libSDL_image.so /usr/lib/libSDL_sound-1.0.so.1.0.0 /usr/lib/libSDL.la /usr/lib/libSDL_mixer-1.2.so.0 /usr/lib/libSDL_sound.a /usr/lib/libSDL.so /usr/lib/libSDL_mixer-1.2.so.0.2.4 /usr/lib/libSDL_sound.la /usr/lib/libSDL_gfx.a /usr/lib/libSDL_mixer.a /usr/lib/libSDL_sound.so /usr/lib/libSDL_gfx.la /usr/lib/libSDL_mixer.la /usr/lib/libSDL_ttf-2.0.so.0 /usr/lib/libSDL_gfx.so /usr/lib/libSDL_mixer.so /usr/lib/libSDL_ttf-2.0.so.0.6.1 /usr/lib/libSDL_gfx.so.13 /usr/lib/libSDL_net-1.2.so.0 /usr/lib/libSDL_ttf.a /usr/lib/libSDL_gfx.so.13.0.0 /usr/lib/libSDL_net-1.2.so.0.0.5 /usr/lib/libSDL_ttf.la /usr/lib/libSDL_image-1.2.so.0 /usr/lib/libSDL_net.a /usr/lib/libSDL_ttf.so /usr/lib/libSDL_image-1.2.so.0.1.3 /usr/lib/libSDL_net.la /usr/lib/libSDLmain.a Expected Results: Installed and worling application Portage 2.0.52-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r1 x86_64) ================================================================= System uname: 2.6.13-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre8 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.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X accessibility acpi alsa amd64 avi berkdb bindist bitmap-fonts bonobo browserplugin cairo cdparanoia cdr crypt cups curl dbus dga dvd dvdr eds emboss encode esd evo faad fam foomaticdb fortran gb gif gimpprint glitz glx gnome gnutls gpm gstreamer gtk2 gtkhtml guile hal howl imagemagick imap imlib ipv6 java jikes joystick jpeg junit kerberos lzw lzw-tiff mad mikmod mime motif mozilla mp3 mpeg musicbrainz ncurses network nls nomalloccheck nptl nptlonly ogg opengl oss pam pdflib perl pic plotutils png print python quicktime readline samba sasl scanner sdl sox spell ssl svg tag tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales videos vorbis wmf wxwindows xml xml2 xosd xpm xprint xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Could be an amd64 problem. Builds fine for me on x86.
I've got a x86 and it doesn't build for me..
Ok, let's see your config.log
`emerge smpeg sdl-mixer` and the problem should be gone. Let's see whether this fixes the problem for the original bug reporter..
Indeed the suggested "emerge smpeg sdl-mixer" solved the problem for me