From: | John R Pierce <pierce(at)hogranch(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: solaris tarballs and pl/java |
Date: | 2010-04-15 19:24:49 |
Message-ID: | 4BC76801.6070207@hogranch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
John R Pierce wrote:
> Last night, I started trying to piece together the environment for
> ./configure for postgres based on what pg_config gives me, but it
> aborted pretty early with missing stuffs... by then it was 1am and I
> was fried so I am taking a fresh look this morning... k, I'm already
> farther along and moving forward... (had to add /usr/sbin to the path
> to find dtrace, now I'm sorting out readline vs libedit...)... and
> stopped on a 'cannot compute size(off_t)' but I'm sure I'll figure
> that out...
so, i'm stuck here.
getting this error from thte ./configure:
configure:16808: error: cannot compute sizeof (off_t)
I'm trying to mimic this pg_config...
$ pg_config
BINDIR = /usr/postgres/8.4-community/bin/64
DOCDIR = /usr/postgres/8.4-community/share/doc
HTMLDIR = /usr/postgres/8.4-community/share/doc
INCLUDEDIR = /usr/postgres/8.4-community/include
PKGINCLUDEDIR = /usr/postgres/8.4-community/include
INCLUDEDIR-SERVER = /usr/postgres/8.4-community/include/server
LIBDIR = /usr/postgres/8.4-community/lib/64
PKGLIBDIR = /usr/postgres/8.4-community/lib/64
LOCALEDIR = /usr/postgres/8.4-community/share/locale
MANDIR = /usr/postgres/8.4-community/man
SHAREDIR = /usr/postgres/8.4-community/share
SYSCONFDIR = /usr/postgres/8.4-community/etc
PGXS = /usr/postgres/8.4-community/lib/64/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--prefix=/usr/postgres/8.4-community'
'--exec-prefix=/usr/postgres/8.4-community'
'--bindir=/usr/postgres/8.4-community/bin/64'
'--libexecdir=/usr/postgres/8.4-community/bin/64'
'--sbindir=/usr/postgres/8.4-community/bin/64'
'--datadir=/usr/postgres/8.4-community/share'
'--sysconfdir=/usr/postgres/8.4-community/etc'
'--mandir=/usr/postgres/8.4-community/man'
'--libdir=/usr/postgres/8.4-community/lib/64'
'--includedir=/usr/postgres/8.4-community/include'
'--sharedstatedir=/var/postgres/8.4-community'
'--localstatedir=/var/postgres/8.4-community'
'--with-system-tzdata=/usr/share/lib/zoneinfo' '--enable-nls'
'--with-docdir=/usr/postgres/8.4-community/doc' '--with-python'
'--with-pam' '--with-openssl' '--with-libedit-preferred' '--with-libxml'
'--with-libxslt' '--with-gssapi' '--enable-thread-safety'
'--enable-dtrace' 'DTRACEFLAGS=-64'
'--with-includes=/zstore/pgsql/pg84b1/proto/root_sparc/usr/include:/zstore/pgsql/pg84b1/proto/root_sparc/usr/sfw/include:/usr/sfw/include'
'--with-tclconfig=/usr/sfw/lib'
'--with-libs=/zstore/pgsql/pg84b1/proto/root_sparc/usr/lib/64:/zstore/pgsql/pg84b1/proto/root_sparc/usr/sfw/lib/64:/usr/lib/64:/usr/sfw/lib/64'
'CC=/opt/SUNWspro/SS11/bin/cc' 'CFLAGS=-xO3 -xarch=v9 -dalign
-Wc,-Qiselect-regsym=0 -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff '
'LDFLAGS=-L/zstore/pgsql/pg84b1/proto/root_sparc/usr/lib/64
-L/zstore/pgsql/pg84b1/proto/root_sparc/usr/sfw/lib/64
-L/usr/sfw/lib/64'
'CPPFLAGS=-I/zstore/pgsql/pg84b1/proto/root_sparc/usr/include
-I/zstore/pgsql/pg84b1/proto/root_sparc/usr/sfw/include -I/usr/sfw/include'
CC = /opt/SUNWspro/SS11/bin/cc
CPPFLAGS = -I/zstore/pgsql/pg84b1/proto/root_sparc/usr/include
-I/zstore/pgsql/pg84b1/proto/root_sparc/usr/sfw/include
-I/usr/sfw/include -I/usr/include/libxml2
-I/zstore/pgsql/pg84b1/proto/root_sparc/usr/include
-I/zstore/pgsql/pg84b1/proto/root_sparc/usr/sfw/include -I/usr/sfw/include
CFLAGS = -xO3 -xarch=v9 -dalign -Wc,-Qiselect-regsym=0 -xspace -W0,-Lt
-W2,-Rcond_elim -Xa -xildoff
CFLAGS_SL = -KPIC
LDFLAGS = -L/zstore/pgsql/pg84b1/proto/root_sparc/usr/lib/64
-L/zstore/pgsql/pg84b1/proto/root_sparc/usr/sfw/lib/64 -L/usr/sfw/lib/64
-L/usr/lib -L/zstore/pgsql/pg84b1/proto/root_sparc/usr/lib/64
-L/usr/lib/64 -L/usr/sfw/lib/64 -Wl,-R'/usr/postgres/8.4-community/lib/64'
LDFLAGS_SL =
LIBS = -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgss -lz -ledit
-ltermcap -lnsl -lrt -lsocket -lm
VERSION = PostgreSQL 8.4.3
and I'm using this configure script...
$ more configit
export JAVA_HOME=/usr/jdk/jdk1.5.0_23
export
PATH=/usr/jdk/jdk1.5.0_23/bin/sparcv9:/opt/SUNWspro/bin:/usr/postgres/8.4-community/bin/64:/usr/bin:/usr/sbin:/opt/sfw/bin:/usr/sfw/bin:/usr/local/bin:/usr/ccs/bin
export CC=/opt/SUNWspro/bin/cc
export CFLAGS='-xO3 -xarch=v9 -dalign -Wc,-Qiselect-regsym=0 -xspace
-W0,-Lt -W2,-Rcond_elim -Xa -xildoff'
export CFLAGS_SL=-KPIC
export LDFLAGS="-L/usr/lib/64 -L/usr/sfw/lib/64 -L/usr/sfw/lib/64
-L/usr/lib -L/usr/lib/64 -L/usr/lib/64 -L/usr/sfw/lib/64
-Wl,-R'/usr/postgres/8.4-community/lib/64'"
export CPPFLAGS='-I/usr/include -I/usr/sfw/include -I/usr/sfw/include
-I/usr/include/libxml2 -I/usr/include -I/usr/sfw/include -I/usr/sfw/include'
export CONFSTUFF='--prefix=/usr/postgres/8.4-community
--exec-prefix=/usr/postgres/8.4-community --bindir=/usr/postgres
/8.4-community/bin/64 --libexecdir=/usr/postgres/8.4-community/bin/64
--sbindir=/usr/postgres/8.4-community/bin/64 --da
tadir=/usr/postgres/8.4-community/share
--sysconfdir=/usr/postgres/8.4-community/etc
--mandir=/usr/postgres/8.4-communi
ty/man --libdir=/usr/postgres/8.4-community/lib/64
--includedir=/usr/postgres/8.4-community/include --sharedstatedir=/v
ar/postgres/8.4-community --localstatedir=/var/postgres/8.4-community
--with-system-tzdata=/usr/share/lib/zoneinfo --en
able-nls --with-docdir=/usr/postgres/8.4-community/doc --with-python
--with-pam --with-openssl --with-libedit-preferred
--with-libxml --with-libxslt --with-gssapi --enable-thread-safety
--enable-dtrace DTRACEFLAGS=-64 --with-includes=/usr
/include:/usr/sfw/include --with-tclconfig=/usr/sfw/lib
--with-libs=/usr/lib/64:/usr/sfw/lib/64'
./configure $CONFSTUFF --without-readline
(I shut readline off, cuz I wanted to get past something lame there)
my cc compiler is...
$ /opt/SUNWspro/bin/cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-12 2009/11/22
usage: cc [ options] files. Use 'cc -flags' for details
and my java is...
$ /usr/jdk/jdk1.5.0_23/bin/sparcv9/java -version
java version "1.5.0_23"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_23-b01)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_23-b01, mixed mode)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-04-15 19:42:50 | Re: solaris tarballs and pl/java |
Previous Message | Howard Yeh | 2010-04-15 18:22:26 | Re: Byte Escape Syntax |