Skip Menu |

This queue is for tickets about the XML-Parser CPAN distribution.

Report information
The Basics
Id: 4908
Status: resolved
Priority: 0/
Queue: XML-Parser

People
Owner: Nobody in particular
Requestors: eitan [...] lmb.co.il
Cc:
AdminCc:

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



Subject: XML::Parser nmake fails
While trying to run 'nmake' under Win32 (Windows XP Pro), I get the following error(s): C:\CPAN Packages\XML-Parser-2.34>nmake Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_ST RICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"2.34\" -DXS_VERSION=\ "2.34\" "-IC:\Perl\lib\CORE" Expat.c Expat.c Expat.xs(60) : error C2061: syntax error : identifier 'XML_Parser' Expat.xs(78) : error C2143: syntax error : missing '{' before ':' Expat.xs(78) : error C2059: syntax error : ':' Expat.xs(79) : error C2143: syntax error : missing '{' before ':' Expat.xs(79) : error C2059: syntax error : ':' Expat.xs(80) : error C2143: syntax error : missing '{' before ':' Expat.xs(80) : error C2059: syntax error : ':' Expat.xs(106) : error C2059: syntax error : '}' Expat.xs(111) : error C2061: syntax error : identifier 'nsdelim' Expat.xs(111) : error C2059: syntax error : ';' Expat.xs(111) : error C2059: syntax error : '[' Expat.xs(117) : error C2143: syntax error : missing ')' before '*' Expat.xs(117) : error C2143: syntax error : missing '{' before '*' Expat.xs(117) : error C2059: syntax error : ')' Expat.xs(117) : error C2059: syntax error : ';' Expat.xs(118) : error C2143: syntax error : missing ')' before '*' Expat.xs(118) : error C2143: syntax error : missing '{' before '*' Expat.xs(118) : error C2059: syntax error : ')' Expat.xs(118) : error C2059: syntax error : ';' Expat.xs(194) : error C2061: syntax error : identifier 'ms' Expat.xs(194) : error C2059: syntax error : ';' Expat.xs(194) : error C2513: '/*global*/ ' : no variable declared before '=' Expat.xs(197) : error C2146: syntax error : missing ')' before identifier 'parse r' Expat.xs(197) : error C2061: syntax error : identifier 'parser' Expat.xs(197) : error C2059: syntax error : ';' Expat.xs(197) : error C2059: syntax error : ',' Expat.xs(197) : error C2059: syntax error : ')' Expat.xs(249) : error C2143: syntax error : missing ')' before '*' Expat.xs(249) : error C2143: syntax error : missing '{' before '*' Expat.xs(249) : error C2059: syntax error : ')' Expat.xs(249) : error C2054: expected '(' to follow 'model' Expat.xs(286) : error C2146: syntax error : missing ')' before identifier 'parse r' Expat.xs(286) : error C2061: syntax error : identifier 'parser' Expat.xs(286) : error C2059: syntax error : ';' Expat.xs(286) : error C2059: syntax error : ',' Expat.xs(286) : error C2059: syntax error : ')' Expat.xs(460) : error C2065: 'CallbackVector' : undeclared identifier Expat.xs(460) : error C2065: 'cbv' : undeclared identifier Expat.xs(460) : error C2059: syntax error : ')' Expat.xs(467) : error C2223: left of '->self_sv' must point to struct/union Expat.xs(470) : error C2223: left of '->char_sv' must point to struct/union Expat.xs(470) : warning C4047: 'function' : 'struct sv *' differs in levels of i ndirection from 'const int ' Expat.xs(470) : warning C4024: 'Perl_call_sv' : different types for formal and a ctual parameter 2 Expat.xs(470) : error C2198: 'Perl_call_sv' : too few actual parameters Expat.xs(480) : error C2059: syntax error : ')' Expat.xs(481) : error C2275: 'SV' : illegal use of this type as an expression C:\Perl\lib\CORE\perl.h(1711) : see declaration of 'SV' Expat.xs(481) : error C2065: 'pcontext' : undeclared identifier Expat.xs(481) : error C2100: illegal indirection Expat.xs(482) : error C2143: syntax error : missing ';' before 'type' Expat.xs(483) : error C2143: syntax error : missing ';' before 'type' Expat.xs(484) : error C2275: 'SV' : illegal use of this type as an expression C:\Perl\lib\CORE\perl.h(1711) : see declaration of 'SV' Expat.xs(484) : error C2065: 'pnstab' : undeclared identifier Expat.xs(484) : error C2100: illegal indirection Expat.xs(485) : error C2275: 'SV' : illegal use of this type as an expression C:\Perl\lib\CORE\perl.h(1711) : see declaration of 'SV' Expat.xs(485) : error C2065: 'pnslst' : undeclared identifier Expat.xs(485) : error C2100: illegal indirection Expat.xs(486) : error C2275: 'SV' : illegal use of this type as an expression C:\Perl\lib\CORE\perl.h(1711) : see declaration of 'SV' Expat.xs(486) : error C2065: 'elname' : undeclared identifier Expat.xs(488) : error C2223: left of '->st_serial' must point to struct/union Expat.xs(490) : error C2223: left of '->skip_until' must point to struct/union Expat.xs(491) : error C2065: 'skipping' : undeclared identifier Expat.xs(491) : error C2223: left of '->st_serial' must point to struct/union Expat.xs(491) : error C2223: left of '->skip_until' must point to struct/union Expat.xs(493) : warning C4013: 'resume_callbacks' undefined; assuming extern ret urning int Expat.xs(494) : error C2223: left of '->skip_until' must point to struct/union Expat.xs(498) : error C2223: left of '->st_serial_stackptr' must point to struct /union Expat.xs(498) : error C2223: left of '->st_serial_stacksize' must point to struc t/union Expat.xs(499) : error C2223: left of '->st_serial_stacksize' must point to struc t/union Expat.xs(501) : error C2223: left of '->st_serial_stack' must point to struct/un ion Expat.xs(501) : error C2223: left of '->st_serial_stack' must point to struct/un ion Expat.xs(501) : warning C4022: 'Perl_safesysrealloc' : pointer mismatch for actu al parameter 1 Expat.xs(501) : error C2198: 'Perl_safesysrealloc' : too few actual parameters Expat.xs(502) : error C2223: left of '->st_serial_stacksize' must point to struc t/union Expat.xs(505) : error C2223: left of '->st_serial_stack' must point to struct/un ion Expat.xs(505) : error C2223: left of '->st_serial_stackptr' must point to struct /union Expat.xs(505) : fatal error C1903: unable to recover from previous error(s); sto pping compilation NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. Can't install manually either - won't recognize the package
From: aa29 [...] mail.ru
I have built XML::Parser on WinXP/Perl 5.8.5 following these steps: 1. Download expat_win32bin_[version here].exe from SourceForge 2. Install, add 'Libs' subfolder to PATH (or copy all dll files from this dir to folder which is in PATH). 3. Download from CPAN and unzip XML::Parser 4. patch XML-Parser-2.34/Expat/Makefile.PL: --- Makefile.PL.orig Tue Nov 02 13:19:36 2004 +++ Makefile.PL Tue Nov 02 13:04:54 2004 @@ -2,7 +2,7 @@ use Config; use English; -my $libs = "-lexpat"; +my $libs = $OSNAME eq 'MSWin32' ? "-llibexpat.lib" : "-lexpat"; @extras = (); push(@extras, INC => "-I$expat_incpath") 5. run XML-Parser-2.34/Makefile.PL (that is NOT the same file as in step 4): perl Makefile.PL EXPATLIBPATH=[path to 'Libs' subfolder from expath] EXPATINCPATH=[path to 'Source/lib' subfolder from expath] 6. nmake && nmake test && nmake install
Ticket migrated to github as https://github.com/toddr/XML-Parser/issues/24