Fivetonsofflax / opentyrian

Automatically exported from code.google.com/p/opentyrian
GNU General Public License v2.0
0 stars 0 forks source link

Build failure in Fedora 13 #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to build hg tip on Fedora 13

What is the expected output? What do you see instead?
I expect it to build. What I see instead is this:
[...]
cc -o opentyrian  obj/animlib.o obj/arg_parse.o obj/backgrnd.o obj/cJSON.o 
obj/config.o obj/destruct.o obj/editship.o obj/episodes.o obj/file.o 
obj/fmopl.o obj/fm_synth.o obj/font.o obj/fonthand.o obj/game_menu.o 
obj/helptext.o obj/joystick.o obj/jukebox.o obj/keyboard.o obj/lds_play.o 
obj/loudness.o obj/lvllib.o obj/lvlmast.o obj/mainint.o obj/menus.o 
obj/mingw_fixes.o obj/mouse.o obj/mtrand.o obj/musmast.o obj/network.o 
obj/nortsong.o obj/nortvars.o obj/opentyr.o obj/palette.o obj/params.o 
obj/pcxload.o obj/pcxmast.o obj/picload.o obj/player.o obj/scroller.o 
obj/setup.o obj/sizebuf.o obj/sndmast.o obj/sprite.o obj/starlib.o 
obj/tyrian2.o obj/varz.o obj/vga256d.o obj/vga_palette.o obj/video.o 
obj/video_scale.o obj/video_scale_hqNx.o obj/xmas.o -lSDL -lpthread -lSDL_net
/usr/bin/ld: obj/fmopl.o: undefined reference to symbol 'sin@@GLIBC_2.0'
/usr/bin/ld: note: 'sin@@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: ld returned 1 exit status
make: *** [opentyrian] Error 1

What version of the product are you using? On what operating system?
hg tip on Fedora 13

Please provide any additional information below.
This happens because libmath isn't included in the linker parameters. See the 
attached diff for a fix.

Original issue reported on code.google.com by a.h.vand...@gmail.com on 17 Jul 2010 at 6:21

Attachments:

GoogleCodeExporter commented 9 years ago
fixed as of rc4bfed720a

Thanks :)

Original comment by mindless...@gmail.com on 17 Jul 2010 at 4:00