Created attachment 1165131 [details] Whole log Description of problem: ---------------------- The compilation script fails to load network entity and concludes that there's an I/O error. Manual attempt is successful. Version-Release number of selected component (if applicable): ------------------------------------------------------------ Libvirt 1.3.5 from git sources Steps to Reproduce: ------------------ echo -------- echo Cleaning echo -------- cd git-libvirt git reset --hard git clean -fxd :/ git fetch --progress --prune origin git checkout 1.3.5 echo ----------- echo Configuring echo ----------- export CLEAN_SUBMODULE=1 ./autogen.sh ./configure --with-openssl \ --with-systemd-daemon \ --with-numactl \ --with-numad \ --with-default-editor=gedit \ --without-xen --without-xen-inotify --without-xenapi --without-libxl \ --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib echo ------------------------------------------------ echo "Modifying src/util/virnetdev.c:" echo "99 #define VIR_DAD_WAIT_TIMEOUT 60 /* seconds */" echo "Not sure whether it is still necessary or not" echo "Cf. https://bugzilla.redhat.com/show_bug.cgi?id=1275468" echo -------------------------------------------------------- sed -i 's|VIR_DAD_WAIT_TIMEOUT 20|VIR_DAD_WAIT_TIMEOUT 60|g' src/util/virnetdev.c echo --------- echo Compiling echo --------- make Actual results: -------------- ... Generating drvvmware.html.tmp I/O error : Attempt to load network entity http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd drvvmware.html.in:2: warning: failed to load external entity "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" ^ I/O error : Attempt to load network entity http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ../docs/sitemap.html.in:2: warning: failed to load external entity "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" ^ missing XHTML1 DTD Generating governance.html.tmp I/O error : Attempt to load network entity http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd governance.html.in:2: warning: failed to load external entity "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" ^ I/O error : Attempt to load network entity http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ../docs/sitemap.html.in:2: warning: failed to load external entity "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" ... Manual attempt: -------------- wget http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd --2016-06-06 10:50:30-- http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd Resolving www.w3.org (www.w3.org)... 128.30.52.100 Connecting to www.w3.org (www.w3.org)|128.30.52.100|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/xml-dtd] Saving to: ‘xhtml1-strict.dtd’ xhtml1-strict.dtd [ <=> ] 24.88K 165KB/s in 0.2s 2016-06-06 10:50:46 (165 KB/s) - ‘xhtml1-strict.dtd’ saved [25472] It does take a little time to start, so it seems there should be a longer or configurable timeout. Additional info: --------------- Ubuntu 16.04 4.4.0-22
You need to install the 'xhtml1-dtds' package to be able to build libvirt from the git tree. This is not required when building the released .tar.gz packages. *** This bug has been marked as a duplicate of bug 1006522 ***
There is no such existing Ubuntu package. The sources are located here: git://pkgs.fedoraproject.org/xhtml1-dtds Do you know how to build it from those sources?
pkgs.fedoraproject.org is not upstream sources, it's what contains the packaging definition and patches for fedora packages. I googled 'libvirt ubuntu dtds' and found https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1469827 which sounds like the package is called w3c-dtd-xhtml
Yes, building w3c-dtd-xhtml for Xenial from sources https://launchpad.net/ubuntu/+source/w3c-dtd-xhtml/1.2-4 and rebuilding libvirt 1.3.5 solves all related errors. I have made it available alongside libvirt in my PPA for those who are interested in the latest Ubuntu packages: https://gitlab.com/jean-christophe-manciot/ppa