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

Posted: 06-17-2005, 07:35 AM
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.

http://sourceforge.net/mailarchive/f...ewmonth=200408

http://sourceforge.net/mailarchive/f...&forum_id=2409

(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
http://www.alphalink.com.au/~ord/home/validator.html


Has anyone else resolved this issue?


Regards
Julian Gamble

Reply With Quote

Responses to "Getting SGML::Parser::OpenSP to compile under Cygwin"

Sisyphus
Guest
Posts: n/a
 
Re: Getting SGML::Parser::OpenSP to compile under Cygwin
Posted: 06-17-2005, 07:07 PM

<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
http://theoryx5.uwinnipeg.ca/ppms/ .
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 http://theoryx5.uwinnipeg.ca/ppms/SG...ser-OpenSP.ppd

Cheers,
Rob


Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile of DB::DB2 on cygwin gimme_this_gimme_that@yahoo.com PERL Modules 0 06-16-2005 01:38 AM
Class::DBI under Cygwin Mark Grimes PERL Modules 0 02-25-2004 02:08 AM
cygwin or activestate ? Graham PERL Modules 2 11-14-2003 12:44 AM
Cygwin and Php and PostNuke Kalmen PHP Development 0 08-06-2003 07:30 AM
CygWin, Win98, & 1.8.0 (sourceforge) Charles Hixson Ruby 0 07-21-2003 06:05 PM