Re: AIX Postgres Compile Error

Lists: pgsql-admin
From: "Thorne, Francis" <thornef(at)cromwell(dot)co(dot)uk>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: AIX Postgres Compile Error
Date: 2010-04-15 07:47:39
Message-ID: 81976671721DF04B9DCA6ECD87941A401F7CD6BD@roundway.Cromwell-tools.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Hi All,

I am trying to compile Postgres on an AIX machine but am getting the
following error through the 'make' process

In file included from
/merlin/perl5.10.1/lib/5.10.1/aix-thread-multi-64all/CORE/
op.h:633,

from
/merlin/perl5.10.1/lib/5.10.1/aix-thread-multi-64all/CORE/
perl.h:3420,

from plperl.h:31,

from plperl.c:34:

/merlin/perl5.10.1/lib/5.10.1/aix-thread-multi-64all/CORE/reentr.h:780:
error: f
ield '_srandom_struct' has incomplete type

gmake[3]: *** [plperl.o] Error 1

gmake[3]: Leaving directory
`/merlin/len-files/postgres/postgres82-83/postgresql
-8.3.7/src/pl/plperl'

gmake[2]: *** [all] Error 1

gmake[2]: Leaving directory
`/merlin/len-files/postgres/postgres82-83/postgresql
-8.3.7/src/pl'

gmake[1]: *** [all] Error 2

gmake[1]: Leaving directory
`/merlin/len-files/postgres/postgres82-83/postgresql
-8.3.7/src'

gmake: *** [all] Error 2

make: 1254-004 The error code from the last command is 2.

Perl is installed and working with out issue on this machine and if I
take the -perl option out of the compile switches it installs fine.
Perl was compiled with gcc.

The compile options that I'm using are as follows :

./configure --prefix=/usr/local/pgsql837-64-perl --with-perl
--with-pgport=5400 --enable-thread-safety --enable-integer-datetimes
CC='gcc -maix64' LDFLAGS=-'Wl,-bbigtoc'

Any suggestions around this problem would be greatly appreciated, I'm
trying to complile Postgres 8.3.7

Thanks
Francis

___________________________________________________

This email is intended for the named recipient. The information contained
in it is confidential. You should not copy it for any purposes, nor
disclose its contents to any other party. If you received this email
in error, please notify the sender immediately via email, and delete it from
your computer.

Any views or opinions presented are solely those of the author and do not
necessarily represent those of the company.

PCI Compliancy: Please note, we do not send or wish to receive banking, credit
or debit card information by email or any other form of communication.

Cromwell Tools Limited, PO Box 14, 65 Chartwell Drive
Wigston, Leicester LE18 1AT. Tel 0116 2888000
Registered in England and Wales, Reg No 00986161
VAT GB 115 5713 87 900
__________________________________________________


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Thorne, Francis" <thornef(at)cromwell(dot)co(dot)uk>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: AIX Postgres Compile Error
Date: 2010-04-15 14:38:25
Message-ID: 1790.1271342305@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

"Thorne, Francis" <thornef(at)cromwell(dot)co(dot)uk> writes:
> I am trying to compile Postgres on an AIX machine but am getting the
> following error through the 'make' process

> In file included from
> /merlin/perl5.10.1/lib/5.10.1/aix-thread-multi-64all/CORE/
> op.h:633,
> from
> /merlin/perl5.10.1/lib/5.10.1/aix-thread-multi-64all/CORE/
> perl.h:3420,
> from plperl.h:31,
> from plperl.c:34:
> /merlin/perl5.10.1/lib/5.10.1/aix-thread-multi-64all/CORE/reentr.h:780:
> error: field '_srandom_struct' has incomplete type

Hmm. You might try pulling the latest version of ppport.h from our CVS:
http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/ppport.h
to see if that fixes it. I wouldn't really expect what's in 8.3.7
to work with such a new version of Perl. If that doesn't do it, try
using a 5.8.x Perl release.

regards, tom lane