Hi all,

I've tried to compile interfaces/perl5 with perl-5.6.0.

It fails because the perl symbols sv-undef and na have been renamed to
PL_sv_undef and PL_na;

The obvious trick was to patch Pg.xs.

Surely, Makefile.PL can take care of that and name those two symbols
according to the perl version.

Now, not being a perl expert, I just warn you that you may go into a
problem (and FAQ's) sooner or later..

Regards,

-- 
Olivier PRENANT         	Tel:	+33-5-61-50-97-00 (Work)
Quartier d'Harraud Turrou           +33-5-61-50-97-01 (Fax)
31190 AUTERIVE                      +33-6-07-63-80-64 (GSM)
FRANCE                      Email: ohp@pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)


Wed, 24 May 2000 14:45:02 +0200 (MET DST)
Olivier PRENANT <ohp@pyrenet.fr>
Perl 5.6.0
Olivier PRENANT <ohp@pyrenet.fr> writes:

> It fails because the perl symbols sv-undef and na have been renamed to
> PL_sv_undef and PL_na;

FWIW, the postgresql in Red Hat Rawhide is built with perl 5.6.0
and didn't need any patches to make it build.

-- 
Trond Eivind Glomsrï¿½d
Red Hat, Inc.

24 May 2000 09:39:49 -0400
teg@redhat.com (Trond Eivind=?iso-8859-1?q?_Glomsr=F8d?=)
Re: Perl 5.6.0
Hi,

Trond Eivind Glomsrï¿½d:
> Olivier PRENANT <ohp@pyrenet.fr> writes:
> 
> > It fails because the perl symbols sv-undef and na have been renamed to
> > PL_sv_undef and PL_na;
> 
> FWIW, the postgresql in Red Hat Rawhide is built with perl 5.6.0
> and didn't need any patches to make it build.
> 
... which is because the POLLUTE=1 flag is given to Makefile.PL script,
in src/pl/Makefile.

This is usually what you do when you encounter this kind of error.

-- 
Matthias Urlichs  |  noris network GmbH   |   smurf@noris.de  |  ICQ: 20193661
The quote was selected randomly. Really.       |        http://smurf.noris.de/
-- 
To the memory of the man, first in war, first in peace, and first in the
hearts of his country.
                                        -- General Henry Lee

Wed, 24 May 2000 16:15:54 +0200
"Matthias Urlichs" <smurf@noris.de>
Re: Perl 5.6.0
teg@redhat.com (Trond Eivind=?iso-8859-1?q?_Glomsr=F8d?=) writes:
> Olivier PRENANT <ohp@pyrenet.fr> writes:
>> It fails because the perl symbols sv-undef and na have been renamed to
>> PL_sv_undef and PL_na;

> FWIW, the postgresql in Red Hat Rawhide is built with perl 5.6.0
> and didn't need any patches to make it build.

The stopgap solution is to say
	perl Makefile.PL POLLUTE=1
(in the interfaces/perl5 directory) and then build as usual.  This
should happen automatically if you are using Postgres 7.0, but you
could do it manually if you have an older release.

There is a cleaner long-term solution but it involves more work...

			regards, tom lane

Wed, 24 May 2000 11:18:29 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: Perl 5.6.0 
Thanks to all who replied to my mail.

Now that I switched to 7.0, you were right it works...

Again, thank you al

Regards
On Wed, 24 May 2000, Tom Lane wrote:

> teg@redhat.com (Trond Eivind=?iso-8859-1?q?_Glomsr=F8d?=) writes:
> > Olivier PRENANT <ohp@pyrenet.fr> writes:
> >> It fails because the perl symbols sv-undef and na have been renamed to
> >> PL_sv_undef and PL_na;
> 
> > FWIW, the postgresql in Red Hat Rawhide is built with perl 5.6.0
> > and didn't need any patches to make it build.
> 
> The stopgap solution is to say
> 	perl Makefile.PL POLLUTE=1
> (in the interfaces/perl5 directory) and then build as usual.  This
> should happen automatically if you are using Postgres 7.0, but you
> could do it manually if you have an older release.
> 
> There is a cleaner long-term solution but it involves more work...
> 
> 			regards, tom lane
> 

-- 
Olivier PRENANT         	Tel:	+33-5-61-50-97-00 (Work)
Quartier d'Harraud Turrou           +33-5-61-50-97-01 (Fax)
31190 AUTERIVE                      +33-6-07-63-80-64 (GSM)
FRANCE                      Email: ohp@pyrenet.fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)


Sun, 28 May 2000 19:01:57 +0200 (MET DST)
Olivier PRENANT <ohp@pyrenet.fr>
Re: Perl 5.6.0 