I have a file "default.cst" and an external entity "mgr.dtd".

The XML::Parser built by me is able to parse "default.cst" onlt in 'standalone' mode, but if a refernce is made to external entity, then i get an error, as below.

Log:

-----

error in processing external entity reference at line 2, column 59, byte 82:

<?xml version="1.0" ?>

<!DOCTYPE group SYSTEM "/opt/hpcmgr/etc/templates/mgr.dtd">

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

I see that somehow the XML::Parser built by me is unable to parse if there is a refernce to external entity. But, drilling down further -- I found that XML::Parser requires "libexpat.<xx>" - a library used in parsing. The "libexpat" library has to be built from the "expat-2.0.1" source, which i downloaded and built.

During the make phase of "XML-Parser Module", i see a lot of warnings...

/usr/lib/hpux32/libcres.amemmove.o: section .text PROGBITS AX 8768 32 added to text segment section .IA_64.unwind UNWIND A 12 4 added to text segment section .IA_64.unwind_info PROGBITS A 36 4 added to text segment Searching library /usr/lib/hpux32/milli.a:

ld: (Warning) Unsatisfied symbol "Perl_sv_catpvn_flags" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_pop_scope" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_newSVpv" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_newSViv" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_newSVsv" in file Expat.o

ld: (Warning) Unsatisfied symbol "malloc" in file /usr/local/lib/hpux32/libexpatw.axmlparse.o

ld: (Warning) Unsatisfied symbol "realloc" in file /usr/local/lib/hpux32/libexpatw.axmlparse.o

ld: (Warning) Unsatisfied symbol "_memcpy" in file Expat.o

ld: (Warning) Unsatisfied symbol "_memcmp" in file /usr/local/lib/hpux32/libexpatw.axmlparse.o

ld: (Warning) Unsatisfied symbol "Perl_sv_newmortal" in file Expat.o

ld: (Warning) Unsatisfied symbol "memmove" in file /usr/lib/hpux32/libcres.amemmove.o

ld: (Warning) Unsatisfied symbol "_memset" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_sv_2mortal" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_save_int" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_call_method" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_safesysmalloc" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_Tmarkstack_max_ptr" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_Tstack_sp_ptr" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_Isv_undef_ptr" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_Tstack_max_ptr" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_sv_catpv" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_sv_setpv" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_sv_setiv" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_TSv_ptr" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_free_tmps" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_av_clear" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_gv_stashpv" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_sv_setref_pv" in file Expat.o

ld: (Warning) Unsatisfied symbol "PL_memory_wrap" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_Isv_no_ptr" in file Expat.o

ld: (Warning) Unsatisfied symbol "strncmp" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_sv_free" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_Ttmps_floor_ptr" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_sv_catsv_flags" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_newSV" in file Expat.o

ld: (Warning) Unsatisfied symbol "Perl_newXS" in file Expat.o

Not sure what they mean, can i get a pointer where to start looking ?

My Environment is:

OS - HP-UX 11iv2 Arch - Itanium


In reply to XML::Parser: error in processing external entity reference at line ... by radamdeys

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.