Обсуждение: PostgreSQL 9.2.4 installation issue with RedHat 6.4

Поиск
Список
Период
Сортировка

PostgreSQL 9.2.4 installation issue with RedHat 6.4

От
irrusappan
Дата:
Hi,

I'm trying to install PostgreSQL 9.2.4 (32 bit) source in Redhat6.4
platform.
I have no issue in ./configure, however it failed in making source using
gmake.Is there any compatibility issue b/w Postgresql 9.2.4 and Redhat 6.4
or can you please gimme any suggestion to resolve the issue.

here is the gmake error msg:

heaptuple.c: In function âheap_compute_data_sizeâ:
heaptuple.c:103: warning: cast to pointer from integer of different size
heaptuple.c:103: warning: cast to pointer from integer of different size
heaptuple.c:109: warning: cast to pointer from integer of different size
heaptuple.c:113: warning: cast to pointer from integer of different size
heaptuple.c:115: warning: cast to pointer from integer of different size
heaptuple.c:115: warning: cast to pointer from integer of different size
heaptuple.c:115: warning: cast to pointer from integer of different size
heaptuple.c:115: warning: cast to pointer from integer of different size
heaptuple.c:115: warning: cast to pointer from integer of different size
heaptuple.c:115: warning: cast to pointer from integer of different size
heaptuple.c: In function âheap_fill_tupleâ:
heaptuple.c:194: warning: cast from pointer to integer of different size
heaptuple.c:194: warning: cast from pointer to integer of different size
heaptuple.c:194: warning: cast from pointer to integer of different size
heaptuple.c:194: warning: cast from pointer to integer of different size
heaptuple.c:194: warning: cast to pointer from integer of different size
heaptuple.c:195: error: duplicate case value
heaptuple.c:195: error: previously used here
heaptuple.c:201: warning: cast to pointer from integer of different size
heaptuple.c:228: warning: cast from pointer to integer of different size
heaptuple.c:228: warning: cast from pointer to integer of different size
heaptuple.c:228: warning: cast from pointer to integer of different size
heaptuple.c:228: warning: cast from pointer to integer of different size
heaptuple.c:228: warning: cast to pointer from integer of different size
heaptuple.c:239: warning: cast to pointer from integer of different size
heaptuple.c:240: warning: cast to pointer from integer of different size
heaptuple.c:245: warning: cast from pointer to integer of different size
heaptuple.c:245: warning: cast from pointer to integer of different size
heaptuple.c:245: warning: cast from pointer to integer of different size
heaptuple.c:245: warning: cast from pointer to integer of different size
heaptuple.c:245: warning: cast to pointer from integer of different size
heaptuple.c:248: warning: cast to pointer from integer of different size
heaptuple.c: In function ânocachegetattrâ:
heaptuple.c:384: warning: cast from pointer to integer of different size
heaptuple.c:510: warning: cast from pointer to integer of different size
heaptuple.c: In function âheap_getsysattrâ:
heaptuple.c:536: warning: cast from pointer to integer of different size
heaptuple.c: In function âheap_form_tupleâ:
heaptuple.c:666: warning: cast to pointer from integer of different size
heaptuple.c: In function âheap_deform_tupleâ:
heaptuple.c:956: warning: cast from pointer to integer of different size
heaptuple.c: In function âslot_deform_tupleâ:
heaptuple.c:1105: warning: cast from pointer to integer of different size
heaptuple.c: In function âheap_form_minimal_tupleâ:
heaptuple.c:1420: warning: cast to pointer from integer of different size
gmake[4]: *** [heaptuple.o] Error 1
gmake[4]: Leaving directory
`/home/e326097/postgresql-9.2.4/src/backend/access/c
gmake[3]: *** [common-recursive] Error 2
gmake[3]: Leaving directory
`/home/e326097/postgresql-9.2.4/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory `/home/e326097/postgresql-9.2.4/src/backend'
gmake[1]: *** [all-backend-recurse] Error 2
gmake[1]: Leaving directory `/home/e326097/postgresql-9.2.4/src'
gmake: *** [all-src-recurse] Error 2




--
View this message in context:
http://postgresql.1045698.n5.nabble.com/PostgreSQL-9-2-4-installation-issue-with-RedHat-6-4-tp5806783.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


Re: PostgreSQL 9.2.4 installation issue with RedHat 6.4

От
Tom Lane
Дата:
irrusappan <irrusappan.p@tcs.com> writes:
> I'm trying to install PostgreSQL 9.2.4 (32 bit) source in Redhat6.4
> platform.
> I have no issue in ./configure, however it failed in making source using
> gmake.Is there any compatibility issue b/w Postgresql 9.2.4 and Redhat 6.4
> or can you please gimme any suggestion to resolve the issue.

The most reasonable guess from this bit:

> heaptuple.c:195: error: duplicate case value
> heaptuple.c:195: error: previously used here

is that sizeof(Datum) == sizeof(int32), as expected in a 32-bit build,
but yet tupmacs.h saw SIZEOF_DATUM == 8 and so we're trying to compile
the 64-bit version of store_att_byval().  All those warnings look like
there's something wrong about the Datum-size configuration, too.

What that suggests is that you're wrong about having "no issue in
./configure".  Maybe you previously configured for a 64-bit build
and forgot to reconfigure for 32-bit?  Or, if you're trying to do
a 32-bit build on a machine that's natively 64-bit, you did not
give the right compiler flags to configure so that it made its
decisions based on testing 64-bit behavior.

Redo the configure and make sure it reports 32-bit-appropriate values
for sizeof(long) and related tests.  *Don't* insert flags like -m32
post-configure: that has to be in the CFLAGS that configure sees.

            regards, tom lane