[Freeciv-Dev] Re: (PR#2523) Error while compiling
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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()
- [Freeciv-Dev] (PR#2523) Error while compiling, Vasco Alexandre da Silva Costa via RT, 2002/12/10
- Message not available
- [Freeciv-Dev] Re: (PR#2523) Error while compiling, Jason Short via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2523) Error while compiling,
Jason Short via RT <=
- Message not available
- [Freeciv-Dev] (PR#2546) Everything compiles now BUT, Bernd Korz via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2546) Everything compiles now BUT, Rafał Bursig via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2546) Everything compiles now BUT, Bernd Korz via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2546) Everything compiles now BUT, Rafał Bursig via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2546) Everything compiles now BUT, Jason Short via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2546) Everything compiles now BUT, Raimar Falke via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2546) Everything compiles now BUT, Bernd Korz via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2546) Everything compiles now BUT, Rafał Bursig via RT, 2002/12/11
- Message not available
- [Freeciv-Dev] Re: (PR#2546) Everything compiles now BUT, Bernd Korz via RT, 2002/12/11
|
|