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

[1059 byte] By [hcpa] at [2007-11-27 3:19:18]
# 1
Omitting --openssl allows a sucessful 64bit build, the problem is linked to an unresolved symbol in SUBSYS.o relating to SSL_
hcpa at 2007-7-12 8:21:58 > top of Java-index,Development Tools,Solaris and Linux Development Tools...