Windows, gettext/libintl, pg_sprintf and friends - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Windows, gettext/libintl, pg_sprintf and friends
Date
Msg-id 4239DA3A.1010703@dunslane.net
Whole thread Raw
Responses Re: Windows, gettext/libintl, pg_sprintf and friends
List pgsql-hackers
First the good news. After several false tries I managed to get gettext
and friends installed on MinGW so that I could get past configure when I
set "--enable-nls". I did this by installing (in this order) the
following packages from
http://sourceforge.net/project/showfiles.php?group_id=23617 in c:\MinGW :

libintl-0.11.5-2-bin.zip
libiconv-1.8-1-lib.zip
libiconv-1.8-1-bin.zip
gettext-0.14.1-bin.zip
gettext-0.14.1-lib.zip
gettext-0.14.1-dep.zip

That's significan't progress - I have had nls turned off up to now.

Now the bad news: I get huge numbers of warnings about redefinitions
etc, that look like this:

../../../../src/include/port.h:135:1: warning: "printf" redefined
In file included from ../../../../src/include/c.h:97,                from ../../../../src/include/postgres_fe.h:21,
          from interval.c:1:
 
c:/mingw/include/libintl.h:303:1: warning: this is the location of the previous definition


or this:

../../../../src/include/port.h:114: warning: `libintl_printf' is an unrecognized format function type

and an eventual failure when building ecpg that looks in part like this:

dllwrap  -o libpgtypes.dll --dllname libpgtypes.dll  --def pgtypes.def numeric.o datetime.o common.o dt_common.o
timestamp.ointerval.o pgstrcasecmp.o  -L../../../../src/port -lm 
 
numeric.o(.text+0x19e9): In function `PGTYPESnumeric_from_double':
C:/msys/1.0/home/pgrunner/pgbuildfarm/root/HEAD/pgsql.5860/src/interfaces/ecpg/pgtypeslib/numeric.c:1423: undefined
referenceto `pg_sprintf'
 
datetime.o(.text+0x436): In function `PGTYPESdate_fmt_asc':


For the whole gory mess see the log at
http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=loris&dt=2005-03-17%2018:40:20


cheers

andrew





pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: [pgsql-hackers-win32] win32 performance - fsync question
Next
From: Bruce Momjian
Date:
Subject: Re: Windows, gettext/libintl, pg_sprintf and friends