I managed to compile postgres 6.4.1 without too much hassle, with the
following
./configure --with-CC=cc --without-CXX
There was only a single problem in
/data/build/pgsql/src/backend/port/snprintf.c
where around line 120 it should read
#ifndef HAVE_LONG_INT_64
static void fmtnum __P((long_long value, int base, int dosign, int ljust,
int le
n, int zpad));
#else
static void fmtnum __P((long value, int base, int dosign, int ljust, int
len, in
t zpad));
#endif
Then everything is fine. Don't even try with gcc -- I've also tried with
the gcc from egcs 1.0.3
and there are a lot of errors.
Problem is that even when postgres has compiled, it isn't working. I've
spent most of two days
on this now, but am back on 6.3.2 now (sigh).
Adriaan