Problems to install XML Parser

S

Silas Justiniano

Hello all. I'm trying to install XML Parse... [perl Makefile.PL] works
well, but [make] returns me:

# make make[1]: Entering directory
`/s3g/down/xml-parser/XML-Parser-2.20/Expat'
cc -c -Iexpat/xmltok -Iexpat/xmlparse -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.20\"
-DXS_VERSION=\"2.20\" -fPIC "-I/usr/lib/perl/5.8/CORE" -o Expat.o
Expat.c
Expat.xs: In function `append_error':
Expat.xs:209: error: `my_perl' undeclared (first use in this function)
Expat.xs:209: error: (Each undeclared identifier is reported only once
Expat.xs:209: error: for each function it appears in.)
Expat.xs: In function `parse_stream':
Expat.xs:261: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `gen_ns_name':
Expat.xs:425: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `parse_local':
Expat.xs:513: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `characterData':
Expat.xs:1013: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `startElement':
Expat.xs:1026: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `endElement':
Expat.xs:1119: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `processingInstruction':
Expat.xs:1152: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `commenthandle':
Expat.xs:1166: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `startCdata':
Expat.xs:1179: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `endCdata':
Expat.xs:1193: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `defaulthandle':
Expat.xs:1207: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `unparsedEntityDecl':
Expat.xs:1233: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `notationDecl':
Expat.xs:1254: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `externalEntityRef':
Expat.xs:1292: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `unknownEncoding':
Expat.xs:1447: error: `my_perl' undeclared (first use in this function)
Expat.xs: In function `recString':
Expat.xs:1536: error: `my_perl' undeclared (first use in this function)
make[1]: *** [Expat.o] Error 1
make[1]: Leaving directory `/s3g/down/xml-parser/XML-Parser-2.20/Expat'
make: *** [subdirs] Error 2

What could I do?

Thank you! Bye!
 
S

Sisyphus

Silas Justiniano said:
Hello all. I'm trying to install XML Parse... [perl Makefile.PL] works
well, but [make] returns me:

# make make[1]: Entering directory
`/s3g/down/xml-parser/XML-Parser-2.20/Expat'

You're attempting to install version 2.20 of XML::parser ??
That was released on 28 Feb 1999. Is there a particular reason that you want
to install such an old version ?
cc -c -Iexpat/xmltok -Iexpat/xmlparse -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.20\"
-DXS_VERSION=\"2.20\" -fPIC "-I/usr/lib/perl/5.8/CORE" -o Expat.o
Expat.c
Expat.xs: In function `append_error':
Expat.xs:209: error: `my_perl' undeclared (first use in this function)

'my_perl' no longer appears anywhere in Expat.xs, so you would at least be
guaranteed of not getting that error if you were to try installing a recent
version of XML::parser.

Out of curiosity I downloaded 2.20 and tried to compile it on my Win32 box
under both perl 5.6 and 5.8. In both instances I got the same errors as you,
plus some other strange errors as well. My immediate suspicion is that this
version of the module, having been written prior to perl 5.6 and perl 5.8,
will simply not build on these relatively recent versions of perl. We don't
get to see which version of your perl you're running (afaict).

My advice would be to install version 2.34 (the latest) - or perhaps version
2.29 if, for some reason, you have to avoid the separate downloading and
installing of expat.

Cheers,
Rob
 
T

Tassilo v. Parseval

Also sprach Silas Justiniano:
Hello all. I'm trying to install XML Parse... [perl Makefile.PL] works
well, but [make] returns me:

# make make[1]: Entering directory
`/s3g/down/xml-parser/XML-Parser-2.20/Expat'
^^^^
The oldest version on the CPAN I found was 2.28 which is from early
2000. The errors you get indicate that 2.20 is not prepared for a
threaded perl that you are using. Probably because it's too old. Try the
latest version instead.
cc -c -Iexpat/xmltok -Iexpat/xmlparse -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.20\"
-DXS_VERSION=\"2.20\" -fPIC "-I/usr/lib/perl/5.8/CORE" -o Expat.o
Expat.c
Expat.xs: In function `append_error':
Expat.xs:209: error: `my_perl' undeclared (first use in this function)
Expat.xs:209: error: (Each undeclared identifier is reported only once
Expat.xs:209: error: for each function it appears in.)

[...]

Tassilo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top