Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Old CPAN modules with sv_undef

by tall_man (Parson)
on Jan 15, 2003 at 17:20 UTC ( #227161=perlquestion: print w/replies, xml ) Need Help??
tall_man has asked for the wisdom of the Perl Monks concerning the following question:

Dear Wise Monks,

I frequently run into errors like the one below when I try to install old CPAN modules with C extensions.

IO.xs: In function `XS_Tk__IO_read': IO.xs:258: `sv_undef' undeclared (first use in this function)
I have to go into the code and provide definitions by hand such as:
#define sv_undef PL_sv_undef

I've seen a portability header file called ppport.h included with a few CPAN modules such as XML::LibXML, but most older modules don't use it.

Is there something I could set up (in the CPAN module config file or elsewhere) to solve this problem in an easier way? Thanks.

Replies are listed 'Best First'.
Re: Old CPAN modules with sv_undef
by Fletch (Chancellor) on Jan 15, 2003 at 17:39 UTC
      Thanks for the pointer, Fletch. That's the kind of thing I was looking for. Here is a way to set it for, for those that don't know.
      perl -MCPAN -e shell cpan> o conf makepl_arg "POLLUTE=1"
Re: Old CPAN modules with sv_undef
by tall_man (Parson) on Jan 15, 2003 at 21:15 UTC
    One more point about how well "POLLUTE=1" is documented: not well at all.

    Places where it ought to be mentioned, and it isn't: the ExtUtils::MakeMaker man page, and the perlmodinstall documentation.

    Places where it is mentioned: the ExtUtils::MakeMaker pod file, and the perldelta documentation.

    It is also in the script of CPAN, with the very minimal note: "POLLUTE=1 increasing backwards compatibility".

    Update: added more links to documentation.

      Don't forget the perl motto: patches welcome.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://227161]
Approved by adrianh
Front-paged by htoug
[Discipulus]: sure! probably the last chance to choice my holidays, 3 weeks

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2018-06-25 18:25 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (128 votes). Check out past polls.