AIX Postgres Compile Error

AIX Postgres Compile Error

am 15.04.2010 09:47:39 von thornef

This is a multi-part message in MIME format.

------_=_NextPart_001_01CADC6F.EC614C21
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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/re entr.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=3D/usr/local/pgsql837-64-perl --with-perl
--with-pgport=3D5400 --enable-thread-safety --enable-integer-datetimes
CC=3D'gcc -maix64' LDFLAGS=3D-'Wl,-bbigtoc'

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

Thanks
Francis

___________________________________________________=20

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

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

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


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
__________________________________________________


------_=_NextPart_001_01CADC6F.EC614C21
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable






AIX Postgres Compile Error




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,     =
;            &n=
bsp;            =
;            &n=
bsp;            =
;            &n=
bsp;  



      &n=
bsp;          from /merlin/per=
l5.10.1/lib/5.10.1/aix-thread-multi-64all/CORE/



perl.h:3420,    &n=
bsp;            =
;            &n=
bsp;            =
;            &n=
bsp;            =
;



      &n=
bsp;          from plperl.h:31=
,            &n=
bsp;            =
;            &n=
bsp;       



      &n=
bsp;          from plperl.c:34=
:            &n=
bsp;            =
;            &n=
bsp;       



/merlin/perl5.10.1/lib/5.10.1/aix-thre=
ad-multi-64all/CORE/reentr.h:780: error: f



ield '_srandom_struct' has incomplete =
type            =
;            &n=
bsp;            =
;



gmake[3]: *** [plperl.o] Error 1 =
            &nb=
sp;            =
            &nb=
sp;        



gmake[3]: Leaving directory `/merlin/l=
en-files/postgres/postgres82-83/postgresql



-8.3.7/src/pl/plperl'   =
;            &n=
bsp;            =
;            &n=
bsp;            =
;     



gmake[2]: *** [all] Error 1  =
;            &n=
bsp;            =
;            &n=
bsp;            =
;



gmake[2]: Leaving directory `/merlin/l=
en-files/postgres/postgres82-83/postgresql



-8.3.7/src/pl'    =
            &nb=
sp;            =
            &nb=
sp;            =
           
<=
/I>


gmake[1]: *** [all] Error 2  =
;            &n=
bsp;            =
;            &n=
bsp;            =
;



gmake[1]: Leaving directory `/merlin/l=
en-files/postgres/postgres82-83/postgresql



-8.3.7/src'    &nb=
sp;            =
            &nb=
sp;            =
            &nb=
sp;            =
 



gmake: *** [all] Error 2  &n=
bsp;            =
;            &n=
bsp;            =
;            &n=
bsp;  



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



Perl is installed and working with out iss=
ue on this machine and if I take the -perl option out of the compile switch=
es it installs fine.  Perl was compiled with gcc.



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



./configure --prefix=3D/usr/local/pgsql837=
-64-perl --with-perl --with-pgport=3D5400 --enable-thread-safety --enable-i=
nteger-datetimes CC=3D'gcc -maix64' LDFLAGS=3D-'Wl,-bbigtoc'



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



Thanks


Francis     &nbs=
p;       





___________________________________________________=20



This email is intended for the named recipient. The information conta=
ined=20

in it is confidential. You should not copy it for any purposes, nor=
=20

disclose its contents to any other party. If you received this email=
=20

in error, please notify the sender immediately via email, and delete

it from your computer.=20



Any views or opinions presented are solely those of the author and do=
not=20

necessarily represent those of the company.=20



PCI Compliancy: Please note, we do not send or wish to receive bankin=
g,

credit or debit card information by email or any other form of =


communication. =20= 20 =
=20=


=20=
=20=
=20

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

__________________________________________________


------_=_NextPart_001_01CADC6F.EC614C21--

Re: AIX Postgres Compile Error

am 15.04.2010 16:38:25 von Tom Lane

"Thorne, Francis" 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/re entr.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

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin