[Expat-bugs] [ expat-Bugs-661447 ] problem compiling XML::Parser

noreply at sourceforge.net noreply at sourceforge.net
Thu Jan 2 19:43:58 EST 2003


Bugs item #661447, was opened at 2003-01-02 19:43
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=661447&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: problem compiling XML::Parser

Initial Comment:
I attempted to install XML::Parser on a machine running
Solaris 8 with GCC 2.95.3

It failed due to a dependancy on Expat, so I
downloaded, compiled and installed expat-1.95.5

The next time i attempted to install XML::Parser I got
this:

bash#   perl Makefile.PL EXPATLIBPATH=/opt/lib
EXPATINCPATH=/opt/include
Checking if your kit is complete...
Looks good
Writing Makefile for XML::Parser::Expat
Writing Makefile for XML::Parser
bash# make
cp Parser/Encodings/README
blib/lib/XML/Parser/Encodings/README
cp Parser/Encodings/x-sjis-cp932.enc
blib/lib/XML/Parser/Encodings/x-sjis-cp932.enc
cp Parser/Encodings/iso-8859-7.enc
blib/lib/XML/Parser/Encodings/iso-8859-7.enc
cp Parser/Encodings/big5.enc
blib/lib/XML/Parser/Encodings/big5.enc
cp Parser/Encodings/windows-1250.enc
blib/lib/XML/Parser/Encodings/windows-1250.enc
cp Parser/Encodings/iso-8859-8.enc
blib/lib/XML/Parser/Encodings/iso-8859-8.enc
cp Parser/Encodings/iso-8859-2.enc
blib/lib/XML/Parser/Encodings/iso-8859-2.enc
cp Parser/Encodings/x-euc-jp-jisx0221.enc
blib/lib/XML/Parser/Encodings/x-euc-jp-jisx0221.enc
cp Parser/Encodings/iso-8859-9.enc
blib/lib/XML/Parser/Encodings/iso-8859-9.enc
cp Parser/Encodings/x-sjis-unicode.enc
blib/lib/XML/Parser/Encodings/x-sjis-unicode.enc
cp Parser/Encodings/iso-8859-3.enc
blib/lib/XML/Parser/Encodings/iso-8859-3.enc
cp Parser/Encodings/x-sjis-jdk117.enc
blib/lib/XML/Parser/Encodings/x-sjis-jdk117.enc
cp Parser/Encodings/euc-kr.enc
blib/lib/XML/Parser/Encodings/euc-kr.enc
cp Parser/Encodings/iso-8859-4.enc
blib/lib/XML/Parser/Encodings/iso-8859-4.enc
cp Parser/Encodings/Japanese_Encodings.msg
blib/lib/XML/Parser/Encodings/Japanese_Encodings.msg
cp Parser/Encodings/x-sjis-jisx0221.enc
blib/lib/XML/Parser/Encodings/x-sjis-jisx0221.enc
cp Parser.pm blib/lib/XML/Parser.pm
cp Parser/Encodings/iso-8859-5.enc
blib/lib/XML/Parser/Encodings/iso-8859-5.enc
cp Parser/Encodings/x-euc-jp-unicode.enc
blib/lib/XML/Parser/Encodings/x-euc-jp-unicode.enc
cp Parser/LWPExternEnt.pl
blib/lib/XML/Parser/LWPExternEnt.pl
make[1]: Entering directory
`/var/.cpan/build/XML-Parser-2.31/Expat'
cp Expat.pm ../blib/lib/XML/Parser/Expat.pm
/opt/bin/perl -I/opt/lib/perl5/5.6.1/sun4-solaris
-I/opt/lib/perl5/5.6.1
/opt/lib/perl5/5.6.1/ExtUtils/xsubpp -noprototypes
-typemap /opt/lib/perl5/5.6.1/ExtUtils/typemap -typemap
typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c
/opt/bin/gcc -c -I/opt/include -fno-strict-aliasing
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O  
-DVERSION=\2.31\ -DXS_VERSION=\2.31\ -fPIC
-I/opt/lib/perl5/5.6.1/sun4-solaris/CORE  Expat.c
Expat.xs:140: warning: `ERRSV' redefined
/opt/lib/perl5/5.6.1/sun4-solaris/CORE/perl.h:768:
warning: this is the location of the previous definition
Expat.xs:132: conflicting types for `Perl_newSVpvn'
/opt/lib/perl5/5.6.1/sun4-solaris/CORE/proto.h:551:
previous declaration of `Perl_newSVpvn'
Expat.xs: In function `nsStart':
Expat.xs:678: `sv_undef' undeclared (first use in this
function)
Expat.xs:678: (Each undeclared identifier is reported
only once
Expat.xs:678: for each function it appears in.)
Expat.xs: In function `nsEnd':
Expat.xs:698: `sv_undef' undeclared (first use in this
function)
Expat.xs: In function `attributeDecl':
Expat.xs:783: `sv_yes' undeclared (first use in this
function)
Expat.xs: In function `entityDecl':
Expat.xs:811: `sv_undef' undeclared (first use in this
function)
Expat.xs:816: `sv_yes' undeclared (first use in this
function)
Expat.xs: In function `doctypeStart':
Expat.xs:840: `sv_undef' undeclared (first use in this
function)
Expat.xs:842: `sv_yes' undeclared (first use in this
function)
Expat.xs:842: `sv_no' undeclared (first use in this
function)

I was eventually able to solve the problem by removing the
"/opt/include/patchlevel.h" file, after which
XML::Parser compiled smoothly. I am just posting this
bug so you will be aware of this problem.

Tristan Lawrence
Globix Corporation
www.globix.com

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=661447&group_id=10127



More information about the Expat-bugs mailing list