[xml] libxml2-2.3.9 make check error



Hi,

I just downloaded libxml2-2.3.9.tar.gz and am trying to make it.  On Red
Hat Linux 7.0, and with a plain ./configure; make; make check; make
install sequence, I'm seeing errors like the following:

========================================================================
[weiqi gao] $ make check
...
Testing dtd8
Testing dtd9
Testing ent1
Testing ent2
./test/ent2:4: error: Invalid URI: title.xml
<!ENTITY title PUBLIC "-//MY-TITLE//FR" "title.xml">
                                                   ^
./test/ent2:5: error: Invalid URI: img.gif
<!ENTITY image SYSTEM "img.gif" NDATA GIF>
                               ^
warning: failed to load external entity "-//MY-TITLE//FR"
1,10d0
< <?xml version="1.0"?>
< <!DOCTYPE EXAMPLE SYSTEM "example.dtd" [
< <!ENTITY xml "Extensible Markup Language">
< <!ENTITY title PUBLIC "-//MY-TITLE//FR" "title.xml">
< <!ENTITY image SYSTEM "img.gif" NDATA GIF>
< ]>
< <EXAMPLE>
<   &title;
<   This text is about XML, the &xml; and this is an embedded <IMG
src="image"/>< </EXAMPLE>
result.ent2:1: error: Document is empty

^
result.ent2:1: error: Start tag expected, '<' not found

^
Testing ent3
Testing ent4
...
========================================================================

Later on in make check, there are huge amounts of errors in validation
tests that's apparently related to not being able to load DTDs.

When I run "xmllint --valid foo.xml" against
========================================================================
<?xml version="1.0"?>
<!DOCTYPE foo SYSTEM "foo.dtd">
<foo/>
========================================================================

I get the following result:
========================================================================
[weiqi gao] $ xmllint --valid foo.xml 
foo.xml:2: error: failed to load external entity "(null)"
<!DOCTYPE foo SYSTEM "foo.dtd">
                              ^
foo.xml:3: validity error: Validation failed: no DTD found !
<foo/>
    ^
<?xml version="1.0"?>
<!DOCTYPE foo SYSTEM "foo.dtd">
<foo/>
========================================================================

What did I do wrong.

-- 
Weiqi Gao
weiqigao networkusa net





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]