Problems to install XML Parser

Discussion in 'Perl Misc' started by Silas Justiniano, Aug 19, 2005.

  1. 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!
     
    Silas Justiniano, Aug 19, 2005
    #1
    1. Advertising

  2. Silas Justiniano

    Sisyphus Guest

    "Silas Justiniano" <> wrote in message
    news:...
    > 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
     
    Sisyphus, Aug 19, 2005
    #2
    1. Advertising

  3. 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
    --
    use bigint;
    $n=71423350343770280161397026330337371139054411854220053437565440;
    $m=-8,;;$_=$n&(0xff)<<$m,,$_>>=$m,,print+chr,,while(($m+=8)<=200);
     
    Tassilo v. Parseval, Aug 19, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gaizer
    Replies:
    0
    Views:
    404
    Gaizer
    Apr 19, 2004
  2. arne
    Replies:
    0
    Views:
    354
  3. Erik Wasser
    Replies:
    5
    Views:
    463
    Peter J. Holzer
    Mar 5, 2006
  4. Sean
    Replies:
    3
    Views:
    279
    robic0
    Oct 3, 2006
  5. Sean
    Replies:
    0
    Views:
    370
Loading...

Share This Page