PL/Perl compilation error - Mailing list pgsql-general

From Gilles DAROLD
Subject PL/Perl compilation error
Date
Msg-id 39F569AC.50999EDB@darold.net
Whole thread Raw
In response to Re: PL/Perl compilation error  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: PL/Perl compilation error  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

I have done a little work concerning the famous PL/Perl compilation Error and
also into Interfaces/Perl5.

The confusing POLLUTE option is no more used to see these parts compiled.
I thinks it's now fully compatible with all Perl versions, yes Tom I use PPPort :-)

The way to put it into the distribution package is very simple.

1) Replace the current GNUmakefile in these directories src/interface/perl5 and src/pl/plperl

by those given in the attachment.
2) Copy the lastest version of the ppport.h file into the same directories (latest can be
found
on CPAN) I provide one in the attachment (the latest at this day Version 1.0007)

That done, just compile postgresql exactly as before (with ./configure --with-perl at least).

What I have done is very simple :

    -  cp Devel-PPPort-1.0007/ppport.h postgresql-snapshotsrc/pl/plperl/
    -  cp Devel-PPPort-1.0007/ppport.h postgresql-snapshot/src/interfaces/perl5/

And in the 2 GNUmakefile in the "Makefile: Makefile.PL" section:

    - I have remove the call to the POLLUTE option
    - Added the following lines at the begining of the section:
            $(PERL) -x ppport.h *.c *.h *.xs > ppport.patch
            patch < ppport.patch
            rm ppport.patch

Thanks to Kenneth Albanowski for his PPPort.pm usefull package and to Tom Lane
for his ligth.

Note: the attachment is a tar of all modified and added files in the source tree.

Regards,

Gilles DAROLD

Attachment

pgsql-general by date:

Previous
From: igor
Date:
Subject: Re[2]: Strange query results with dates
Next
From: Holger Klawitter
Date:
Subject: counting groups