Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2002:
[Freeciv-Dev] compiling on Solaris / the continuing story of GNU gettext
Home

[Freeciv-Dev] compiling on Solaris / the continuing story of GNU gettext

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: webmaster@xxxxxxxxxxxxxxxxxxx
Cc: Freeciv developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] compiling on Solaris / the continuing story of GNU gettext (was: cvs snapshots)
From: Reinier Post <rp@xxxxxxxxxx>
Date: Tue, 26 Mar 2002 21:44:56 +0100

[Cc: to freeciv-dev]

On Tue, Mar 26, 2002 at 02:12:38PM -0600, Mike Kaufman wrote:
> ok, I see that the snapshots are indeed being created correctly and they're
> getting up on http://www.freeciv.org/download.phtml correctly, but it seems
> that http://www.freeciv.org/latest.html is _not_ getting updated, nor are
> the cvs diffs getting created...

That's right.  This is because www.freeciv.org is Solaris.
Here is what I just did to compile the current CVS tree on Solaris.

> -mike

1) patched ./configure to use putenv() instead of setenv();
   a patch to fix this is attached:

     autoinclude.m4.diff-u

2) set env vars to allow ./configure to find GNU gettext:

  env MSGFMT=$HANDCOMP/gettext-0.11.1/bin/msgfmt 
"CPPFLAGS=-I$HANDCOMP/gettext-0.11.1/include" 
"LDFLAGS=-L$HANDCOMP/gettext-0.11.1/lib -R$HANDCOMP/gettext-0.11.1/lib" 
$HANDCOMP/bin/cfg --with-xpm-prefix=$HANDCOMP/xpm-3.4k

Note that it would be convenient if I could just use

  --with-gettext-utils=$HANDCOMP/gettext-0.11.1

here.  Similarly, it would be nice if

  --with-zlib=$HANDCOMP/zlib=1.1.4

would work.

But it compiles, with Sun make and Forte cc, which
gave the following warnings on this 64 bit system:

"aiunit.c", line 2203: warning: statement not reached
"autoattack.c", line 99: warning: enum type mismatch: arg #2                    
"report.c", line 273: warning: improper pointer/integer combination: arg #3
"report.c", line 422: warning: improper pointer/integer combination: arg #2
"report.c", line 427: warning: improper pointer/integer combination: arg #2
"report.c", line 1020: warning: improper pointer/integer combination: arg #3
"./../include/patrol_cursor.xbm", line 6: warning: initializer does not fit or 
is out of range: 248
[and a whole bunch more on the same file]                                       
"plrdlg.c", line 225: warning: improper pointer/integer combination: arg #3     
"repodlgs.c", line 505: warning: improper pointer/integer combination: arg #3   
"cma_fec.c", line 279: warning: improper pointer/integer combination: arg #3    
"cma_fec.c", line 323: warning: improper pointer/integer combination: arg #3
"citydlg_common.c", line 133: warning: improper pointer/integer combination: 
arg #3
"citydlg_common.c", line 183: warning: improper pointer/integer combination: 
arg #3
"climisc.c", line 1099: warning: improper pointer/integer combination: arg #3   
"clinet.c", line 387: warning: statement not reached
"helpdata.c", line 595: warning: improper pointer/integer combination: arg #2
"helpdata.c", line 600: warning: improper pointer/integer combination: arg #2
"helpdata.c", line 605: warning: improper pointer/integer combination: arg #2

GNU msgfmt gave warnings such as:

[path to]/msgfmt: da.po: warning: Charset "ISO-8859-1" is not supported. msgfmt 
relies on iconv(),
                                                           and iconv() does not 
support "ISO-8859-1".
                                                           Installing GNU 
libiconv and then reinstalling GNU gettext
                                                           would fix this 
problem.
                                                           Continuing anyway.
2299 translated messages, 285 untranslated messages.


But I did get a civclient and civserver, and setting $LANG works.

In the past I haven't had any luck with setting $LANG to values such
as 'de' or 'nl', while 'de_DE' and 'nl_NL' did work.  A patch to README:

  README.diff-u

But I have to say, the values 'nl' and 'de' do work when I try them now.

-- 
Reinier

Attachment: acinclude.m4.diff-u
Description: Text document

Attachment: README.diff-u
Description: Text document


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