Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2003:
[Freeciv-Dev] Re: 1.14.0 client errors on Solaris
Home

[Freeciv-Dev] Re: 1.14.0 client errors on Solaris

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Meegwun South <meeg@xxxxxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: 1.14.0 client errors on Solaris
From: Paul Zastoupil <paul@xxxxxxxxxxxxx>
Date: Thu, 22 May 2003 09:38:29 -0700

Its not detecting correctly which libararies to link at link time.
It should have -lsocket -lnsl there.

I don't know why... I never tried 1.14.0 on solaris, but I do know that
current cvs works.

On Thu, May 22, 2003 at 10:04:55AM -0400, Meegwun South wrote:
> I get some errors on freeciv client 1.14.0 when I try to install on Sun 
> Solaris.
> ./configure with --disable-nls runs fine, but make gets the error(s): 
> 
> make[3]: Entering directory `/var1/home/meeg/freeciv-1.14.0/client'
> gcc  -g -O2 -Wall   -o civclient  audio_sdl.o attribute.o citydlg_common.o 
> cityrepdata.o civclient.o chatline_common.o climisc.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-gtk-2.0/libguiclient.a ../common/libcivcommon.a  
> gui-gtk-2.0/libguiclient.a ../common/libcivcommon.a -L/usr/local/lib 
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0 
> -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   agents/libagents.a 
> -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm 
> -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    
> -L/usr/local/lib -R/usr/local/lib -lSDL -lpthread -lposix4 -lSDL_mixer -lz 
> -lnls 
> Undefined                       first referenced
>  symbol                             in file
> socket                              clinet.o  (symbol belongs to implicit 
> dependency /lib/libsocket.so.1)
> gethostbyname                       ../common/libcivcommon.a(netintf.o)  
> (symbol belongs to implicit dependency /lib/libnsl.so.1)
> inet_addr                           ../common/libcivcommon.a(netintf.o)  
> (symbol belongs to implicit dependency /lib/libnsl.so.1)
> connect                             clinet.o  (symbol belongs to implicit 
> dependency /lib/libsocket.so.1)
> ld: fatal: Symbol referencing errors. No output written to civclient
> collect2: ld returned 1 exit status
> make[3]: *** [civclient] Error 1
> make[3]: Leaving directory `/var1/home/meeg/freeciv-1.14.0/client'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/var1/home/meeg/freeciv-1.14.0/client'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/var1/home/meeg/freeciv-1.14.0'
> make: *** [all] Error 2
> 
> make install has a similar error:
> 
> make[2]: Entering directory `/var1/home/meeg/freeciv-1.14.0/client'
> gcc  -g -O2 -Wall   -o civclient  audio_sdl.o attribute.o citydlg_common.o 
> cityrepdata.o civclient.o chatline_common.o climisc.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-gtk-2.0/libguiclient.a ../common/libcivcommon.a  
> gui-gtk-2.0/libguiclient.a ../common/libcivcommon.a -L/usr/local/lib 
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0 
> -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0   agents/libagents.a 
> -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm 
> -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    
> -L/usr/local/lib -R/usr/local/lib -lSDL -lpthread -lposix4 -lSDL_mixer -lz 
> -lnls 
> Undefined                       first referenced
>  symbol                             in file
> socket                              clinet.o  (symbol belongs to implicit 
> dependency /lib/libsocket.so.1)
> gethostbyname                       ../common/libcivcommon.a(netintf.o)  
> (symbol belongs to implicit dependency /lib/libnsl.so.1)
> inet_addr                           ../common/libcivcommon.a(netintf.o)  
> (symbol belongs to implicit dependency /lib/libnsl.so.1)
> connect                             clinet.o  (symbol belongs to implicit 
> dependency /lib/libsocket.so.1)
> ld: fatal: Symbol referencing errors. No output written to civclient
> collect2: ld returned 1 exit status
> make[2]: *** [civclient] Error 1
> make[2]: Leaving directory `/var1/home/meeg/freeciv-1.14.0/client'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/var1/home/meeg/freeciv-1.14.0/client'
> make: *** [install-recursive] Error 1
> 
> Maybe I should try Xaw? or is something else up? 

-- 
Paul Zastoupil


[Prev in Thread] Current Thread [Next in Thread]