x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o missile missile.o -Wall -march=core2 -O2 -pipe -DDATA=\"/usr/share/games/missile\" -DVERSION=\"1.0.1\" -DUSE_SOUND `sdl-config --cflags` `sdl-config --libs` -lSDL_image -lSDL_mixer /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: missile.o: undefined reference to symbol 'pow@@GLIBC_2.2.5' /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'pow@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line /lib64/libm.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[1]: *** [missile] Error 1 make[1]: Leaving directory `/var/tmp/portage/games-arcade/missile-1.0.1/work/missile-1.0.1' make: *** [all] Error 2 emake failed
Created attachment 366936 [details] build.log
Created attachment 366938 [details] environment
Created attachment 366940 [details] emerge --info
I've rebuilt glibc already, the error in missile is the same.
look at bug #463696 (jack-rack) please: There's a patch what seems to help in this package. May be, we need a similar here! I'm not so deep in programming, to create the patch myself.
This is another one in the underlinking department. LDFLAGS="-lm" emerge missile does work.
Thanks! That works like a charme!
--- missile-1.0.1.ebuild +++ missile-1.0.1.ebuild @@ -24,6 +24,7 @@ -e '/^CC/d' \ -e "s:\$(game_prefix)/\$(game_data):${GAMES_DATADIR}/${PN}:" \ -e "s/-O2/${CFLAGS}/" \ + -e 's/-lSDL_image $(SND_LIBS)/-lSDL_image -lm $(SND_LIBS)/g' \ Makefile \ || die "sed failed" }
That should fix it.
in portage.