#6 Make BUG

2.0
open
nobody
None
2014-08-19
2014-01-20
Henrique Lengler
No

Erro during make command:

/usr/bin/ld: ui_sdlgl/libui_sdlgl.a(ui_sdlgl_3d.o): undefined reference to symbol 'floor@@GLIBC_2.2.5'
/usr/bin/ld: note: 'floor@@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[4]: [dreamchess] Erro 1
make[4]: Saindo do diretório /home/henrique/Downloads/dreamchess-0.2.1-RC1/src' make[3]: ** [all-recursive] Erro 1 make[3]: Saindo do diretório/home/henrique/Downloads/dreamchess-0.2.1-RC1/src'
make[2]:
[all] Erro 2
make[2]: Saindo do diretório /home/henrique/Downloads/dreamchess-0.2.1-RC1/src' make[1]: ** [all-recursive] Erro 1 make[1]: Saindo do diretório/home/henrique/Downloads/dreamchess-0.2.1-RC1'
make: ** [all] Erro 2


I readed in this site https://github.com/hcatlin/sassc/issues/3 and in any other sites that i need to add the -lm to the gcc in the makefile but i dont know how do this! Please help!

Discussion

  • Same issue on Mageia Cauldron, 64 bit.

    Henrique, you can workaround it with (in a clean environment):
    $ LIBS+="-lm" ./configure
    $ make