Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506254 - games-arcade/vor-0.5.5 - ld: rocks.o: undefined reference to symbol 'sqrtf@@GLIBC_2.0'
Summary: games-arcade/vor-0.5.5 - ld: rocks.o: undefined reference to symbol 'sqrtf@@G...
Status: RESOLVED DUPLICATE of bug 505794
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: PATCH
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-03-30 15:56 UTC by c.cboldt
Modified: 2014-03-31 12:01 UTC (History)
0 users

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


Attachments
Patch Makefile.in, adding "-lm" to $ldflags (vor-0.5.5-underlink.patch,501 bytes, patch)
2014-03-30 15:56 UTC, c.cboldt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description c.cboldt 2014-03-30 15:56:57 UTC
Created attachment 373900 [details, diff]
Patch Makefile.in, adding "-lm" to $ldflags

Somewhat a carryover from the underlinking in vor-0.5.4, attached patch works, but is not necessarily the best way to construct the resulting Makefile.

---

i686-pc-linux-gnu-gcc font.o args.o dust.o file.o mt.o rocks.o score.o sprite.o sound.o autopilot.o main.o -lSDL -lpthread -lSDL_image -lSDL_mixer -Wl,-O1 -Wl, --as-needed -o vor
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: rocks.o: undefined reference to symbol 'sqrtf@@GLIBC_2.0'
/usr/lib/gcc/i686-pc-linux-gnu/4.7.3/../../../../i686-pc-linux-gnu/bin/ld: note: 'sqrtf@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
/lib/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [vor] Error 1

---
Comment 1 c.cboldt 2014-03-30 16:00:46 UTC
Didn't mention, oops, that the vor-0.5.5.ebuild needs to be adjusted as well, to account for the patchfile.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2014-03-30 22:31:35 UTC

*** This bug has been marked as a duplicate of bug 505794 ***
Comment 3 c.cboldt 2014-03-31 12:01:27 UTC
(In reply to Mr. Bones. from comment #2)
> 
> *** This bug has been marked as a duplicate of bug 505794 ***

Sorry about the duplicate.  I hit the "bugs" link on the ebuild field, and the page said Zarro Bugs found.  I'll search further next time!