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: Wed, 11 Dec 2002 00:06:54 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Wed, 2002-12-11 at 02:32, Jason Short via RT wrote:
> On Tue, 2002-12-10 at 17:54, Vasco Alexandre da Silva Costa via RT
> wrote:
> 
> > Try adding '-lbind' to your $LIBS for gethostbyname and friends.
> > Please report if that fixes it or not.
> 
> Apparently that fixed it.  Is there an autoconf check for this?

Somehow I suspect this patch will break compilation on other systems. 
But it works for civserver on BeOS.

jason


Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.28
diff -u -r1.28 configure.ac
--- configure.ac        2002/12/09 17:46:47     1.28
+++ configure.ac        2002/12/11 07:47:53
@@ -521,6 +521,9 @@
         AC_CHECK_LIB(socket, connect, SERVER_LIBS="-lsocket $SERVER_LIBS")
     fi
 
+    dnl Some systems (e.g., BeOS) need this lib
+    AC_CHECK_LIB(bind, gethostbyaddr, SERVER_LIBS="-lbind $SERVER_LIBS")
+
     dnl Readline library and header files.
     FC_HAS_READLINE()
 
Index: configure.in
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.in,v
retrieving revision 1.206
diff -u -r1.206 configure.in
--- configure.in        2002/12/09 17:46:48     1.206
+++ configure.in        2002/12/11 07:47:53
@@ -515,6 +515,9 @@
         AC_CHECK_LIB(socket, connect, SERVER_LIBS="-lsocket $SERVER_LIBS")
     fi
 
+    dnl Some systems (e.g., BeOS) need this lib
+    AC_CHECK_LIB(bind, gethostbyaddr, SERVER_LIBS="-lbind $SERVER_LIBS")
+
     dnl Readline library and header files.
     FC_HAS_READLINE()
 

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