Re: Compilation failure: 8.2.4 and 8.1.0 under XPPro/MinGW - Mailing list pgsql-ports

From Magnus Hagander
Subject Re: Compilation failure: 8.2.4 and 8.1.0 under XPPro/MinGW
Date
Msg-id 468C7D67.3090509@hagander.net
Whole thread Raw
In response to Compilation failure: 8.2.4 and 8.1.0 under XPPro/MinGW  ("Phil Mills" <PMills@veeco.com>)
List pgsql-ports
Phil Mills wrote:
> I've seen the build error below referenced in several messages, but haven't seen a clear answer for how to resolve
it.  
>
> Environment: XP Pro with MSys/MinGW freshly installed according to the docs here:
http://www.postgresql.org/docs/faqs.FAQ_MINGW.html
> Zlib is installed; Visual Studio and Cygwin are also on the system but should be out of the way.
>
> Reason for building: increase NAMEDATALEN so it'll quit truncating my absurdly-large column names.
>
> Output from Make (substantially the same whether I'm building 8.2.4 or 8.1.0):
<snip>

This means your MingW is too new :-O
They made an incompatible change to their headers at some point (I think
someone said you need 3.9 or earlier). So your workaround is to
downgrade to an older version of mingw. (Or do the manual header hackery
that someone posted, but I'd really recommend something that works
without changing the libc headers)

Now that I see it again, I do think I have a patch sitting around
somewhere to fix that, I guess I'll have to find and review that one. If
we can't fix it, we at least need to get it into the FAQ. I'll write up
a suggestion for text there if I can't get the code fixed.

Unfortunately, keeping up with mingw is developing against a moving
target, so these things happen :-(


//Magnus



pgsql-ports by date:

Previous
From:
Date:
Subject: Re: Compilation failure: 8.2.4 and 8.1.0 under XPPro/MinGW
Next
From: Decibel!
Date:
Subject: Re: [BUGS] Some errors in PostgreSQL installestion