Problems installing HTML::Strip

Posted by dcoup on 2010-11-18 06:55
Forums: PPM | OS: Windows x64

I'm running 64-bit ActivePerl on a 64-bit Windows 7 machine.

I initially tried to install HTML::Strip using cpan with a regular command window, but that gave me an internal compiler error each time.

So I tried using a Visual Studio 2005 command window. This didn't give me the internal compiler error, but during the link step it did give me an undefined symbol error on the symbol "strcasecmp". This symbol appears to be referenced in a module called strip_html.c, but this file isn't found anywhere within my perl64 hierarchy.

What's the correct way to get HTML::Strip installed? I'm not a Perl expert, and certainly not a cpan expert, so the more detail the better.

The output from the cpan run is below.

cpan[1]> install HTML::Strip
Going to read 'C:\Users\Owner\AppData\Local\.cpan\Metadata'
Database was generated on Tue, 16 Nov 2010 22:33:29 GMT
Running install for module 'HTML::Strip'
Running make for K/KI/KILINRAX/HTML-Strip-1.06.tar.gz
Checksum for C:\Users\Owner\AppData\Local\.cpan\sources\authors\id\K\KI\KILINRAX
\HTML-Strip-1.06.tar.gz ok
Scanning cache C:\Users\Owner\AppData\Local\.cpan\build for sizes
............................................................................DONE

CPAN.pm: Going to build K/KI/KILINRAX/HTML-Strip-1.06.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for HTML::Strip

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cp Strip.pm blib\lib\HTML\Strip.pm
C:\Perl64\bin\perl.exe C:\Perl64\lib\ExtUtils\xsubpp -typemap C:\Perl64
\lib\ExtUtils\typemap -typemap typemap Strip.xs > Strip.xsc && C:\Perl64\bin\pe
rl.exe -MExtUtils::Command -e "mv" -- Strip.xsc Strip.c
cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise -DWIN32 -D
_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DUSE_SITECUSTOMIZ
E -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -MD -Zi -DNDEBUG -Ox
-GL -fp:precise -DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" "-IC:\Perl64\lib\C
ORE" Strip.c
Strip.c
Strip.xs(35) : warning C4267: 'initializing' : conversion from 'size_t' to 'int'
, possible loss of data
cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise -DWIN32 -D
_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DUSE_SITECUSTOMIZ
E -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -MD -Zi -DNDEBUG -Ox
-GL -fp:precise -DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" "-IC:\Perl64\lib\C
ORE" strip_html.c
strip_html.c
strip_html.c(38) : warning C4013: 'strcasecmp' undefined; assuming extern return
ing int
strip_html.c(47) : warning C4996: 'strcpy': This function or variable may be uns
afe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO
_WARNINGS. See online help for details.
strip_html.c(162) : warning C4996: 'strcpy': This function or variable may be un
safe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_N
O_WARNINGS. See online help for details.
strip_html.c(169) : warning C4996: 'strcpy': This function or variable may be un
safe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_N
O_WARNINGS. See online help for details.
Running Mkbootstrap for HTML::Strip ()
C:\Perl64\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 Strip.bs
C:\Perl64\bin\perl.exe -MExtUtils::Mksymlists -e "Mksymlists('NAME'=>\"
HTML::Strip\", 'DLBASE' => 'Strip', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPOR
TS' => { }, 'DL_VARS' => []);"
link -out:blib\arch\auto\HTML\Strip\Strip.dll -dll -nologo -nodefaultlib
-debug -opt:ref,icf -ltcg -libpath:"C:\Perl64\lib\CORE" -machine:AMD64 Strip.
obj strip_html.obj C:\Perl64\lib\CORE\perl512.lib oldnames.lib kernel32.lib u
ser32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.li
b oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib
odbc32.lib odbccp32.lib comctl32.lib bufferoverflowU.lib msvcrt.lib -def:Strip.d
ef
Creating library blib\arch\auto\HTML\Strip\Strip.lib and object blib\arch\aut
o\HTML\Strip\Strip.exp
strip_html.obj : error LNK2001: unresolved external symbol strcasecmp
blib\arch\auto\HTML\Strip\Strip.dll : fatal error LNK1120: 1 unresolved external
s
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.
KILINRAX/HTML-Strip-1.06.tar.gz
c:\DEVSTU~1\vc98\bin\nmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
KILINRAX/HTML-Strip-1.06.tar.gz : make NO

cpan[2]>

chorny | Sun, 2010-11-21 15:53

ppm install HTML-Strip

If it does not work, try patch from https://rt.cpan.org/Public/Bug/Display.html?id=15907