Building Postgresql 8.2.4 64bit binary on Solaris 10 6/06
Attempted build of PostgreSQL 8.2.4 on Solaris 10 6/06 using Studio 11 with patches 120759-11.zip, 121018-07.zip, 121616-03.zip, 122143-02.zip, 121020-01.zip and 122136-02.zip
The make install completes, however when when attempting to run /opt/postgresql-8.2.4/bin/initdb -D /db/data2 gives the following error
$ /opt/postgresql-8.2.4/bin/initdb -D /db/data2
ld.so.1: initdb: fatal: relocation error: R_AMD64_32: file /opt/postgresql-8.2.4/lib/libpq.so.5: symbol (unknown): value 0xfffffd7fff000000 does not fit
Killed
After posting on the solarisx86@yahoogroups.com a suggestion of changing the -xmodel, so tried -xmodel=medium and -xmodel=kernel, performing a make distclean between builds, the same error occurred irrespective of memory model.
Build paramaters
$ CC=cc CFLAGS="-xarch=amd64 -xmodel=small" CPPFLAGS=-I/opt/gnu64/include
LDFLAGS=-R/opt/gnu64/lib ./configure --prefix=/opt/postgresql-8.2.4 --enable-integer-datetimes --with-tcl --with-tclconfig=/opt/gnu64/lib --with-pam --with-openssl

