Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] (PR#2523) Error while compiling
Home

[Freeciv-Dev] (PR#2523) Error while compiling

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: bernd.korz@xxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#2523) Error while compiling
From: "Vasco Alexandre da Silva Costa via RT" <rt@xxxxxxxxxxxxxx>
Date: Tue, 10 Dec 2002 14:54:21 -0800
Reply-to: rt@xxxxxxxxxxxxxx

[vasc@xxxxxxxxxxxxxx - Tue Dec 10 01:03:32 2002]:

> On Mon, 9 Dec 2002, Jason Short via RT wrote:
> 
> > On Mon, 2002-12-09 at 03:07, Bernd Korz via RT wrote:
> > >
> > > depfile='.deps/civserver.Po' tmpdepfile='.deps/civserver.TPo' \
> > > depmode=none /bin/sh ../depcomp \
> > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../common -I./../ai -I../intl
> -
> > > g -O2 -Wall -Wno-multichar -c `test -f 'civserver.c' || echo './
> > > '`civserver.c
> > > gcc  -g -O2 -Wall -Wno-multichar  -x none -o civserver
> civserver.o ../
> > > common/libcivcommon.a ../ai/libcivai.a ./libcivserver.a
> ../common/
> > > libcivcommon.a ../ai/libcivai.a ./libcivserver.a -lsocket  -lz
> > > ./common/libcivcommon.a(netintf.o): In function
> `net_lookup_service':
> > > /boot/home/Entwicklung/Sourcecodes/freeCIV/freeciv/common/
> > > netintf.c:184: undefined reference to `__inet_addr'
> > > /boot/home/Entwicklung/Sourcecodes/freeCIV/freeciv/common/
> > > netintf.c:188: undefined reference to `gethostbyname'
> > > /libcivserver.a(sernet.o): In function `server_accept_connection':
> > >
> /boot/home/Entwicklung/Sourcecodes/freeCIV/freeciv/server/sernet.c:707:
> > > undefined reference to `gethostbyaddr'
> > >
> /boot/home/Entwicklung/Sourcecodes/freeCIV/freeciv/server/sernet.c:736:
> > > undefined reference to `__inet_ntoa'
> > > collect2: ld returned 1 exit status
> > > make[2]: *** [civserver] Error 1
> > > make[2]: Leaving directory
> `/boot/home/Entwicklung/Sourcecodes/freeCIV/
> > > freeciv/server'
> > > make[1]: *** [all-recursive] Error 1
> > > make[1]: Leaving directory
> `/boot/home/Entwicklung/Sourcecodes/freeCIV/
> > > freeciv'
> > > make: *** [all] Error 2
> > > $

Try adding '-lbind' to your $LIBS for gethostbyname and friends.
Please report if that fixes it or not.

-vasc



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