Re: Windows, gettext/libintl, pg_sprintf and friends

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, ntufar(at)gmail(dot)com
Subject: Re: Windows, gettext/libintl, pg_sprintf and friends
Date: 2005-03-17 19:34:18
Message-ID: 200503171934.j2HJYIx18359@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan wrote:
>
> 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

Ah, Nicolai Tufar complained about the same problem earlier this week.
My only guess is that the #define for snprintf is also affecting the
include files, but I am unsure.

My MinGW laptop is out for service but I should have it back tomorrow.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-03-17 19:36:19 Re: [pgsql-hackers-win32] win32 performance - fsync question
Previous Message Andrew Dunstan 2005-03-17 19:27:54 Windows, gettext/libintl, pg_sprintf and friends