Re: perl5 interface won't compile

From: Marc Lehmann <pcg(at)goof(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Marc Lehmann <pcg(at)goof(dot)com>, pgsql-bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: perl5 interface won't compile
Date: 2000-04-01 19:46:57
Message-ID: 20000401214657.P3163@cerebro.laendle
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Sat, Mar 25, 2000 at 11:49:09AM -0500, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> compile against 5.005_03 --- without options --- and AFAICT that is
> still considered the current stable release of Perl. I'm pretty

5.6 is out ;) Wether that is considered stable is another question, of
course ;)

> > using
> > perl Makefile.PL POLLUTE=1
> > which will enable some kind of compatibility mode.
>
> Interesting. I could not find anything about POLLUTE at www.perl.com.
> What does it do, and will it cause problems on pre-5.005 perls?

Apart from warnings it should work. What is does it to enable commonly used
symbols to eb available under the old names, i.e. sv_undef instead of
PL_sv_undef, thereby "polluting" your namespace.

I have no diea where it is documentd ;)

> This looks like it could be the Right Thing To Do. Anyone have time to
> make it happen (and perhaps even access to a few different perl versions

I don't, but that module is basiclly a header file. Just rename it to
somethign else (e.g. pgppport.h) and _run_ it against the interface files:

perl -x pgppport.h *.c *.h *.xs foo/*.c [etc]

It will tell you about most things that need to be fixed.

--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg(at)opengroup(dot)org |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2000-04-02 04:33:28 Re: backend crash
Previous Message werner 2000-04-01 19:31:50 --enable-locale doesn't work