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

[Freeciv-Dev] Re: (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] Re: (PR#2523) Error while compiling
From: "Jason Short via RT" <rt@xxxxxxxxxxxxxx>
Date: Mon, 9 Dec 2002 00:21:14 -0800
Reply-to: rt@xxxxxxxxxxxxxx

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
> $  

He forgot to mention this is while compiling on BeOS.

Evidently some autoconf work is needed, but I'm not sure how to get
around using these functions.

jason




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