Skip Menu |

This queue is for tickets about the Search-Tools CPAN distribution.

Report information
The Basics
Id: 50509
Status: resolved
Priority: 0/
Queue: Search-Tools

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

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



Subject: Search::Tools fails during the make phase.
Date: Wed, 14 Oct 2009 22:20:35 -0400
To: bug-Search-Tools [...] rt.cpan.org
From: Calvin McCutcheon <calvin.mccutcheon [...] gmail.com>
Peter, I am trying to build Search-Tools-0.30 on a Win32 box with Strawberry Perl. The results of C:\strawberry-perl\perl\bin\perl.exe -V Show quoted text
> C:\>C:\strawberry-perl\perl\bin\perl.exe -V > Summary of my perl5 (revision 5 version 8 subversion 8) configuration: > Platform: > osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread > uname='' > config_args='undef' > hint=recommended, useposix=true, d_sigaction=undef > usethreads=define use5005threads=undef useithreads=define > usemultiplicity=define > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT > -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-alias > ing -DPERL_MSVCRT_READFIX', > optimize='-s -O2', > cppflags='-DWIN32' > ccversion='', gccversion='3.4.5', gccosandvers='' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 > d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='g++', ldflags ='-s -L"c:\strawberry-perl\perl\lib\CORE" > -L"c:\strawberry-perl\mingw\lib"' > libpth=c:\strawberry-perl\mingw\lib > libs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool > -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 > -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 > perllibs= -lmsvcrt -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool > -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleau > t32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 > libc=-lmsvcrt, so=dll, useshrplib=yes, libperl=libperl58.a > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' > cccdlflags=' ', lddlflags='-mdll -s > -L"c:\strawberry-perl\perl\lib\CORE" -L"c:\strawberry-perl\mingw\lib"' > > > Characteristics of this binary (from libperl): > Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT > PERL_IMPLICIT_SYS PERL_MALLOC_WRAP > PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES > USE_PERLIO > Built under MSWin32 > Compiled at Aug 27 2006 17:17:50 > @INC: > C:/strawberry-perl/perl/lib > C:/strawberry-perl/perl/site/lib > . > > C:\> >
The results of attempting to install Search::Tools via the command line ( dmake is the version of make which comes with Strawberry Perl): Show quoted text
> C:\build\cpan\build\Search-Tools-0.30>perl Makefile.PL > Checking if your kit is complete... > Looks good > Writing Makefile for Search::Tools > > C:\build\cpan\build\Search-Tools-0.30>dmake > Math::BigInt: couldn't load specified math lib(s), fallback to > Math::BigInt::Calc at C:/strawberry-perl/perl/site/lib/Wi > n32API/File.pm line 20 > cp lib/Search/Tools/HiLiter.pm blib\lib\Search\Tools\HiLiter.pm > cp lib/Search/Tools/TokenList.pm blib\lib\Search\Tools\TokenList.pm > cp lib/Search/Tools/Transliterate.pm blib\lib\Search\Tools\Transliterate.pm > cp lib/Search/Tools/Token.pm blib\lib\Search\Tools\Token.pm > cp lib/Search/Tools/TokenListUtils.pm > blib\lib\Search\Tools\TokenListUtils.pm > cp lib/Search/Tools/QueryParser.pm blib\lib\Search\Tools\QueryParser.pm > cp lib/Search/Tools/RegEx.pm blib\lib\Search\Tools\RegEx.pm > cp lib/Search/Tools/RegExp/Keywords.pm > blib\lib\Search\Tools\RegExp\Keywords.pm > cp lib/Search/Tools/Object.pm blib\lib\Search\Tools\Object.pm > cp lib/Search/Tools/RegExp.pm blib\lib\Search\Tools\RegExp.pm > cp lib/Search/Tools/MethodMaker.pm blib\lib\Search\Tools\MethodMaker.pm > cp lib/Search/Tools/Query.pm blib\lib\Search\Tools\Query.pm > cp lib/Search/Tools/SpellCheck.pm blib\lib\Search\Tools\SpellCheck.pm > cp lib/Search/Tools/RegExp/Keyword.pm > blib\lib\Search\Tools\RegExp\Keyword.pm > cp lib/Search/Tools/UTF8.pm blib\lib\Search\Tools\UTF8.pm > cp lib/Search/Tools/XML.pm blib\lib\Search\Tools\XML.pm > cp lib/Search/Tools/Snipper.pm blib\lib\Search\Tools\Snipper.pm > cp lib/Search/Tools.pm blib\lib\Search\Tools.pm > cp lib/Search/Tools/TokenListPP.pm blib\lib\Search\Tools\TokenListPP.pm > Math::BigInt: couldn't load specified math lib(s), fallback to > Math::BigInt::Calc at C:/strawberry-perl/perl/site/lib/Wi > n32API/File.pm line 20 > cp lib/Search/Tools/HeatMap.pm blib\lib\Search\Tools\HeatMap.pm > cp lib/Search/Tools/TokenPP.pm blib\lib\Search\Tools\TokenPP.pm > cp lib/Search/Tools/Tokenizer.pm blib\lib\Search\Tools\Tokenizer.pm > cp lib/Search/Tools/Keywords.pm blib\lib\Search\Tools\Keywords.pm > C:\strawberry-perl\perl\bin\perl.exe > C:\strawberry-perl\perl\lib\ExtUtils\xsubpp -typemap > C:\strawberry-perl\perl\lib\E > xtUtils\typemap -typemap typemap Tools.xs > Tools.xsc && > C:\strawberry-perl\perl\bin\perl.exe -MExtUtils::Command -e mv > Tools.xsc Tools.c > gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT > -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL > _MSVCRT_READFIX -s -O2 -DVERSION=\"0.30\" -DXS_VERSION=\"0.30\" > "-IC:\strawberry-perl\perl\lib\CORE" Tools.c > In file included from Tools.xs:29: > search-tools.c: In function `st_malloc': > search-tools.c:136: error: `my_perl' undeclared (first use in this > function) > search-tools.c:136: error: (Each undeclared identifier is reported only > once > search-tools.c:136: error: for each function it appears in.) > dmake: Error code 129, while making 'Tools.o' > > C:\build\cpan\build\Search-Tools-0.30> >
I took a look a line 136 in search-tools.c and could not find what gcc was complaining about. While the aforementioned line is in the st_mallocfunction, the string 'my_perl' does not appear anywhere in the file. ~Cal

Message body is not shown because it is too large.

Subject: Re: [rt.cpan.org #50509] Search::Tools fails during the make phase.
Date: Wed, 14 Oct 2009 23:34:56 -0500
To: bug-Search-Tools [...] rt.cpan.org
From: Peter Karman <peter [...] peknet.com>
Calvin McCutcheon via RT wrote on 10/14/09 9:21 PM: Show quoted text
> In file included from Tools.xs:29: > search-tools.c: In function `st_malloc': > search-tools.c:136: error: `my_perl' undeclared (first use in this > function) > search-tools.c:136: error: (Each undeclared identifier is reported > only once > search-tools.c:136: error: for each function it appears in.) > dmake: Error code 129, while making 'Tools.o' > > C:\build\cpan\build\Search-Tools-0.30> > > > I took a look a line 136 in search-tools.c and could not find what gcc > was complaining about. While the aforementioned line is in the > st_malloc function, the string 'my_perl' does not appear anywhere in the > file.
Thanks for the bug report. That unhelpful error message just means that the C function was missing the dTHX macro for thread-safe perl. see http://perl.peknet.com/changeset/2230#file24 I just uploaded 0.31 with the fix to pause. If you can't wait for cpan to populate you can get it from svn here: http://svn.peknet.com/perl/Search-Tools/tags/0.31 -- Peter Karman . http://peknet.com/ . peter@peknet.com
Should be fixed by 0.31