Can't compile 6.4.2 on Solaris 2.6

From: Patrick Verdon <patrick(at)kan(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Can't compile 6.4.2 on Solaris 2.6
Date: 1999-02-13 23:12:11
Message-ID: 36C606CA.9B92AADA@kan.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi all,

I don't know what's going on here. I simply
cannot compile PostgreSQL 6.4.2 on SPARC
Solaris 2.6. The first trouble arises in the
configure script:

kandinsky:root# ./configure
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.6
checking echo setting...
checking setting template to... solaris_sparc_gcc
./configure: conftest.sh: not found

I think the problem here seems to be at line 743:

741: rm -f conftest.sh
742: sed 's/^\([A-Za-z_]*\):\(.*\)$/\1="\2"/' "template/$TEMPLATE" >conftest.sh
743: . conftest.sh
744: rm -f conftest.sh

I changed it to:

741: rm -f conftest.sh
742: sed 's/^\([A-Za-z_]*\):\(.*\)$/\1="\2"/' "template/$TEMPLATE" >conftest.sh
743: chmod +x conftest.sh; ./conftest.sh
744: rm -f conftest.sh

and configure finally lurched into action.

But then it fell over when compiling too!:

gmake[3]: Entering directory `/usr/local/src/postgresql-6.4.2/src/backend/access/transam'
gcc -I../../../include -I../../../backend -g -O2 -Wall -Wmissing-prototypes -I../.. -c transam.c -o transam.o
gcc -I../../../include -I../../../backend -g -O2 -Wall -Wmissing-prototypes -I../.. -c transsup.c -o transsup.o
gcc -I../../../include -I../../../backend -g -O2 -Wall -Wmissing-prototypes -I../.. -c varsup.c -o varsup.o
gcc -I../../../include -I../../../backend -g -O2 -Wall -Wmissing-prototypes -I../.. -c xact.c -o xact.o
gcc -I../../../include -I../../../backend -g -O2 -Wall -Wmissing-prototypes -I../.. -c xid.c -o xid.o
ld -r -o SUBSYS.o transam.o transsup.o varsup.o xact.o xid.o
gmake[3]: Leaving directory `/usr/local/src/postgresql-6.4.2/src/backend/access/transam'
ld -r -o SUBSYS.o common/SUBSYS.o gist/SUBSYS.o hash/SUBSYS.o heap/SUBSYS.o index/SUBSYS.o rtree/SUBSYS.o nbtree/SUBSYS.o transam/SUBSYS.o
gmake[2]: Leaving directory `/usr/local/src/postgresql-6.4.2/src/backend/access'
gmake -C bootstrap all
gmake[2]: Entering directory `/usr/local/src/postgresql-6.4.2/src/backend/bootstrap'
/usr/local/bin/bison -y bootparse.y
grep -v "^#" boot.sed > sedfile
sed -f sedfile < y.tab.c > bootparse.c
mv y.tab.h bootstrap_tokens.h
mv: cannot access y.tab.h
gmake[2]: *** [bootparse.c] Error 2
gmake[2]: Leaving directory `/usr/local/src/postgresql-6.4.2/src/backend/bootstrap'
gmake[1]: *** [bootstrap.dir] Error 2
gmake[1]: Leaving directory `/usr/local/src/postgresql-6.4.2/src/backend'
gmake: *** [all] Error 2

??

What's going on here? Postgresql-v6.4 compiles fine.

I'm using:

SPARC Solaris 2.6 5/98 + sundry patches
gcc 2.8.1
flex 2.5.4a
bison 1.25

Has anyone else got 6.4.2 working on Solaris 2.6?

Cheers.

Patrick

--

#===============================#
\ KAN Design & Publishing Ltd /
/ T: +44 (0)1223 511134 \
\ F: +44 (0)1223 571968 /
/ E: mailto:patrick(at)kan(dot)co(dot)uk \
\ W: http://www.kan.co.uk /
#===============================#

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Davis 1999-02-13 23:15:05 RE: Subject: Re: [GENERAL] A book for PgSQL? A need? yes? no?
Previous Message Robert Chalmers 1999-02-13 23:08:32 Re: Subject: Re: [GENERAL] A book for PgSQL? A need? yes? no?