<URL: http://bugs.freeciv.org/Ticket/Display.html?id=6835 >
> [bretta - Di 11. Nov 2003, 21:37:31]: > > I get the following compilation error when I try to make the SDL client > on Solaris 9: > > make[3]: Entering directory `/var/tmp/freeciv/client' > gcc -O3 -fomit-frame-pointer -Wall -Wpointer-arith -Wcast-align > -Wmissing-prototypes -Wmissing-declarations -I/usr/local/include/SDL > -D_REENTRANT -o civclient attribute.o citydlg_common.o > cityrepdata.o civclient.o chatline_common.o climisc.o climap.o clinet.o > control.o goto.o helpdata.o mapctrl_common.o mapview_common.o > messagewin_common.o packhand.o plrdlg_common.o options.o > repodlgs_common.o tilespec.o audio.o audio_none.o gui-sdl/libguiclient.a > ../common/aicore/libaicore.a ../common/libcivcommon.a agents/libagents.a > -lsocket -L/usr/local/lib -R/usr/local/lib -lSDL -lpthread -lposix4 -lX > -lSDL_image -L/usr/sfw/lib -lfreetype -lz -lnls -L/usr/local/lib > -R/usr/local/lib -lSDL -lpthread -lposix4 -lX > Undefined first referenced > symbol in file > cos gui-sdl/libguiclient.a(plrdlg.o) > (symbol belongs to implicit dependency /usr/lib/libm.so.1) > ceil gui-sdl/libguiclient.a(SDL_ttf.o) > (symbol belongs to implicit dependency /usr/lib/libm.so.1) > pow ../common/libcivcommon.a(combat.o) > (symbol belongs to implicit dependency /usr/lib/libm.so.1) > inet_addr ../common/libcivcommon.a(netintf.o) > (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) > sin gui-sdl/libguiclient.a(plrdlg.o) > (symbol belongs to implicit dependency /usr/lib/libm.so.1) > gethostbyname ../common/libcivcommon.a(netintf.o) > (symbol belongs to implicit dependency /usr/lib/libnsl.so.1) > ld: fatal: Symbol referencing errors. No output written to civclient > collect2: ld returned 1 exit status > make[3]: *** [civclient] Error 1 > > If I add "-lm -lnsl" to the CLIENT_LIBS or LIBS in the Makefile, it will > successfully compile. > > Does this still happen with a current version? _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev