7.0.2 Compile Errors on Solaris 2.5.1

From: ghaverla(at)freenet(dot)edmonton(dot)ab(dot)ca
To: pgsql-novice(at)postgresql(dot)org
Subject: 7.0.2 Compile Errors on Solaris 2.5.1
Date: 2000-08-16 19:19:16
Message-ID: Pine.A41.3.95.1000816130552.4780B-100000@freenet.edmonton.ab.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

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

In response to

  • how to use GUI at 2000-08-16 15:59:54 from Robinson, Marlena CECOM RDEC I2WD

Browse pgsql-novice by date

  From Date Subject
Next Message Michele Bendazzoli 2000-08-16 19:26:00 Installation problem in NT
Previous Message Prasanth A. Kumar 2000-08-16 16:20:39 Re: how to use GUI