Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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: 

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

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 ascii_and_mic.o 
-L../../../../../../src/port   -o 
ld: fatal: file ascii_and_mic.o: wrong ELF class: ELFCLASS64 
ld: fatal: File processing errors. No output written to 
make[4]: *** [] Error 1 
make[4]: Leaving directory 
make[3]: *** [all] Error 2 
make[3]: Leaving directory 
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. 


Raymond Siebert

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

Ahlmannhallen - Büdelsdorf

Attachment: config.log.gz
Description: application/octet-stream (12.3 KB)
Attachment: config.status.gz
Description: application/octet-stream (10.8 KB)

pgsql-ports by date

Next:From: Chris LangloisDate: 2004-02-11 18:03:19
Subject: Re: pgsql-7.4.1 build on darwin-x86
Previous:From: Tom LaneDate: 2004-02-11 04:40:03
Subject: Re: pgsql-7.4.1 build on darwin-x86

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group