building 64bit V7.4.1 on Solaris 9 64bit

From: raymond(dot)siebert(at)mobilcom(dot)de
To: pgsql-ports(at)postgresql(dot)org
Subject: building 64bit V7.4.1 on Solaris 9 64bit
Date: 2004-02-11 13:25:13
Message-ID: OFF01C52F5.1C9EDB55-ONC1256E37.00498176-C1256E37.0049B8CB@mobilcom.de
Views: Raw Message | Whole Thread | Download mbox
Thread:
Lists: pgsql-ports

hi there,

i am trying to build an 64bit binaries & libs on Solaris 9 64bit. platform
is a sun4u.
gcc 3.2.3 and 3.3.1 habe hard-coded searchpaths which prevent me from
building 64bit binaries.

Somehow I don't know if I am wrong or if there ia a potential problem in
the official source tree for Solaris 9.

Installed Sun Freeware packages installed in /usr/local/......
root# pkginfo | grep SMC
application SMCautoc autoconf
application SMCautom automake
application SMCmake make
application SMCossh openssh
application SMCossl openssl
application SMCperl perl
application SMCreadl readline
application SMCtcpdwr tcp_wrappers
application SMCzlib zlib

Sun Forte 7 is installed as compiler.

I do have following Environment:
PATH=/opt/SUNWspro/bin:/usr/ccs/bin/sparcv9:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/local/bin
LD_LIBRARY_PATH=/usr/lib/sparcv9:/usr/local/lib/sparcv9:/opt/SUNWspro/lib/v9/:/usr/lib/sparcv9:/usr/local/lib/sparcv9

due to the lack of "gmake" for Solaris, I linked /usr/ccs/bin/make to
/usr/ccs/bin/gmake.

configure is called as follows:
CC=/opt/SUNWspro/bin/cc ASFLAGS="-64 -xarch=v9" CFLAGS="-fast -xarch=v9
-YP,/opt/SUNWspro/prod/lib/v9:/usr/ccs/lib/sparcv9:/usr/lib/sparcv9" \
./configure --prefix=/opt/postgres/server \
--enable-nls \
--with-pgport=5432 \
--enable-thread-safety \
--without-zlib \
--without-readline > /tmp/configure-server-V7.4.1 2>&1

make is called as follows:
root# gmake > /tmp/make-server-V7.4.1 2>&1

make stops as follows:
/opt/SUNWspro/bin/cc -Xa -G -h libascii_and_mic.so.0 ascii_and_mic.o
-L../../../../../../src/port -o libascii_and_mic.so.0.0
ld: fatal: file ascii_and_mic.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to
libascii_and_mic.so.0.0
make[4]: *** [libascii_and_mic.so.0.0] Error 1
make[4]: Leaving directory
`/home/POSTGRES/postgresql-7.4.1/src/backend/utils/mb/conversion_procs/ascii_and_mic'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/POSTGRES/postgresql-7.4.1/src/backend/utils/mb/conversion_procs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/POSTGRES/postgresql-7.4.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/POSTGRES/postgresql-7.4.1'
*** Error code 2
make: Fatal error: Command failed for target `all'

Some produced output is attached to the email.

MfG

------------------------------------------------------------------------------------------------
Raymond Siebert
Datenbankadministrator

MobilCom Communications GmbH
Hollerstraße 126
24782 Büdelsdorf
Telefon: +49 (0)4331/447-2114
Telefax: +49 (0)4331/447-2200
E-Mail : raymond(dot)siebert(at)mobilcom(dot)de

Besucher:
Ahlmannhallen - Büdelsdorf
------------------------------------------------------------------------------------------------

Attachment Content-Type Size
config.log.gz application/octet-stream 12.3 KB
config.status.gz application/octet-stream 10.8 KB

Browse pgsql-ports by date

  From Date Subject
Next Message Chris Langlois 2004-02-11 18:03:19 Re: pgsql-7.4.1 build on darwin-x86
Previous Message Tom Lane 2004-02-11 04:40:03 Re: pgsql-7.4.1 build on darwin-x86