PL/Perl and Perl 5.8 - Mailing list pgsql-hackers

From Neil Conway
Subject PL/Perl and Perl 5.8
Date
Msg-id 87elaprdn2.fsf@mailbox.samurai.com
Whole thread Raw
Responses Re: PL/Perl and Perl 5.8
Re: PL/Perl and Perl 5.8
List pgsql-hackers
As of current CVS, PL/Perl doesn't seem to compile against Perl 5.8. I
get the following compile error:

gcc -O2 -g -fpic -I. -I/usr/lib/perl/5.8.0/CORE -I../../../src/include   -c -o plperl.o plperl.c -MMD
In file included from /usr/lib/perl/5.8.0/CORE/op.h:480,                from /usr/lib/perl/5.8.0/CORE/perl.h:2209,
         from plperl.c:61:
 
/usr/lib/perl/5.8.0/CORE/reentr.h:602: field `_crypt_struct' has incomplete type
/usr/lib/perl/5.8.0/CORE/reentr.h:747: confused by earlier errors, bailing out
make[3]: *** [plperl.o] Error 1

This is running GCC 3.2 and Perl 5.8.0 on Debian unstable.

There's a thread about a similar topic on p5p:
       http://archive.develooper.com/perl5-porters@perl.org/msg75480.html

The thread suggests a trivial fix: adding -D_GNU_SOURCE to the CFLAGS
for the affected files. I checked, and this gets PL/Perl to compile
correctly. That doesn't seem like the right fix, though. Does anyone
have any comments on how to fix this properly?

Regardless of the solution we choose, I think this needs to be fixed
before 7.3 is released.

Cheers,

Neil

-- 
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: COPY syntax
Next
From: Tom Lane
Date:
Subject: Re: "COPY FROM" recognize \xDD sequence - addition to copy.c