[Freeciv-Dev] Re: Can't compile under FreeBSD (PR#255)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Jan Riedinger <jan@xxxxxxxxxxxxxxxxxxx> wrote:
> I'm not able to compile freeciv-cvs-Feb-05 under FreeBSD RELEASE 3.3
> because of problems with the gettext function.
Hmm, ok. See also PR#190 in the bug tracking system, and
probably also PR#247. (And I think also some extra messages
in the list archives for those threads, which were not CC-ed
to the bug tracking system :-(
(That is, see:
http://www.freeciv.org/cgi-bin/bugs?findid=190
http://www.freeciv.org/cgi-bin/bugs?findid=247
and also
http://arch.freeciv.org/freeciv-dev-200001/msg00087.html
)
Workarounds are to use "./configure --disable-nls", or maybe
"./configure --with-included-gettext".
> As attachment you can find the output of gmake and the config.* files.
Thanks for the detailed info.
As in PR#190, I think the problem is that your compile line
should have -lintl, but doesnt:
# gcc -g -O2 -Wall -o civserver autoattack.o barbarian.o cityhand.o \
# citytools.o cityturn.o civserver.o console.o diplhand.o gamehand.o \
# gamelog.o gotohand.o handchat.o mapgen.o maphand.o meta.o plrhand.o \
# ruleset.o sernet.o settlers.o spacerace.o stdinhand.o unitfunc.o \
# unithand.o unittools.o ../common/libcivcommon.a ../ai/libcivai.a \
# ../common/libcivcommon.a ../ai/libcivai.a
But I don't understand why the gettext stuff does not do this
for you. According to config.log, it _does_ actually check for
-lintl, and does find it, but looking at the details of
configure (and AM_GNU_GETTEXT) when it does find it it doesn't
set LIBS to include it there. (And doesn't set it anywhere
useful that I can see, except setting a variable
gt_cv_func_gettext_libintl to "yes".)
Possibly we could check for it ourselves by adding an
explicit AC_CHECK_LIB(intl,main) (as in patch in PR#190),
but that may be bad because elsewhere the gettext stuff
includes lines like:
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
(Ie, for using included gettext??)
Confused,
-- David
|
|