Professional Web Applications Themes

Getting SGML::Parser::OpenSP to compile under Cygwin - PERL Modules

I'm trying to get the W3C HTML Validator to work on Windows XP SP2 using the Apache web server and cygwin. I'm using the Cygwin package manager to download and install OpenSP 1.5.1.1 libraries. After configuring my system to run perl 5.8 under cygwin - I get the following error continued...

  1. #1

    Default Getting SGML::Parser::OpenSP to compile under Cygwin

    I'm trying to get the W3C HTML Validator to work on Windows XP SP2
    using the Apache web server and cygwin. I'm using the Cygwin package
    manager to download and install OpenSP 1.5.1.1 libraries. After
    configuring my system to run perl 5.8 under cygwin - I get the
    following error when the validator page tries to kick off the check.cgi
    script.

    Software error:
    Configured SGML Parser '/usr/bin/onsgmls
    ' not executable! at /usr/lib/perl5/5.8/CGI/Carp.pm line 314.
    BEGIN failed--compilation aborted at
    C:/W3C/Validator/httpd/cgi-bin/check.cgi line 192.

    I get the following errors when trying to configure
    SGML::Parser::OpenSP under Perl. When running perl makefile.pl I get
    the following:

    $ perl makefile.pl
    Note (probably harmless): No library found for -lstdc++
    Writing Makefile for SGML::Parser::OpenSP

    When I run make I get the following:

    $ make
    g++ -c -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe
    -I/usr/local/include
    -DUSEIMPORTLIB -O3 -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\"
    "-I/usr/lib/perl5
    /5.8/cygwin/CORE" -DSP_MULTI_BYTE=1 OpenSP.c
    OpenSP.xs: In member function `void SgmlParserOpenSP::parse(SV*)':
    OpenSP.xs:586: error: `showErrorNumbers' is not a member of
    `ParserEventGenerato
    rKit'
    OpenSP.c: In function `void
    XS_SGML__Parser__OpenSP_parse(PerlInterpreter*, CV*)
    ':
    OpenSP.c:1152: warning: cast to pointer from integer of different size
    OpenSP.c: In function `void
    XS_SGML__Parser__OpenSP_get_location(PerlInterpret er
    *, CV*)':
    OpenSP.c:1171: warning: cast to pointer from integer of different size
    OpenSP.c: In function `void
    XS_SGML__Parser__OpenSP_halt(PerlInterpreter*, CV*)'
    :
    OpenSP.c:1191: warning: cast to pointer from integer of different size
    make: *** [OpenSP.o] Error 1



    I notice the following patches in CVS added to OpenSP to resolve this.

    [url]http://sourceforge.net/mailarchive/forum.php?forum_id=2437&max_rows=25&style=nested&v iewmonth=200408[/url]

    [url]http://sourceforge.net/mailarchive/forum.php?thread_id=5515072&forum_id=2409[/url]

    (Downloading and running this from CVS doesn't appear to resolve the
    issue.)

    This guy seems to have done it - but perhaps it was with a different
    version of openSP
    [url]http://www.alphalink.com.au/~ord/home/validator.html[/url]


    Has anyone else resolved this issue?


    Regards
    Julian Gamble

    juliangamble@gmail.com Guest

  2. #2

    Default Re: Getting SGML::Parser::OpenSP to compile under Cygwin


    <juliangamble@gmail.com> wrote in message
    news:1118993751.706543.256990@o13g2000cwo.googlegr oups.com...
    > I'm trying to get the W3C HTML Validator to work on Windows XP SP2
    > using the Apache web server and cygwin.
    There's a ppm package for SGML::Parser::OpenSP available at
    [url]http://theoryx5.uwinnipeg.ca/ppms/[/url] .
    It won't work with Cygwin perl, but will work with ActiveState perl 5.8 (or
    indeed just about any multithreaded perl 5.8 built as "native" Win32).

    Having installed ActiveState perl you would then install
    SGML::Parser::OpenSP by running:
    ppm install [url]http://theoryx5.uwinnipeg.ca/ppms/SGML-Parser-OpenSP.ppd[/url]

    Cheers,
    Rob


    Sisyphus Guest

Similar Threads

  1. DBD::Oracle on cygwin
    By Stephan Titard in forum PERL Modules
    Replies: 1
    Last Post: July 12th, 06:33 PM
  2. How to use SGML::Parser?
    By sstark in forum PERL Modules
    Replies: 0
    Last Post: August 3rd, 12:18 AM
  3. Compile of DB::DB2 on cygwin
    By gimme_this_gimme_that@yahoo.com in forum PERL Modules
    Replies: 0
    Last Post: June 16th, 01:38 AM
  4. Exporting InDesign files to SGML
    By Jason_Wommack@adobeforums.com in forum Adobe Indesign Windows
    Replies: 0
    Last Post: June 10th, 06:36 PM
  5. HTML-Parser / SGML-Parser
    By Zach Dennis in forum Ruby
    Replies: 8
    Last Post: October 1st, 07:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139