Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 481444 - games-fps/tremulous-1.1.0-r4 fails to build, underlinking wrt. libm
Summary: games-fps/tremulous-1.1.0-r4 fails to build, underlinking wrt. libm
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:
 
Reported: 2013-08-17 10:32 UTC by Torsten Kaiser
Modified: 2013-08-19 18:05 UTC (History)
0 users

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


Attachments
failed build.log (build.log,24.96 KB, text/plain)
2013-08-17 10:32 UTC, Torsten Kaiser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kaiser 2013-08-17 10:32:53 UTC
Created attachment 356274 [details]
failed build.log

Looks like bug #397923 now also affects USE=-dedicated.

The build fails for me with:

LD build/release-linux-x86_64/tremulous.x86_64
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: build/release-linux-x86_64/client/snd_mix.o: undefined reference to symbol 'sin@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'sin@@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[2]: *** [build/release-linux-x86_64/tremulous.x86_64] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-fps/tremulous-1.1.0-r4/work/tremulous/tremulous-1.1.0-src'
make[1]: *** [targets] Error 2

Adding -lm via commandline (as suggested in comment 3 from bug #397923) gets the game to succesfully build:

thoregon portage # LDFLAGS="$LDFLAGS -lm" emerge -a1v tremulous

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] games-fps/tremulous-1.1.0-r4  USE="opengl vorbis -dedicated -openal" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) games-fps/tremulous-1.1.0-r4
>>> Installing (1 of 1) games-fps/tremulous-1.1.0-r4
>>> Jobs: 1 of 1 complete                           Load avg: 1.18, 0.67, 0.57

Full build.log attached...
Comment 1 Tupone Alfredo gentoo-dev 2013-08-18 12:26:23 UTC
Should be fixed now. Report if not
Comment 2 Torsten Kaiser 2013-08-19 18:05:13 UTC
Tried rebuilding it again today: Works now without any work-arounds.

Thanks for the fix!