Problema com / usr / bin / ld: main.o: referência indefinida ao símbolo 'exp @@ GLIBC_2.2.5'

3

Durante a instalação do Emerald no ubuntu 13.04 quando eu escrevo "sudo make" eu tenho problema:

libtool: link: gcc -g -O2 -pthread -I/usr/include/libwnck-1.0 -I/usr/include/compiz -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/harfbuzz -I/usr/include/startup-notification-1.0 -o .libs/emerald main.o engine_loader.o  ../libengine/.libs/libemeraldengine.so -lwnck-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 /usr/lib/x86_64-linux-gnu/libfreetype.so -lfontconfig -ldecoration -lXrender -lX11 -lpangocairo-1.0 -lpango-1.0 /usr/lib/x86_64-linux-gnu/libcairo.so -lgobject-2.0 -lglib-2.0 -pthread
/usr/bin/ld: main.o: undefined reference to symbol 'exp@@GLIBC_2.2.5'
/usr/bin/ld: note: 'exp@@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/libm.so.6 so try adding it to the linker command line
/lib/x86_64-linux-gnu/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [emerald] Błąd 1
make[1]: Opuszczenie katalogu '/home/stanek/emerald-0.9.5/src'
make: *** [install-recursive] Błąd 1
    
por stanek 29.04.2013 / 17:35

1 resposta

3

Isso é um pouco complicado, mas funciona:

Edite o arquivo configure.ac encontrado na pasta de origem da esmeralda. Lá, de forma aproximada na linha 55, você encontrará a seguinte linha:

LIBS="$LIBS $EMERALD_LIBS"

Altere para

LIBS="$LIBS $EMERALD_LIBS -lm -ldl"

e refaça as etapas. Vai funcionar.

    
por user202475 14.10.2013 / 02:28