Thread

  1. Perl 5.6.0

    ohp@pyrenet.fr — 2000-05-24T12:45:02Z

    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)
    
    
    
  2. Re: Perl 5.6.0

    Trond Eivind Glomsrød <teg@redhat.com> — 2000-05-24T13:39:49Z

    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.
    
    
  3. Re: Perl 5.6.0

    Matthias Urlichs <smurf@noris.de> — 2000-05-24T14:15:54Z

    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
    
    
  4. Re: Perl 5.6.0

    Tom Lane <tgl@sss.pgh.pa.us> — 2000-05-24T15:18:29Z

    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
    
    
  5. Re: Perl 5.6.0

    ohp@pyrenet.fr — 2000-05-28T17:01:57Z

    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)