1

I'm trying to build GNUjump on Arch Linux (release 1 Oct. 2014), but i'm getting a strange error, and i don't know what to do.

./configure shows me no error. So, i launch make, and this appears:

/usr/bin/ld: SDL_rotozoom.o: undefined reference to symbol 'sincos@@GLIBC_2.1'
/usr/lib/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

The same Makefile, on a Debian-based PC, works. Surely, i'm missing something, but i don't know what.

EerieNight
  • 51
  • 7

1 Answers1

2

You need to include -lm in the compiler/linker command line to link against the standard math library math.h.
See this: Why do you have to link the math library in C?

Community
  • 1
  • 1
edmz
  • 8,220
  • 2
  • 26
  • 45
  • Thanks. But why the same makefile works in a Debian environment? I really can't figure it out. – EerieNight Oct 15 '14 at 16:57
  • 1
    Hard to say, @AlbyV0D. It might depend on lots of things, like default setting, compiler and back-end used, the makefile itself and so on. Have you managed to compile it? – edmz Oct 15 '14 at 18:49
  • I solved using another distro (always Arch-based), and working inside one of the Makefiles. Thanks for your help. – EerieNight Oct 15 '14 at 23:45