Windows, gettext/libintl, pg_sprintf and friends

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Windows, gettext/libintl, pg_sprintf and friends
Date: 2005-03-17 19:27:54
Message-ID: 4239DA3A.1010703@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.o interval.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 reference to `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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-03-17 19:34:18 Re: Windows, gettext/libintl, pg_sprintf and friends
Previous Message Dann Corbit 2005-03-17 19:24:24 Re: [pgsql-hackers-win32] win32 performance - fsync question