getting XML::Parser working on Windows NT 
Author Message
 getting XML::Parser working on Windows NT

According to its author, Jeff Zucker, the new AnyData module
requires XML::Parser to emit XML.

Unfortunately XML::Parser does not seem to be anywhere
on ActiveState, e.g. is not even shown on the list of all PPM at
http://www.*-*-*.com/
as not available.  Nor is it found by a search for "parser" or "xml".

When I tried to make XML-Parser-2.29 from source I fail as follows:

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

        cl -c -Iexpat/xmltok -Iexpat/xmlparse -O1 -MD -DNDEBUG -DWIN32
-D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG
-DVERSION=\"2.29\" -DXS_VERSION=\"2.29\" -IC:\Perl\lib\CORE -DXML_NS
-DXML_DTD -DXML_CONTEXT_BYTES=512 -DXML_BYTE_ORDER=12 /FoExpat.obj
Expat.c Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
12.00.8168 for 80x86 Copyright (C) Microsoft Corp 1984-1998. All
rights reserved.

Expat.c
C:\Perl\lib\CORE\perl.h(424) : fatal error C1083: Cannot open include
file: 'sys/types.h': No such file or directory
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x2'
Stop.

Line 424 is the include line below:
#ifndef _TYPES_         /* If types.h defines this it's easy. */
#   ifndef major                /* Does everyone's types.h define this? */
#       include <sys/types.h>
#   endif
#endif

The only file in c:\perl\lib\CORE\sys is sockets.h
I have no idea of whether types.h is supposed to be there or not.

Can the problem be trying to mix an ActiveState version of Perl with
compiling using a Windows C++ compiler?

Perl -V reports:
Summary of my perl5 (revision 5 version 6 subversion 0) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef use5005threads=undef useithreads=define
    usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cl', optimize='-O1 -MD -DNDEBUG', gccversion=
    cppflags='-DWIN32'
    ccflags ='-O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
    -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
    -DPERL_MSVCRT_READFIX'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
    lseeksize=4
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release
    -libpath:"C:\Perl\lib\CORE" -machine:x86'
    libpth="C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib"
    "C:\Program Files\Microsoft Visual Studio\VC98\lib"
    "C:\Perl\lib\CORE" 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 wsock32.lib mpr.lib
    winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
    Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef,
    ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo
    -nodefaultlib -release -libpath:"C:\Perl\lib\CORE" -machine:x86'

Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS
  PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
  Locally applied patches:
        ActivePerl Build 613
  Built under MSWin32
  Compiled at Mar 24 2000 12:36:25

    C:/Perl/lib
    C:/Perl/site/lib
    .

I reformmatted some lines above to be short enough for email.

I have also previously installed XML::Twig and many other modules.
I have a vague memory that one of these provided its own simple
implementation of some XML parser.  Could this be part of the problem?
(Alternatively could this permit me to get by without the real
XML::Parser?)  (I also found an old module named XML::Parser that was
implemented in pure perl.  It seemed that this was an experimental
effort that was abandoned, so I did not install it.)

If-you-can-help-with-this-great-thanks-to-you'ly,
Steve
--

Fidelity Investments   82 Devonshire St. V10D    Boston MA 02109
There is nothing so practical as a good theory.  Comments are by me,
not Fidelity Investments, its subsidiaries or affiliates.



Fri, 19 Dec 2003 21:03:37 GMT  
 getting XML::Parser working on Windows NT

Quote:
> According to its author, Jeff Zucker, the new AnyData module
> requires XML::Parser to emit XML.

> Unfortunately XML::Parser does not seem to be anywhere
> on ActiveState, e.g. is not even shown on the list of all PPM at
> http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/Packages
> as not available.  Nor is it found by a search for "parser" or "xml".

We have a ppm package of version 2.30 of XML-Parser at
   http://theoryx5.uwinnipeg.ca/ppmpackages/
Because of some issues with the expat library and XML-Parser
on Win32 (discussed below), a special expat_win32 dll is
needed - the XML-Parser.ppd at the above location will run
a post-install script to install that for you.

Quote:
> When I tried to make XML-Parser-2.29 from source I fail as follows:
[ ... ]
> Expat.c
> C:\Perl\lib\CORE\perl.h(424) : fatal error C1083: Cannot open include
> file: 'sys/types.h': No such file or directory
[ ...]
> The only file in c:\perl\lib\CORE\sys is sockets.h
> I have no idea of whether types.h is supposed to be there or not.

types.h should be under your VC++ include/ directory - perhaps
something like /VStudio/VC98/Include/Sys/. Did you run
"vcvars32.bat" first to set various environment variables for VC++?

For XML-Parser-2.30, there's a bunch of further problems on
Win32, like name clashes and an omitted export declaration.
Kurt Stephens, in a message on comp.lang.perl.modules
on Feb 1 of this year, describes these, and their solutions.

best regards,
randy kobes



Tue, 23 Dec 2003 09:46:19 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. just my 2 cents

2. XML::Parser/XML::Parser::Expat

3. Expat and xml::parser on windows server.

4. XML::Parser problem on windows

5. XML::Parser problem on windows

6. Send E-MAIL by Delphi 2.0 Pro ?

7. Post not posting - D3

8. dbiDoRestructure Help !!!

9. ODBC and MDB !@#$%^!

10. HELP - Problems w/ Turbo Debugger for Windows

11. Working with URIs in XML::Parser

12. XML::Parser installation - CPAN doesn't work

 

 
Powered by phpBB® Forum Software