Summary: | games-arcade/vor-0.5.5 - ld: rocks.o: undefined reference to symbol 'sqrtf@@GLIBC_2.0' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | c.cboldt |
Component: | [OLD] Games | Assignee: | Gentoo Games <games> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 372079 | ||
Attachments: | Patch Makefile.in, adding "-lm" to $ldflags |
Didn't mention, oops, that the vor-0.5.5.ebuild needs to be adjusted as well, to account for the patchfile. *** This bug has been marked as a duplicate of bug 505794 *** (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! |
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 ---