Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am working on a product which up to now has worked fine on anything later than 5.005_03. However, we have now added some of out own XS module stuff to it. It all works fine on our linux box with perl 5.6.1. However, running the same h2xs stuff on our HP11 box (which still runs 5.00503) gives me a failure in the main <module>.pm file created, saying that it cannot find warnings.pm (which it can't - it seems to be a 5.6.1 file). If necessary, we'll just make the restruction that you now need 5.6.1 or greater to run the product. However, what I really need is someone to confirm that you can't do an h2xs on 5.005, as obviously I'd like to keep working under the old perl if possible. Any ideas? Thanks Martin GK

Replies are listed 'Best First'.
Re: Perl XS on 5.005_03
by liz (Monsignor) on Sep 12, 2003 at 15:22 UTC
    Here you can find a replacement for warnings.pm.

    But to my recollection, 5.005_03 already had a "h2xs", and since warnings.pm wasn't available then, it would presumably not referred to that. So I think there may be some type of mixup going on here.

    Liz

      h2xs goes back to 1994 or so... :-)

      I think the OP took a module source created with h2xs on a perl 5.6.1 system and moved it to an older system - hence the problems...

      Michael

Re: Perl XS on 5.005_03
by mpeppler (Vicar) on Sep 12, 2003 at 15:20 UTC
    warnings.pm was first released in 5.6.1.

    I would start by commenting out the use warnings and see if the rest of module builds. There may be some back-porting of perl internal functions that you'll have to do, depending on how much of the perl C API you've used.

    Michael