Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: Perl 5.10 and Math::Pari

by rafl (Friar)
on Jan 27, 2008 at 15:03 UTC ( #664524=note: print w/replies, xml ) Need Help??

in reply to Re: Perl 5.10 and Math::Pari
in thread Perl 5.10 and Math::Pari

I did what Nickolas suggested. It compiled fine, but failed horribly at runtime with error messages that don't seem to be related to the fix I made. I also tried another way using PERL_MAGIC_ext, but it resulted in the same issues.

So I guess Math::Pari is relying on more <=5.8 behaviour that has changed in 5.10. I wasn't able to figure out what exactly that is though.

Replies are listed 'Best First'.
Re^3: Perl 5.10 and Math::Pari
by buchetc (Initiate) on Feb 14, 2008 at 14:45 UTC
    I've tried it with the following patch:
    1153c1153 < ((CV*)cv)->sv_any->xiv_u.xivu_iv = numargs; /* XXXX Nasty of +us... */ --- > ((CV*)cv)->sv_any->xof_off = numargs; /* XXXX Nasty of us... +*/ 1219c1219 < int numargs = ((CV*)cv)->sv_any->xiv_u.xivu_iv; /* XXXX Nasty + of us... */ --- > int numargs = ((CV*)cv)->sv_any->xof_off; /* XXXX Nasty of us +... */
    It seems to work but increases the 'Nasty' level

      That way it might compile, but it's still using SvPVX and SvIVX on an AV to store internal information. That breaks as those seem to be used by the AV itself in 5.10.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://664524]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-01-21 09:07 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (183 votes). Check out past polls.