Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496950 - =games-arcade/missile-1.0.1 - ld: missile.o: undefined reference to symbol 'pow@@GLIBC_2.2.5'
Summary: =games-arcade/missile-1.0.1 - ld: missile.o: undefined reference to symbol 'p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-01-04 08:24 UTC by Berthold Humkamp
Modified: 2014-04-03 05:06 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,4.04 KB, text/plain)
2014-01-04 08:25 UTC, Berthold Humkamp
Details
environment (environment,90.71 KB, text/plain)
2014-01-04 08:26 UTC, Berthold Humkamp
Details
emerge --info (emerge--info.txt,7.82 KB, text/plain)
2014-01-04 08:26 UTC, Berthold Humkamp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Berthold Humkamp 2014-01-04 08:24:20 UTC
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
Comment 1 Berthold Humkamp 2014-01-04 08:25:06 UTC
Created attachment 366936 [details]
build.log
Comment 2 Berthold Humkamp 2014-01-04 08:26:06 UTC
Created attachment 366938 [details]
environment
Comment 3 Berthold Humkamp 2014-01-04 08:26:26 UTC
Created attachment 366940 [details]
emerge --info
Comment 4 Berthold Humkamp 2014-01-04 08:54:14 UTC
I've rebuilt glibc already, the error in missile is the same.
Comment 5 Berthold Humkamp 2014-01-04 09:02:25 UTC
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.
Comment 6 Nico Baggus 2014-01-06 00:40:48 UTC
This is another one in the underlinking department.
LDFLAGS="-lm" emerge missile does work.
Comment 7 Berthold Humkamp 2014-01-06 08:37:29 UTC
Thanks! That works like a charme!
Comment 8 Ted Tanberry 2014-01-29 10:59:20 UTC
--- 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"
 }
Comment 9 Ted Tanberry 2014-01-29 10:59:29 UTC
That should fix it.
Comment 10 Mr. Bones. (RETIRED) gentoo-dev 2014-04-03 05:06:07 UTC
in portage.
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2014-04-03 05:06:15 UTC
in portage.