Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Can't install Text::Metaphone with Strawberry Perl

by Anonymous Monk
on Oct 15, 2008 at 14:35 UTC ( [id://717240]=note: print w/replies, xml ) Need Help??


in reply to Re: Can't install Text::Metaphone with Strawberry Perl
in thread Can't install Text::Metaphone with Strawberry Perl

That bug is still open, here's a "fix", in Metaphone.xs, replace
free(phoned_word);
with
FreeMemory(phoned_word);
and all is well

Replies are listed 'Best First'.
Re^3: Can't install Text::Metaphone with Strawberry Perl
by Taulmarill (Deacon) on Oct 15, 2008 at 15:03 UTC
    This also seems to work. Would anyone care to explain this to me (just for my curiosity, i'm not that experienced with XS).

      The metaphone() function returns a C string allocated with the Perl API call NewMemory(), not the system's malloc(). You need to be consistent with the allocation/deallocation functions you use. That's all.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://717240]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found