Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2006:
[Freeciv-Dev] Re: Windows GTK client compile success! (wiki updated)
Home

[Freeciv-Dev] Re: Windows GTK client compile success! (wiki updated)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jason Dorje Short <jdorje@xxxxxxxxxxxx>
Cc: John Keller <list@xxxxxxxxxxxxxx>, Freeciv Dev <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Windows GTK client compile success! (wiki updated)
From: Vasco Alexandre da Silva Costa <vasco.costa@xxxxxxxxx>
Date: Mon, 13 Feb 2006 00:33:31 +0000

On 2/12/06, Jason Dorje Short <jdorje@xxxxxxxxxxxx> wrote:
> You cannot and must not use --with-included-gettext; it declares
> functions that conflict with libiconv functions.  In fact the included
> gettext should be destroyed and never return.  You can compile and
> install gettext directly however (it should/must be installed *after*
> libiconv).

Ok. I tried this:
$ ./configure --enable-client=gtk-2.0 --with-libiconv-prefix=/usr

Got this:
----------
Making all in intl
make[2]: Entering directory `/h/incoming/freeciv/intl'
gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\"
-DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I.. -I. -I../intl  -g -O2
-Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -mms-bitfields  intl-compat.c
In file included from intl-compat.c:20:

../config.h:417:1: warning: "LOCALEDIR" redefined

<command line>:1:1: warning: this is the location of the previous definition

gcc -c -DLOCALEDIR=\"/usr/local/share/locale\"
-DLOCALE_ALIAS_PATH=\"/usr/local/share/locale\"
-DLIBDIR=\"/usr/local/lib\" -DHAVE_CONFIG_H -I.. -I. -I../intl  -g -O2
-Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -mms-bitfields  bindtextdom.c
In file included from bindtextdom.c:19:

../config.h:417:1: warning: "LOCALEDIR" redefined

<command line>:1:1: warning: this is the location of the previous definition
...
rm -f libintl.a
ar cru libintl.a intl-compat.o bindtextdom.o dcgettext.o dgettext.o
gettext.o finddomain.o loadmsgcat.o localealias.o textdomain.o
l10nflist.o explodename.o dcigettext.o dcngettext.o dngettext.o
ngettext.o plural.o localcharset.o
ranlib libintl.a
cp ./libgnuintl.h libintl.h
/bin/sh ./config.charset 'i686-pc-mingw32' > t-charset.alias
mv t-charset.alias charset.alias
sed -e '/^#/d' -e 's/@''PACKAGE''@/freeciv/g' ref-add.sin > t-ref-add.sed
mv t-ref-add.sed ref-add.sed
sed -e '/^#/d' -e 's/@''PACKAGE''@/freeciv/g' ref-del.sin > t-ref-del.sed
mv t-ref-del.sed ref-del.sed
make[2]: Leaving directory `/h/incoming/freeciv/intl'
---------

...and last but not least:

gcc  -g -O2 -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes
-Wmissing-declarations -mms-bitfields  -L/usr/lib -L/usr/lib -o
civserver.exe  civserver.o ../utility/libcivutility.a
../common/libcivcommon.a ../ai/libcivai.a ../utility/libcivutility.a
./libcivserver.a ../intl/libintl.a -liconv ../utility/libcivutility.a
../common/libcivcommon.a ../ai/libcivai.a ../utility/libcivutility.a
./libcivserver.a ../utility/libcivutility.a
../common/aicore/libaicore.a ./generator/libgenerator.a
./scripting/libscripting.a ../dependencies/lua/src/liblua.a
../dependencies/lua/src/lib/liblualib.a
../dependencies/tolua/libtolua.a    -lz  -liconv -lwsock32
c:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../libiconv.a(ds00007.o)(.text+0x0):
multiple definition of `locale_charset'

../intl/libintl.a(localcharset.o)(.text+0x0):h:/incoming/freeciv/intl/localcharset.c:206:
first defined here

collect2: ld returned 1 exit status

make[3]: *** [civserver.exe] Error 1
make[3]: Leaving directory `/h/incoming/freeciv/server'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/h/incoming/freeciv/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/h/incoming/freeciv'
make: *** [all] Error 2

--------
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
checking target system type... i686-pc-mingw32
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for ar... ar
checking for uname... uname
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for libcharset... yes
checking for nl_langinfo and CODESET... no
checking for strerror in -lcposix... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking whether we are using the GNU C Library 2.1 or newer... no
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... no
checking nl_types.h presence... no
checking for nl_types.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... no
checking for fgets_unlocked... no
checking for getcwd... yes
checking for getegid... no
checking for geteuid... no
checking for getgid... no
checking for getuid... no
checking for mempcpy... no
checking for munmap... no
checking for putenv... yes
checking for setenv... no
checking for setlocale... yes
checking for stpcpy... no
checking for strchr... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... no
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for iconv... (cached) yes
checking for iconv declaration... (cached)
         extern size_t iconv (iconv_t cd, const char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... (cached) no
checking for LC_MESSAGES... no
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for GNU gettext in libc... no
checking for GNU gettext in libintl... no
checking for msgfmt... /mingw/bin/msgfmt
checking for gmsgfmt... /mingw/bin/msgfmt
checking for xgettext... /mingw/bin/xgettext
checking for bison... no
checking for catalogs to be installed...  cs ca da de en_GB es et fi
fr he hu it ja nl nb no pl pt pt_BR ro ru sv uk
checking for ngettext in -lc... no
checking for ngettext in -lintl... yes
checking whether libintl's ngettext works at runtime... yes
checking for GNU xgettext version >= 0.10.36... yes
checking for GNU msgfmt version >= 0.10.35... yes
checking for C99 variadic macros... yes
checking for C99 variable arrays... yes
checking for C99 initializers... yes
checking for stdint.h... (cached) yes
checking for C99 stdint.h... yes
checking for gzgets in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzip... /bin/gzip
checking for pkg-config... /mingw/bin/pkg-config
checking for GTK+ - version >= 2.4.0... yes (version 2.8.6)
checking for X... no
checking whether Xfuncproto was supplied... no
checking for compilable FUNCPROTO definition... no, cannot determine
checking for workable NARROWPROTO definition... no, cannot determine
checking whether Xfuncproto was determined... no
checking for sdl-config... no
checking for SDL - version >= 1.0.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
checking for GGZ library: libggz... no
checking for gethostbyaddr in -lbind... no
checking readline/readline.h usability... no
checking readline/readline.h presence... no
checking for readline/readline.h... no
checking for pow... yes
checking for main in -lnls... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/utsname.h usability... no
checking sys/utsname.h presence... no
checking for sys/utsname.h... no
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for libintl.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for strings.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for socklen_t... no
checking return type of signal handlers... void
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... no
checking for vfork... no
checking for working strcoll... yes
checking for vprintf... yes
checking for _doprnt... no
checking for working vsnprintf... yes
checking for fileno... yes
checking for ftime... yes
checking for gethostname... no
checking for getpwuid... no
checking for inet_aton... no
checking for select... no
checking for snooze... no
checking for strerror... yes
checking for strcasecmp... (cached) yes
checking for strncasecmp... yes
checking for strlcat... no
checking for strlcpy... no
checking for strstr... yes
checking for usleep... no
checking for vsnprintf... yes
checking for uname... no
checking for flock... no
checking for gethostbyname... no
checking for connect... no
checking for bind... no
checking for working gettimeofday... no
checking for gethostbyname in -lnsl... no
checking for connect in -lsocket... no
checking for gethostbyaddr in -lbind... (cached) no
checking for fcntl... no
checking for ioctl... no
checking for SIGPIPE... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating data/civclient.dsc
config.status: creating data/civserver.dsc
config.status: creating data/civserver.room
config.status: creating data/amplio/Makefile
config.status: creating data/flags/Makefile
config.status: creating data/misc/Makefile
config.status: creating data/trident/Makefile
config.status: creating data/isophex/Makefile
config.status: creating data/isotrident/Makefile
config.status: creating data/stdsounds/Makefile
config.status: creating data/default/Makefile
config.status: creating data/civ1/Makefile
config.status: creating data/civ2/Makefile
config.status: creating data/scenario/Makefile
config.status: creating data/nation/Makefile
config.status: creating utility/Makefile
config.status: creating utility/ftwl/Makefile
config.status: creating dependencies/Makefile
config.status: creating dependencies/lua/Makefile
config.status: creating dependencies/tolua/Makefile
config.status: creating dependencies/lua/src/Makefile
config.status: creating dependencies/lua/src/lib/Makefile
config.status: creating common/Makefile
config.status: creating common/aicore/Makefile
config.status: creating ai/Makefile
config.status: creating tests/Makefile
config.status: creating client/Makefile
config.status: creating client/agents/Makefile
config.status: creating client/include/Makefile
config.status: creating client/gui-sdl/Makefile
config.status: creating client/gui-gtk-2.0/Makefile
config.status: creating client/gui-xaw/Makefile
config.status: creating client/gui-win32/Makefile
config.status: creating client/gui-ftwl/Makefile
config.status: creating client/gui-stub/Makefile
config.status: creating server/Makefile
config.status: creating server/generator/Makefile
config.status: creating server/scripting/Makefile
config.status: creating manual/Makefile
config.status: creating intl/Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating doc/man/Makefile
config.status: creating doc/de/Makefile
config.status: creating doc/fr/Makefile
config.status: creating doc/it/Makefile
config.status: creating doc/ja/Makefile
config.status: creating doc/nl/Makefile
config.status: creating doc/sv/Makefile
config.status: creating freeciv.spec
config.status: creating bootstrap/undep.sh
config.status: creating data/Freeciv
config.status: creating client/freeciv.desktop
config.status: creating civ
config.status: creating ser
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing fc_default-1 commands
extending po/Makefile
config.status: executing fc_default-2 commands
silencing po/Makefile
config.status: executing fc_default-4 commands
modifying po/Makefile add-comments/escape
config.status: executing fc_default-5 commands
config.status: executing default commands
--------

--
Vasco Alexandre da Silva Costa



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