[Freeciv-Dev] (PR#6835) SDL compile problem on Solaris
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: |
undisclosed-recipients: ; |
Subject: |
[Freeciv-Dev] (PR#6835) SDL compile problem on Solaris |
From: |
"Brett Albertson" <brett.albertson@xxxxxxxxxxxx> |
Date: |
Tue, 11 Nov 2003 13:37:32 -0800 |
Reply-to: |
rt@xxxxxxxxxxx |
<URL: http://rt.freeciv.org/Ticket/Display.html?id=6835 >
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.
--
Brett Albertson
brett.albertson@xxxxxxxxxxxx
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#6835) SDL compile problem on Solaris,
Brett Albertson <=
|
|