Buggy make files for Solaris 9 64bit builds: version 7.4.1 and 7.4.2

From: raymond(dot)siebert(at)mobilcom(dot)de
To: pgsql-ports(at)postgresql(dot)org
Subject: Buggy make files for Solaris 9 64bit builds: version 7.4.1 and 7.4.2
Date: 2004-03-23 16:33:58
Message-ID: OFBC6B5242.7300ED2C-ONC1256E60.0058028D-C1256E60.005B0074@mobilcom.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

The source was downloaded from postgres.org dated Mar 8 01:50.

As already posted on Wed, 11 Feb 2004 14:25:13 +0100 with Postgres 7.4.1 a
64bit build on Solaris 9 fails.
This particular when building shared libs.

Same thing happened for Postgres 7.4.2.
Examining the make log file it appears, that 'CFLAGS' parameter is defined
in top-level Makefile, but not used in some sub-tree makefiles.

Typically it looks like this:
......
/opt/SUNWspro/bin/cc -Xa -xarch=v9 -xildoff -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
/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[3]: *** [libascii_and_mic.so.0.0] Error 1
make[3]: Leaving directory
`/home/POSTGRESQL/postgresql-7.4.2/src/backend/utils/mb/conversion_procs/ascii_and_mic'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/home/POSTGRESQL/postgresql-7.4.2/src/backend/utils/mb/conversion_procs'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/POSTGRESQL/postgresql-7.4.2/src'
make: *** [all] Error 2

Running '/opt/SUNWspro/bin/cc -xarch=v9 -xildoff -Xa -G -h
libascii_and_mic.so.0 ascii_and_mic.o -L../../../../../../src/port -o
libascii_and_mic.so.0.0'
builds correctly.

Listed here are the sections with shared libs to be created where CFLAGS
is ignored:

src/backend/utils/mb/conversion_procs:
libascii_and_mic.so.0.0
libcyrillic_and_mic.so.0.0
libeuc_cn_and_mic.so.0.0
libeuc_jp_and_sjis.so.0.0
libeuc_kr_and_mic.so.0.0
libeuc_tw_and_big5.so.0.0
liblatin2_and_win1250.so.0.0
liblatin_and_mic.so.0.0
libutf8_and_ascii.so.0.0
libutf8_and_big5.so.0.0
libutf8_and_cyrillic.so.0.0
libutf8_and_euc_cn.so.0.0
libutf8_and_euc_jp.so.0.0
libutf8_and_euc_kr.so.0.0
libutf8_and_euc_tw.so.0.0
libutf8_and_gb18030.so.0.0
libutf8_and_gbk.so.0.0
libutf8_and_iso8859.so.0.0
libutf8_and_iso8859_1.so.0.0
libutf8_and_johab.so.0.0
libutf8_and_sjis.so.0.0
libutf8_and_tcvn.so.0.0
libutf8_and_uhc.so.0.0
libutf8_and_win1250.so.0.0
libutf8_and_win1256.so.0.0
libutf8_and_win874.so.0.0

src/interfaces/libpq:
libpq.so.3.1

src/interfaces/ecpg/pgtypeslib:
libpgtypes.so.1.2

src/interfaces/ecpg/ecpglib:
libecpg.so.4.1

src/interfaces/ecpg/compatlib:
libecpg_compat.so.1.1

src/pl/plpgsql/src:
libplpgsql.so.1.0

As I am not in the position to patch make files can someone from porting
team or developer help ?

Has anybody else had this trouble ?

Raymond Siebert

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Alan Stange 2004-03-24 02:57:09 problems compiling on solaris
Previous Message Tom Lane 2004-03-23 14:50:38 Re: help: cross compiling PG7.4.1 on IA64 from IA32