Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Text-Metaphone CPAN distribution.

Report information
The Basics
Id: 34448
Status: resolved
Priority: 0/
Queue: Text-Metaphone

People
Owner: Nobody in particular
Requestors: tvmaly [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 2.00
Fixed in: (no value)



Subject: Fails to install on strawberry perl 5.8
The process fails to install on windows strawberry perl. There is a critical error that occurs in the testing. here is the output Running make test C:\strawberry-perl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harnes s(0, 'blib\lib', 'blib\arch')" t/*.t t/metaphone....ok 1/0Free to wrong pool 3d4460 not f0110 at t/metaphone.t line 2 9. t/metaphone....dubious Test returned status 5 (wstat 1280, 0x500) FAILED--1 test script could be run, alas--no output ever seen dmake.EXE: Error code 133, while making 'test_dynamic' C:\strawberry-perl\dmake\bin\dmake.EXE test -- NOT OK Running make install make test had returned bad status, won't install without force Failed during this command: MSCHWERN/Text-Metaphone-2.00.tar.gz : make_test NO Show quoted text
cpan>
On Wed Mar 26 12:31:48 2008, tvmaly@gmail.com wrote: Show quoted text
> The process fails to install on windows strawberry perl. There is a > critical error that occurs in the testing. here is the output > > Running make test > C:\strawberry-perl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harnes > s(0, 'blib\lib', 'blib\arch')" t/*.t > t/metaphone....ok 1/0Free to wrong pool 3d4460 not f0110 at
A memory allocation mistake was fixed in 2.01. Please see if that solves the problem.
On Fr. 10. Okt. 2008, 09:13:35, MSCHWERN wrote: Show quoted text
> On Wed Mar 26 12:31:48 2008, tvmaly@gmail.com wrote:
> > The process fails to install on windows strawberry perl. There is a > > critical error that occurs in the testing. here is the output > > > > Running make test > > C:\strawberry-perl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > > "test_harnes > > s(0, 'blib\lib', 'blib\arch')" t/*.t > > t/metaphone....ok 1/0Free to wrong pool 3d4460 not f0110 at
> > A memory allocation mistake was fixed in 2.01. Please see if that > solves the problem.
2.01 doesn't work for me on Strawberry Perl 5.10.0.2. What _did_ work however was replacing free(phoned_word); with FreeMemory(phoned_word); or inserting #undef free; before free(phoned_word); Both methods where suggested on Perlmonks in the following thread: http://www.perlmonks.org/?node_id=717224
I took their advice and switched to using FreeMemory(). I don't really understand what's wrong with just using free(). I also tried to avoid copying the char * and instead dropping it directly into an SV but couldn't figure out how to make that not blow up. Please try http://svn.schwern.org/repos/CPAN/Text-Metaphone/trunk/
On Mi. 15. Okt. 2008, 12:35:09, MSCHWERN wrote: Show quoted text
Checked out your latest Version and there seems to be another problem now. When i try to compile the module i get the following error: D:\meta-test>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Text::Metaphone D:\meta-test>dmake cp Metaphone.pm blib\lib\Text\Metaphone.pm gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_ IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"20 081015\" -DXS_VERSION=\"20081015\" "-IC:\strawberry\perl\lib\CORE" my_ memory.c gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_ IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"20 081015\" -DXS_VERSION=\"20081015\" "-IC:\strawberry\perl\lib\CORE" met aphone_c.c C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap Metaphone.xs Show quoted text
> Metaph
one.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv Metaphone.x sc Metaphone.c gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_ IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"20 081015\" -DXS_VERSION=\"20081015\" "-IC:\strawberry\perl\lib\CORE" Met aphone.c In file included from Metaphone.xs:6: my_memory.h:75: error: syntax error before '(' token my_memory.h:75: error: conflicting types for 'memset' my_memory.h:75: error: conflicting types for 'memset' my_memory.h:75: error: syntax error before "size" dmake: Error code 129, while making 'Metaphone.o' Interestingly this also only occurs on Windows, on Debian this module compiles just fine. I hate Windows. If i remove the #include "my_memory.h" from the Metaphone.xs the module runs through make and make test just fine though.
Hmm, FillMemory() is declared in the header file but I never defined it in the C code. It's not used so I just removed it. Try it now please.
On Do. 16. Okt. 2008, 15:37:30, MSCHWERN wrote: Show quoted text
> Hmm, FillMemory() is declared in the header file but I never defined it > in the C code. It's not used so I just removed it. Try it now please.
All tests successful. :-)
Subject: Re: [rt.cpan.org #34448] Fails to install on strawberry perl 5.8
Date: Fri, 17 Oct 2008 01:31:29 -0700
To: bug-Text-Metaphone [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Juergen Peters via RT wrote: Show quoted text
> On Do. 16. Okt. 2008, 15:37:30, MSCHWERN wrote:
>> Hmm, FillMemory() is declared in the header file but I never defined it >> in the C code. It's not used so I just removed it. Try it now please.
> > All tests successful.
Smashing. -- 87. If the thought of something makes me giggle for longer than 15 seconds, I am to assume that I am not allowed to do it. -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army http://skippyslist.com/list/
New version on its way to CPAN now.