Bug 1342981 - Numerous failed attempts during compilation to load network entity despite no I/O error
Summary: Numerous failed attempts during compilation to load network entity despite no...
Keywords:
Status: CLOSED DUPLICATE of bug 1006522
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-06 09:27 UTC by jean-christophe manciot
Modified: 2016-06-06 14:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-06 11:01:30 UTC
Embargoed:


Attachments (Terms of Use)
Whole log (1.45 MB, text/plain)
2016-06-06 09:27 UTC, jean-christophe manciot
no flags Details

Description jean-christophe manciot 2016-06-06 09:27:21 UTC
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

Comment 1 Peter Krempa 2016-06-06 11:01:30 UTC
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 ***

Comment 2 jean-christophe manciot 2016-06-06 11:22:24 UTC
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?

Comment 3 Cole Robinson 2016-06-06 12:49:06 UTC
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

Comment 4 jean-christophe manciot 2016-06-06 14:26:48 UTC
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


Note You need to log in before you can comment on or make changes to this bug.