[Top][All Lists]

[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: Gecko/20081209 Lightning/0.9 Thunderbird/ Mnenhy/


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:
error: conflicting types for 'chsize'
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]