Hi!
I compiled a 6.x version of PostGres before, and never ran
into any problems, but this is a little baffling.
I have an oldish Sun here, with the GNU libraries and utilities
installed on top of Solaris stuff. (So /usr/bin/tar is the
Solaris tar, and /usr/local/bin/tar is gtar, ...)
I set the PATH to include /usr/local/bin first, and ran
./configure --prefix=/export/home2/postgres \
--with-tcl \
--with-tclconfig=/usr/local/lib \
--with-tkconfig=/usr/local/lib \
--with-perl \
--with-odbc \
--with-odbcinst=/export/home2/postgres/etc \
--infodir=/usr/local/info \
--mandir=/usr/local/man
(I know, it's a little screwed up.) When I run make, it dies
on the very first module, version.c
from ../include/postgres.h:40,
from version.c:25:
../include/c.h:803: parse error before 'va_list'
version.c: In function 'ValidatePgVersion':
version.c:83: warning: subscript has type 'char'
Line 83 is a call to isdigit( char ), so I would imgaine
gcc is doing an implicit cast to int to satisfy isdigit.
I've had problems before with vsnprintf on other packages
I've installed, and that is what line 803 in c.h is.
Configure sets config.h as
/* undef HAVE_VSNPRINTF_DECL */
so I don't see why this is dying when I am trying to use
the vsnprintf that you guys have included with PostgreSQL
7.0.2
Ideas? Oh, as far as tarballs goes, I downloaded
base, docs, support, test and postgresql-7.0.2.tar.gz
from looking-glass.usask. I then untarred the big
postgresql-7.0.2.tar.gz file, then base, thendocs, then
support, then test.
Thanks,
Gord
Matter Realisations http://www.materialisations.com/
Gordon Haverland, B.Sc. M.Eng. President
101 9504 182 St. NW Edmonton, AB, CA T5T 3A7
780/481-8019 ghaverla @ freenet.edmonton.ab.ca