in reply to Re^5: XS module build not working for Perl 5.8
in thread XS module build not working for Perl 5.8

I build them the usual way (I think). I run "h2xs -A -n MODULE_NAME". You have to make several edits to the files in the module to make them C++ compatible. This includes adding an XSOPT => '-C++' line to Makefile.PL. So the answer to the second question is that I am using MakeMaker, I just have to make a few changes to Makefile.PL. There is a good summary of the processs here: http://www.johnkeiser.com/perl-xs-c++.html I have tried to build my own Perl binary but I am having considerable problems. Let me run this by you and see what you think though ... in the past when this worked, I compiled using gcc. But for some unknown reason, gcc is broken at my site. So I have been using Sun's CC compiler instead. I wonder if this isn't the source of my problem?
  • Comment on Re^6: XS module build not working for Perl 5.8

Replies are listed 'Best First'.
Re^7: XS module build not working for Perl 5.8
by syphilis (Archbishop) on Aug 22, 2006 at 11:42 UTC
    Ok ... the module built fine with perl 5.6. So if you take the exact same source that worked with 5.6 and try to build with perl 5.8, it fails ... right ? (There are exceptions, but you would generally expect that source code that compiles with 5.6 would also compile with 5.8.)

    So I have been using Sun's CC compiler instead. I wonder if this isn't the source of my problem?

    That could be the case (especially if 'perl -V:cc' returns "cc='gcc';"). What does 'perl -V:cc' return ?

    Cheers,
    Rob