XML::Parser on Win 32 link problems?
[email protected] Mon, 23 Sep 2013 09:20:08 -0400
| Newsgroups | perl.win32.vanilla |
|---|---|
| Message-ID | <OFD440CC5B.4FD5FBF6-ON85257BEF.00488C01-85257BEF.0049413D@lazard.com> |
Greetings.
I am trying to install XML::Parser 2.41 using the Expat libs and headers
from expat-win32bin-2.1.0.exe on a Windows 2008 R2 SP1 box. The link
appears to work, but the load fails. Build output and perl -V below.
Haven't seen too many people trying this on the 'net. Is there anything
obvious I'm doing wrong? (Before anyone asks, ActiveState is a non-starter
and Strawberry can't link to DBD::Sybase, so neither of those is a
fallback option for me, )
Thanks.
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41>perl Makefile.PL
EXPATLIBPATH=E:\Expat\2.1.0\Source\win32\bin\Release
EXPATINCPATH=E:/Expat/2.1.0/Source/lib
Makefile generation was clean
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41>nmake
Build is clean
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41>perl Makefile.PL
EXPATLIBPATH=E:/Expat/2.1.0/bin EXPATINCPATH=E:/Expat/2.1.0/So
urce/lib
Checking if your kit is complete...
Looks good
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41>nmake
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
cp Parser/Encodings/big5.enc blib\lib\XML\Parser\Encodings\big5.enc
cp Parser/Encodings/koi8-r.enc blib\lib\XML\Parser\Encodings\koi8-r.enc
cp Parser/Style/Subs.pm blib\lib\XML\Parser\Style\Subs.pm
cp Parser/Encodings/README blib\lib\XML\Parser\Encodings\README
cp Parser/Encodings/windows-1252.enc
blib\lib\XML\Parser\Encodings\windows-1252.enc
cp Parser/Encodings/windows-1255.enc
blib\lib\XML\Parser\Encodings\windows-1255.enc
cp Parser/Encodings/windows-1250.enc
blib\lib\XML\Parser\Encodings\windows-1250.enc
cp Parser/Encodings/x-sjis-cp932.enc
blib\lib\XML\Parser\Encodings\x-sjis-cp932.enc
cp Parser/Encodings/x-euc-jp-jisx0221.enc
blib\lib\XML\Parser\Encodings\x-euc-jp-jisx0221.enc
cp Parser/Encodings/x-sjis-unicode.enc
blib\lib\XML\Parser\Encodings\x-sjis-unicode.enc
cp Parser/Encodings/iso-8859-2.enc
blib\lib\XML\Parser\Encodings\iso-8859-2.enc
cp Parser/Encodings/euc-kr.enc blib\lib\XML\Parser\Encodings\euc-kr.enc
cp Parser/Encodings/x-sjis-jdk117.enc
blib\lib\XML\Parser\Encodings\x-sjis-jdk117.enc
cp Parser.pm blib\lib\XML\Parser.pm
cp Parser/Encodings/x-euc-jp-unicode.enc
blib\lib\XML\Parser\Encodings\x-euc-jp-unicode.enc
cp Parser/Encodings/iso-8859-7.enc
blib\lib\XML\Parser\Encodings\iso-8859-7.enc
cp Parser/Style/Debug.pm blib\lib\XML\Parser\Style\Debug.pm
cp Parser/Encodings/Japanese_Encodings.msg
blib\lib\XML\Parser\Encodings\Japanese_Encodings.msg
cp Parser/Style/Objects.pm blib\lib\XML\Parser\Style\Objects.pm
cp Parser/Style/Tree.pm blib\lib\XML\Parser\Style\Tree.pm
cp Parser/Style/Stream.pm blib\lib\XML\Parser\Style\Stream.pm
cp Parser/Encodings/ibm866.enc blib\lib\XML\Parser\Encodings\ibm866.enc
cp Parser/Encodings/iso-8859-9.enc
blib\lib\XML\Parser\Encodings\iso-8859-9.enc
cp Parser/Encodings/iso-8859-4.enc
blib\lib\XML\Parser\Encodings\iso-8859-4.enc
cp Parser/LWPExternEnt.pl blib\lib\XML\Parser\LWPExternEnt.pl
cp Parser/Encodings/iso-8859-3.enc
blib\lib\XML\Parser\Encodings\iso-8859-3.enc
cp Parser/Encodings/iso-8859-5.enc
blib\lib\XML\Parser\Encodings\iso-8859-5.enc
cp Parser/Encodings/iso-8859-8.enc
blib\lib\XML\Parser\Encodings\iso-8859-8.enc
cp Parser/Encodings/windows-1251.enc
blib\lib\XML\Parser\Encodings\windows-1251.enc
cp Parser/Encodings/x-sjis-jisx0221.enc
blib\lib\XML\Parser\Encodings\x-sjis-jisx0221.enc
nmake -f Makefile all -nologo
cp Expat.pm ..\blib\lib\XML\Parser\Expat.pm
E:\perl\5.18.1\bin\perl.exe E:\perl\5.18.1\lib\ExtUtils\xsubpp
-noprototypes -typemap E:\perl\5.18.1\lib\ExtUtils\typemap -t
ypemap typemap Expat.xs > Expat.xsc && E:\perl\5.18.1\bin\perl.exe
-MExtUtils::Command -e mv -- Expat.xsc Expat.c
cl -c -IE:/Expat/2.1.0/Source/lib -nologo -GF -W3 -O1 -MD -Zi
-DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEP
RECATE -D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -O1 -MD -Zi -DND
EBUG -DVERSION=\"2.41\" -DXS_VERSION=\"2.41\"
"-IE:\perl\5.18.1\lib\CORE" Expat.c
Expat.c
Expat.xs(273) : warning C4018: '<' : signed/unsigned mismatch
Expat.xs(481) : warning C4101: 'pcontext' : unreferenced local variable
Expat.xs(484) : warning C4101: 'pnstab' : unreferenced local variable
Expat.xs(485) : warning C4101: 'pnslst' : unreferenced local variable
Expat.xs(1146) : warning C4101: 'count' : unreferenced local variable
Expat.xs(1462) : warning C4101: 'delimsv' : unreferenced local variable
Expat.c(2270) : warning C4101: 'RETVAL' : unreferenced local variable
Expat.c(2582) : warning C4101: 'RETVAL' : unreferenced local variable
Expat.xs(2046) : warning C4018: '<' : signed/unsigned mismatch
Expat.xs(2056) : warning C4018: '<' : signed/unsigned mismatch
Expat.xs(2192) : warning C4101: 'type' : unreferenced local variable
Expat.xs(2205) : warning C4101: 'pret' : unreferenced local variable
Running Mkbootstrap for XML::Parser::Expat ()
E:\perl\5.18.1\bin\perl.exe -MExtUtils::Command -e chmod -- 644
Expat.bs
E:\perl\5.18.1\bin\perl.exe -MExtUtils::Mksymlists -e
"Mksymlists('NAME'=>\"XML::Parser::Expat\", 'DLBASE' => 'Expat', 'DL_
FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
link -out:..\blib\arch\auto\XML\Parser\Expat\Expat.dll -dll
-nologo -nodefaultlib -debug -opt:ref,icf -libpath:"e:\perl\5.1
8.1\lib\CORE" -machine:x86 "/manifestdependency:type='Win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorAr
chitecture='*' publicKeyToken='6595b64144ccf1df' language='*'" Expat.obj
E:\perl\5.18.1\lib\CORE\perl518.lib E:\Expat\2.1.0\bin\li
bexpat.lib c:\vsexpress\VC\lib\oldnames.lib "C:\Program Files
(x86)\Windows Kits\8.0\lib\win8\um\x86\kernel32.lib" "C:\Program Files
(x86)\Windows Kits\8.0\lib\win8\um\x86\user32.lib" "C:\Program Files
(x86)\Windows Kits\8.0\lib\win8\um\x86\gdi32.lib" "C:\Program
Files (x86)\Windows Kits\8.0\lib\win8\um\x86\winspool.lib" "C:\Program
Files (x86)\Windows Kits\8.0\lib\win8\um\x86\comdlg32.lib" "C
:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\advapi32.lib"
"C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\shell3
2.lib" "C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ole32.lib"
"C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\
oleaut32.lib" "C:\Program Files (x86)\Windows
Kits\8.0\lib\win8\um\x86\netapi32.lib" "C:\Program Files (x86)\Windows
Kits\8.0\lib\wi
n8\um\x86\uuid.lib" "C:\Program Files (x86)\Windows
Kits\8.0\lib\win8\um\x86\ws2_32.lib" "C:\Program Files (x86)\Windows
Kits\8.0\li
b\win8\um\x86\mpr.lib" "C:\Program Files (x86)\Windows
Kits\8.0\lib\win8\um\x86\winmm.lib" "C:\Program Files (x86)\Windows
Kits\8.0\
lib\win8\um\x86\version.lib" "C:\Program Files (x86)\Windows
Kits\8.0\lib\win8\um\x86\odbc32.lib" "C:\Program Files (x86)\Windows Ki
ts\8.0\lib\win8\um\x86\odbccp32.lib" "C:\Program Files (x86)\Windows
Kits\8.0\lib\win8\um\x86\comctl32.lib" c:\vsexpress\VC\lib\msvc
rt.lib -def:Expat.def
Creating library ..\blib\arch\auto\XML\Parser\Expat\Expat.lib and
object ..\blib\arch\auto\XML\Parser\Expat\Expat.exp
if exist ..\blib\arch\auto\XML\Parser\Expat\Expat.dll.manifest mt
-nologo -manifest ..\blib\arch\auto\XML\Parser\Expat\Expat
.dll.manifest
-outputresource:..\blib\arch\auto\XML\Parser\Expat\Expat.dll;2
if exist ..\blib\arch\auto\XML\Parser\Expat\Expat.dll.manifest del
..\blib\arch\auto\XML\Parser\Expat\Expat.dll.manifest
E:\perl\5.18.1\bin\perl.exe -MExtUtils::Command -e chmod -- 755
..\blib\arch\auto\XML\Parser\Expat\Expat.dll
E:\perl\5.18.1\bin\perl.exe -MExtUtils::Command -e cp -- Expat.bs
..\blib\arch\auto\XML\Parser\Expat\Expat.bs
E:\perl\5.18.1\bin\perl.exe -MExtUtils::Command -e chmod -- 644
..\blib\arch\auto\XML\Parser\Expat\Expat.bs
cd ..
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41>nmake test
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
nmake -f Makefile all -nologo
cd ..
E:\perl\5.18.1\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/astress.t ....... Can't load
'E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41\blib\arch/auto/XML/Parser/Expat/Expat.dll'
for m
odule XML::Parser::Expat: load_file:%1 is not a valid Win32 application at
E:/perl/5.18.1/lib/DynaLoader.pm line 190.
at
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41\blib\lib/XML/Parser.pm
line 18.
Compilation failed in require at
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41\blib\lib/XML/Parser.pm
line 18.
BEGIN failed--compilation aborted at
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41\blib\lib/XML/Parser.pm
line 22.
Compilation failed in require at t/astress.t line 11.
BEGIN failed--compilation aborted at t/astress.t line 11.
t/astress.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 27/27 subtests
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41>perl -V
Summary of my perl5 (revision 5 version 18 subversion 1) configuration:
Platform:
osname=MSWin32, osvers=6.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=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='cl', ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -DWIN32
-D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC
_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DUSE_PERLIO',
optimize='-O1 -MD -Zi -DNDEBUG',
cppflags='-DWIN32'
ccversion='17.00.50727.1', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf
-libpath:"e:\perl\5.18.1\lib\CORE" -machine:x86 "/manifestdepen
dency:type='Win32' name='Microsoft.Windows.Common-Controls'
version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144cc
f1df' language='*'"'
libpth=c:\vsexpress\VC\lib
libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib
odbccp32.lib comctl32.lib msvcrt.lib
perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.l
ib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib
odbc32.lib odbccp32.lib comctl32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl518.lib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug
-opt:ref,icf -libpath:"e:\perl\5.18.1\lib\CORE" -machine:x86 "/ma
nifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls'
version='6.0.0.0' processorArchitecture='*' publicKeyToken='6
595b64144ccf1df' language='*'"'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV
PERL_SAWAMPERSAND
USE_ITHREADS USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under MSWin32
Compiled at Sep 20 2013 17:13:15
@INC:
e:/perl/site/5.18.1/lib
e:/perl/5.18.1/lib
.
E:\perlbuild\.cpanplus\5.18.1\build\XML-Parser-2.41>
--
Matthew O. Persico
30 Rockefeller Plaza
New York, NY 10112
(unnamed)
(image/jpeg, 2.4 KB) - not displayed