Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Keep It Simple, Stupid
 
PerlMonks

Perl 5.10 and Math::Pari

by hubb0r (Pilgrim)
 | Log in | Create a new user | The Monastery Gates | Super Search | 
 | Seekers of Perl Wisdom | Meditations | PerlMonks Discussion | 
 | Obfuscation | Reviews | Cool Uses For Perl | Perl News | Q&A | Tutorials | 
 | Poetry | Recent Threads | Newest Nodes | Donate | What's New | 

on Jan 22, 2008 at 22:05 UTC ( #663706=perlquestion: print w/ replies, xml ) Need Help??
hubb0r has asked for the wisdom of the Perl Monks concerning the following question:

Comment on Perl 5.10 and Math::Pari
Re: Perl 5.10 and Math::Pari
by Khen1950fx (Parson) on Jan 23, 2008 at 01:20 UTC
    I've been trying to install Math::Pari for the last 2 hours. It finally installed when I used:

    perl Makefile.PL machine=none
    make install

      I'm curious, does it actually work correctly?
Re: Perl 5.10 and Math::Pari
by syphilis (Monsignor) on Jan 23, 2008 at 01:29 UTC
    Are there alternatives to the Math::Pari module that can be dropped in to replace it from the perspective of the other Crypt modules?

    If there are alternatives then they should be mentioned in the documentation of the modules.

    Precisely which modules are these "other Crypt modules" ?

    Cheers,
    Rob
      I've updated the main post to reflect a few of the modules with a Math::Pari dependency.
        Couldn't spot any evidence that Crypt::DSA needs Math::Pari. But it certainly looks like the others that you've specified do.

        Cheers,
        Rob
Re: Perl 5.10 and Math::Pari
by dcd (Scribe) on Jan 24, 2008 at 00:07 UTC
    Did you also see this post from Nicholas Clark. I don't recall if I followed up with his suggestion there. I do know that I'm still interested in the solution, but have been sidetracked for a while. It is nice to see the subject raised again.
      Yes, I saw that one. Unfortunately I have no idea about what to do regarding his suggestion. The c code in the Perl guts is beyond my abilities, though I did look in the source at the code he mentioned.

      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.

        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

Login:
Password
remember me
What's my password?
Create A New User

Node Status?
node history
Node Type: perlquestion [id://663706]
Approved by kyle
Front-paged by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (25)
BrowserUk
Corion
GrandFather
Your Mother
toolic
holli
Gavin
atcroft
kennethk
MidLifeXis
thezip
Eyck
pileofrogs
clinton
socketdave
lima1
Utilitarian
lostjimmy
mje
ssandv
RyuMaou
MikeDexter
smile4me
im2
plieberg
As of 2010-02-09 20:10 GMT
Sections?
The Monastery Gates
Seekers of Perl Wisdom
Meditations
PerlMonks Discussion
Categorized Q&A
Tutorials
Obfuscated Code
Perl Poetry
Cool Uses for Perl
Perl News
Information?
PerlMonks FAQ
Guide to the Monastery
What's New at PerlMonks
Voting/Experience System
Tutorials
Reviews
Library
Perl FAQs
Other Info Sources
Find Nodes?
Nodes You Wrote
Super Search
List Nodes By Users
Newest Nodes
Recently Active Threads
Selected Best Nodes
Best Nodes
Worst Nodes
Saints in our Book
Leftovers?
The St. Larry Wall Shrine
Offering Plate
Awards
Craft
Snippets Section
Code Catacombs
Quests
Editor Requests
Buy PerlMonks Gear
PerlMonks Merchandise
Planet Perl
Perlsphere
Use Perl
Perl.com
Perl 5 Wiki
Perl Jobs
Perl Mongers
Perl Directory
Perl documentation
CPAN
Random Node
Voting Booth?

What level of existential comfort do you require?

Palace
Executive suite at the best hotel
Regular hotel in a decent part of town
Motel
Boarding house
Sleeping Bag on Couch in Basement
Any port in a storm
Camping under the freeway overpass
Jail
Other

Results (279 votes), past polls