Quick Summary:
1.
With the follow config:
./configure \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes \
I have the following config:
configure:1298: checking build system type
configure:1316: result: sparc-sun-solaris2.8
configure:1324: checking host system type
configure:1338: result: sparc-sun-solaris2.8
configure:1348: checking which template to use
configure:1449: result: solaris
2.
With the following config:
./configure \
CFLAGS="-v -DSUNOS4_CC" \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes
I have the following config:
configure:1298: checking build system type
configure:1316: result: sparc-sun-solaris2.8
configure:1324: checking host system type
configure:1338: result: sparc-sun-solaris2.8
configure:1348: checking which template to use
configure:1449: result: solaris
3.
With the following config:
./configure \
CFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2 -DSUNOS4_CC" \
LDFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
LDFLAGS_SL="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes
I have the following config:
configure:1298: checking build system type
configure:1316: result: sparc-sun-solaris2.8
configure:1324: checking host system type
configure:1338: result: sparc-sun-solaris2.8
configure:1348: checking which template to use
configure:1449: result: solaris
4.
./configure \
CFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
LDFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
LDFLAGS_SL="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes
I have the following config:
configure:1298: checking build system type
configure:1316: result: sparc-sun-solaris2.8
configure:1324: checking host system type
configure:1338: result: sparc-sun-solaris2.8
configure:1348: checking which template to use
configure:1449: result: solaris
NOTES:
1 and 2 can compile and they both produce 32bit bins and libs.
3 can compile and it produces 64bit bins and libs.
4 can't compile (fbe fails)
-----Original Message-----
From: Tom Lane
Sent: July 29, 2005 12:18 PM
To: Clark, Andrew
Cc: Peter Eisentraut; pgsql-ports@postgresql.org
Subject: Re: [PORTS] Solaris SPARC - Sun compiler 5.5 - 64 bit
I wrote:
"Clark, Andrew" <Andrew.Clark@fnf.com> writes:
Well that definitely did something, but now I get a different error:
OK, thanks for the confirmation. There was some discussion recently
of whether we shouldn't add -DSUNOS4_CC to the solaris template, but
we didn't have proof.
Actually, this doesn't prove anything one way or the other. Because you
were manually specifying CFLAGS, and thereby overriding the template,
the lack of -DSUNOS4_CC in the manual CFLAGS caused the s_lock.c
failure.
So: which template did configure pick on your machine, anyway?
(This is reported in the first few lines of configure output)
regards, tom lane