mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Postgresql build broken?


From: René Berber
Subject: [Mingw-cross-env-list] Postgresql build broken?
Date: Sat, 05 Feb 2011 18:47:16 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0

Hi,

While rebuilding Qt I found that PostgreSQL no longer builds, the
problem is in PostgreSQL, it defines:

include/port/win32.h:#define ftruncate(a,b)       chsize(a,b)

which causes the problem, which is this conflict:

In file included from fe-connect.c:23:0:
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/../../../../i686-pc-mingw32/include/unistd.h:41:5:
error: conflicting types for 'chsize'
/export/home/rberber/mingw-cross-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.5.2/../../../../i686-pc-mingw32/include/io.h:442:63:
note: previous declaration of 'chsize' was here

In short, io.h defines function int chsize(int, long) while unistd.h
defines int ftruncate(int, off_t) and the macro takes care of messing
everything up.

First point: does PostgreSQL even need to re-define ftruncate?

Second: is it me or everyone else has this problem?  It seems strange
that Postgresql was building fine until this week (I even tried rolling
back the .mk file, same problem with previous version).
-- 
René Berber




reply via email to

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