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

Re: Solaris SPARC - Sun compiler 5.5 - 64 bit

From: "Clark, Andrew" <Andrew(dot)Clark(at)fnf(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Peter Eisentraut" <peter_e(at)gmx(dot)net>,<pgsql-ports(at)postgresql(dot)org>
Subject: Re: Solaris SPARC - Sun compiler 5.5 - 64 bit
Date: 2005-07-29 15:20:04
Message-ID: 74825F195D477C4995425A1313D646B114A8C7@smbfisyyz01.FNFIS.COM (view raw or flat)
Thread:
Lists: pgsql-ports
Tom,

Well that definitely did something, but now I get a different error:

----------------

/usr1/clarka/bin/gmake -C backend/utils/mb/conversion_procs all
gmake[3]: Entering directory
`/usr1/clarka/src/postgresql-8.0.2/src/backend/utils/mb/conversion_procs
'
gmake[4]: Entering directory
`/usr1/clarka/src/postgresql-8.0.2/src/backend/utils/mb/conversion_procs
/ascii_and_mic'
cc -Xa -v -xtarget=ultra2 -xarch=v9a -xchip=ultra2 -DSUNOS4_CC -KPIC
-I../../../../../../src/include   -c -o ascii_and_mic.o ascii_and_mic.c
"ascii_and_mic.c", line 38: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"ascii_and_mic.c", line 39: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"ascii_and_mic.c", line 54: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"ascii_and_mic.c", line 55: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
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
gmake[4]: *** [libascii_and_mic.so.0.0] Error 1
gmake[4]: Leaving directory
`/usr1/clarka/src/postgresql-8.0.2/src/backend/utils/mb/conversion_procs
/ascii_and_mic'

----------------

The command that's failing doesn't have the -x flags, so I tried the
following command manually:

cc -Xa -v -xtarget=ultra2 -xarch=v9a -xchip=ultra2 -G -h
libascii_and_mic.so.0  ascii_and_mic.o -L../../../../../../src/port   -o
libascii_and_mic.so.0.0

And it worked...

So, I specified the -x flags in LDFLAG in my configure command. But I
still get the above error and I the LDFLAG isn't being used.

Here is my configure command:

./configure \
CFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2 -DSUNOS4_CC" \
LDFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes


Thanks,
Andrew


-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us] 
Sent: July 29, 2005 10:37 AM
To: Clark, Andrew
Cc: Peter Eisentraut; pgsql-ports(at)postgresql(dot)org
Subject: Re: [PORTS] Solaris SPARC - Sun compiler 5.5 - 64 bit 

"Clark, Andrew" <Andrew(dot)Clark(at)fnf(dot)com> writes:
> I'm using PostgreSQL 8.0.2 on Solaris 8.

Is configure using the solaris template, or the sunos4 one?
If the former, does changing
  CFLAGS="-v"			# -v is like gcc -Wall
to
  CFLAGS="-v -DSUNOS4_CC"	# -v is like gcc -Wall
fix it?  (Note you need to re-configure to make template changes have
any effect.)

			regards, tom lane



Responses

pgsql-ports by date

Next:From: Tom LaneDate: 2005-07-29 15:25:35
Subject: Re: Solaris SPARC - Sun compiler 5.5 - 64 bit
Previous:From: Tom LaneDate: 2005-07-29 14:37:19
Subject: Re: Solaris SPARC - Sun compiler 5.5 - 64 bit

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