[libvirt] make install fails, missing HTML files

Hi, I'm not sure if this is a bug or if I'm missing some tools: When doing a fresh git clone && ./autogen.sh, make install fails because it complains about some missing HTML doc files. # ./autogen.sh ...... configure: Libraries configure: configure: libxml: -I/usr/include/libxml2 -lxml2 configure: libcurl: no configure: libssh2: no configure: gnutls: -lgnutls -lpthread configure: sasl: -lsasl2 configure: avahi: no configure: polkit: no configure: selinux: no configure: apparmor: no configure: numactl: no configure: capng: no configure: xen: -lxenstore configure: hal: no configure: devkit: no configure: netcf: no configure: xmlrpc: no ....... # make ......... make[3]: Leaving directory `/root/tmp/libvirt/docs' (./apibuild.py) missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD ..... (lots more) # ll docs/*html | wc -l 8 # ll docs/*html.in | wc -l 51 Could someone please cross-check? thx,kr tom

On Thu, Nov 12, 2009 at 12:30:22PM +0100, Thomas Treutner wrote:
Hi,
I'm not sure if this is a bug or if I'm missing some tools:
When doing a fresh git clone && ./autogen.sh, make install fails because it complains about some missing HTML doc files.
# ./autogen.sh ...... configure: Libraries configure: configure: libxml: -I/usr/include/libxml2 -lxml2 configure: libcurl: no configure: libssh2: no configure: gnutls: -lgnutls -lpthread configure: sasl: -lsasl2 configure: avahi: no configure: polkit: no configure: selinux: no configure: apparmor: no configure: numactl: no configure: capng: no configure: xen: -lxenstore configure: hal: no configure: devkit: no configure: netcf: no configure: xmlrpc: no .......
# make ......... make[3]: Leaving directory `/root/tmp/libvirt/docs' (./apibuild.py) missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD ..... (lots more)
You are missing the XHTML DTDs on your system. On Fedora/RHEL this is in the RPM called xhtml1-dtds-1.0-20020801.4.noarch Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On Thu, Nov 12, 2009 at 11:34:13AM +0000, Daniel P. Berrange wrote:
On Thu, Nov 12, 2009 at 12:30:22PM +0100, Thomas Treutner wrote:
Hi,
I'm not sure if this is a bug or if I'm missing some tools:
When doing a fresh git clone && ./autogen.sh, make install fails because it complains about some missing HTML doc files.
# ./autogen.sh ...... configure: Libraries configure: configure: libxml: -I/usr/include/libxml2 -lxml2 configure: libcurl: no configure: libssh2: no configure: gnutls: -lgnutls -lpthread configure: sasl: -lsasl2 configure: avahi: no configure: polkit: no configure: selinux: no configure: apparmor: no configure: numactl: no configure: capng: no configure: xen: -lxenstore configure: hal: no configure: devkit: no configure: netcf: no configure: xmlrpc: no .......
# make ......... make[3]: Leaving directory `/root/tmp/libvirt/docs' (./apibuild.py) missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD missing XHTML1 DTD ..... (lots more)
You are missing the XHTML DTDs on your system. On Fedora/RHEL this is in the RPM called xhtml1-dtds-1.0-20020801.4.noarch
Note that it should not be a hard requirement, you should just get the errors about the missing DTDs making validation impossible but the HTML files are generated. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On Thursday 12 November 2009 13:47:32 Daniel Veillard wrote:
On Thu, Nov 12, 2009 at 11:34:13AM +0000, Daniel P. Berrange wrote:
You are missing the XHTML DTDs on your system. On Fedora/RHEL this is in the RPM called xhtml1-dtds-1.0-20020801.4.noarch
Note that it should not be a hard requirement, you should just get the errors about the missing DTDs making validation impossible but the HTML files are generated.
Installed w3c-dtd-xhtml (debian lenny), doesn't help, because: xmlcatalog /etc/xml/catalog "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" No entry for SYSTEM http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd No entry for URI http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd xmlcatalog /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN" file:///usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd I'm not much into XML - is the Debian package faulty or shouldn't one rely on the way the docs/Makefile works? kr,t

2009/11/12 Thomas Treutner <thomas@scripty.at>:
On Thursday 12 November 2009 13:47:32 Daniel Veillard wrote:
On Thu, Nov 12, 2009 at 11:34:13AM +0000, Daniel P. Berrange wrote:
You are missing the XHTML DTDs on your system. On Fedora/RHEL this is in the RPM called xhtml1-dtds-1.0-20020801.4.noarch
Note that it should not be a hard requirement, you should just get the errors about the missing DTDs making validation impossible but the HTML files are generated.
Installed w3c-dtd-xhtml (debian lenny), doesn't help, because:
xmlcatalog /etc/xml/catalog "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" No entry for SYSTEM http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd No entry for URI http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
xmlcatalog /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN" file:///usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd
I'm not much into XML - is the Debian package faulty or shouldn't one rely on the way the docs/Makefile works?
kr,t
I came across this problem some time ago, too. I'm using Ubuntu, so it's basically Debian. I somewhat solved it by hacking my /etc/xml/catalog. I added this into the <catalog> element: <rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/> <rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/> Matthias

On Thu, Nov 12, 2009 at 04:01:39PM +0100, Matthias Bolte wrote:
2009/11/12 Thomas Treutner <thomas@scripty.at>:
On Thursday 12 November 2009 13:47:32 Daniel Veillard wrote:
On Thu, Nov 12, 2009 at 11:34:13AM +0000, Daniel P. Berrange wrote:
You are missing the XHTML DTDs on your system. On Fedora/RHEL this is in the RPM called xhtml1-dtds-1.0-20020801.4.noarch
Note that it should not be a hard requirement, you should just get the errors about the missing DTDs making validation impossible but the HTML files are generated.
Installed w3c-dtd-xhtml (debian lenny), doesn't help, because:
xmlcatalog /etc/xml/catalog "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" No entry for SYSTEM http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd No entry for URI http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
xmlcatalog /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN" file:///usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd
I'm not much into XML - is the Debian package faulty or shouldn't one rely on the way the docs/Makefile works?
kr,t
I came across this problem some time ago, too. I'm using Ubuntu, so it's basically Debian.
I somewhat solved it by hacking my /etc/xml/catalog. I added this into the <catalog> element:
<rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
<rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
Hmm, well on Fedora/RHEL this works just fine too: xmlcatalog /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN" so why don't we just change the Makefile to use that instead of the URI, then it should work everywhere Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

On Thu, Nov 12, 2009 at 03:03:49PM +0000, Daniel P. Berrange wrote:
On Thu, Nov 12, 2009 at 04:01:39PM +0100, Matthias Bolte wrote:
2009/11/12 Thomas Treutner <thomas@scripty.at>:
On Thursday 12 November 2009 13:47:32 Daniel Veillard wrote:
On Thu, Nov 12, 2009 at 11:34:13AM +0000, Daniel P. Berrange wrote:
You are missing the XHTML DTDs on your system. On Fedora/RHEL this is in the RPM called xhtml1-dtds-1.0-20020801.4.noarch
Note that it should not be a hard requirement, you should just get the errors about the missing DTDs making validation impossible but the HTML files are generated.
Installed w3c-dtd-xhtml (debian lenny), doesn't help, because:
xmlcatalog /etc/xml/catalog "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" No entry for SYSTEM http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd No entry for URI http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
xmlcatalog /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN" file:///usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd
I'm not much into XML - is the Debian package faulty or shouldn't one rely on the way the docs/Makefile works?
kr,t
I came across this problem some time ago, too. I'm using Ubuntu, so it's basically Debian.
I somewhat solved it by hacking my /etc/xml/catalog. I added this into the <catalog> element:
<rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
<rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
Hmm, well on Fedora/RHEL this works just fine too:
xmlcatalog /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN"
so why don't we just change the Makefile to use that instead of the URI, then it should work everywhere
Well it's slightly broen because in the XML only the URI (system id) is mandatory. if the Debian systems could be fixed that would be nicer, but I'm fine with changing the Makefile too. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/

On Thursday 12 November 2009 16:01:39 Matthias Bolte wrote:
I came across this problem some time ago, too. I'm using Ubuntu, so it's basically Debian.
I somewhat solved it by hacking my /etc/xml/catalog. I added this into the <catalog> element:
<rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
<rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
Matthias
Thanks for the tip, but it still fails. http://pastebin.com/m3bf17c73 http://pastebin.com/m90f9ba6 <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/> <rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/> <delegatePublic publicIdStartString="ISO 8879:1986//ENTITIES" catalog="file:///etc/xml/sgml-data.xml"/> ........ </catalog> # ls -l /usr/share/xml/xhtml/schema/dtd/1.0/ total 104 -rw-r--r-- 1 root root 898 2004-08-11 06:17 catalog -rw-r--r-- 1 root root 1385 2004-08-11 06:17 catalog.xml lrwxrwxrwx 1 root root 31 2009-11-12 12:50 xhtml1.dcl -> ../../../../declaration/xml.dcl -rw-r--r-- 1 root root 32950 2002-08-01 20:23 xhtml1-frameset.dtd -rw-r--r-- 1 root root 25473 2002-08-01 20:23 xhtml1-strict.dtd -rw-r--r-- 1 root root 32112 2002-08-01 20:23 xhtml1-transitional.dtd Any suggestions? kr,tom

2009/11/13 Thomas Treutner <thomas@scripty.at>:
On Thursday 12 November 2009 16:01:39 Matthias Bolte wrote:
I came across this problem some time ago, too. I'm using Ubuntu, so it's basically Debian.
I somewhat solved it by hacking my /etc/xml/catalog. I added this into the <catalog> element:
<rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
<rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
Matthias
Thanks for the tip, but it still fails.
http://pastebin.com/m3bf17c73 http://pastebin.com/m90f9ba6
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/> <rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/> <delegatePublic publicIdStartString="ISO 8879:1986//ENTITIES" catalog="file:///etc/xml/sgml-data.xml"/> ........ </catalog>
# ls -l /usr/share/xml/xhtml/schema/dtd/1.0/ total 104 -rw-r--r-- 1 root root 898 2004-08-11 06:17 catalog -rw-r--r-- 1 root root 1385 2004-08-11 06:17 catalog.xml lrwxrwxrwx 1 root root 31 2009-11-12 12:50 xhtml1.dcl -> ../../../../declaration/xml.dcl -rw-r--r-- 1 root root 32950 2002-08-01 20:23 xhtml1-frameset.dtd -rw-r--r-- 1 root root 25473 2002-08-01 20:23 xhtml1-strict.dtd -rw-r--r-- 1 root root 32112 2002-08-01 20:23 xhtml1-transitional.dtd
Any suggestions?
kr,tom
Strange. Does it help if you revert the changes to /etc/xml/catalog and apply the attached patch? Matthias

2009/11/13 Matthias Bolte <matthias.bolte@googlemail.com>:
2009/11/13 Thomas Treutner <thomas@scripty.at>:
On Thursday 12 November 2009 16:01:39 Matthias Bolte wrote:
I came across this problem some time ago, too. I'm using Ubuntu, so it's basically Debian.
I somewhat solved it by hacking my /etc/xml/catalog. I added this into the <catalog> element:
<rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
<rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/>
Matthias
Thanks for the tip, but it still fails.
http://pastebin.com/m3bf17c73 http://pastebin.com/m90f9ba6
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <rewriteSystem systemIdStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/> <rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/" rewritePrefix="file:///usr/share/xml/xhtml/schema/dtd/1.0/"/> <delegatePublic publicIdStartString="ISO 8879:1986//ENTITIES" catalog="file:///etc/xml/sgml-data.xml"/> ........ </catalog>
# ls -l /usr/share/xml/xhtml/schema/dtd/1.0/ total 104 -rw-r--r-- 1 root root 898 2004-08-11 06:17 catalog -rw-r--r-- 1 root root 1385 2004-08-11 06:17 catalog.xml lrwxrwxrwx 1 root root 31 2009-11-12 12:50 xhtml1.dcl -> ../../../../declaration/xml.dcl -rw-r--r-- 1 root root 32950 2002-08-01 20:23 xhtml1-frameset.dtd -rw-r--r-- 1 root root 25473 2002-08-01 20:23 xhtml1-strict.dtd -rw-r--r-- 1 root root 32112 2002-08-01 20:23 xhtml1-transitional.dtd
Any suggestions?
kr,tom
Strange.
Does it help if you revert the changes to /etc/xml/catalog and apply the attached patch?
Matthias
Ah, I can reproduce your pastebin'ed output if I uninstall xsltproc. So I assume you're missing the xsltproc package. The Makefile output is not very helpful in this situation, it tries to validate files that have not been generated, because xsltproc is missing. Matthias

On Friday 13 November 2009 16:41:02 Matthias Bolte wrote:
Ah, I can reproduce your pastebin'ed output if I uninstall xsltproc. So I assume you're missing the xsltproc package. The Makefile output is not very helpful in this situation, it tries to validate files that have not been generated, because xsltproc is missing.
Thx a lot, that works (even w/o your patches)! kr,t

2009/11/13 Thomas Treutner <thomas@scripty.at>:
On Friday 13 November 2009 16:41:02 Matthias Bolte wrote:
Ah, I can reproduce your pastebin'ed output if I uninstall xsltproc. So I assume you're missing the xsltproc package. The Makefile output is not very helpful in this situation, it tries to validate files that have not been generated, because xsltproc is missing.
Thx a lot, that works (even w/o your patches)!
kr,t
Well, I assume you still have the two rewite lines in your /etc/xml/catalog, that's why it's working without the patch. Matthias

On Thu, Nov 12, 2009 at 03:52:38PM +0100, Thomas Treutner wrote:
On Thursday 12 November 2009 13:47:32 Daniel Veillard wrote:
On Thu, Nov 12, 2009 at 11:34:13AM +0000, Daniel P. Berrange wrote:
You are missing the XHTML DTDs on your system. On Fedora/RHEL this is in the RPM called xhtml1-dtds-1.0-20020801.4.noarch
Note that it should not be a hard requirement, you should just get the errors about the missing DTDs making validation impossible but the HTML files are generated.
Installed w3c-dtd-xhtml (debian lenny), doesn't help, because:
xmlcatalog /etc/xml/catalog "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" No entry for SYSTEM http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd No entry for URI http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
xmlcatalog /etc/xml/catalog "-//W3C//DTD XHTML 1.0 Strict//EN" file:///usr/share/xml/xhtml/schema/dtd/1.0/xhtml1-strict.dtd
I'm not much into XML - is the Debian package faulty or shouldn't one rely on the way the docs/Makefile works?
yes they are faulty as they registered the DTD just by public identifier and not by system identifier. In XML only system identifiers are mandatory, so that's rather dubious at best and broken if you ask me, to only register public IDs in an XML catalog ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/
participants (4)
-
Daniel P. Berrange
-
Daniel Veillard
-
Matthias Bolte
-
Thomas Treutner