Opened 7 years ago

Closed 7 years ago

#9706 closed enhancement (fixed)

libxml2-2.9.5

Reported by: bdubbs@… Owned by: Pierre Labastie
Priority: normal Milestone: 8.2
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

New point version.

Change History (7)

comment:1 by bdubbs@…, 7 years ago

Changes at http://xmlsoft.org/news.html the changes seem to be mostly bug fixes.

The sed in the book is not needed. Without it, a couple of warnings are displayed, but the python module is built and installed.

comment:2 by Pierre Labastie, 7 years ago

Owner: changed from blfs-book@… to Pierre Labastie
Status: newassigned

comment:3 by Pierre Labastie, 7 years ago

On one machine, the tests hang, on another, they don't... On the machine where the tests hang, it is because it waits for a external web site to answer. On the machine where the tests do not hang, no external web access is attempted...

comment:4 by bdubbs@…, 7 years ago

I did not see any web site queries. I have:

Total 3146 tests, no errors
.........
Total 9 tests, no errors
Total: 1171 functions, 280918 tests, 0 errors
Total 2273 tests, 15 errors, 0 leaks
15 errors were expected

undefined symbol: _PyVerify_fd
Note that I had removed the sed.

For the download, I already had http://www.w3.org/XML/Test/xmlts20130923.tar.gz and ran:

TS=20130923
tar -xf ../xmlts${TS}.tar.gz  &&  make check 

Perhaps that's the download you refer to.

in reply to:  4 comment:5 by Pierre Labastie, 7 years ago

Replying to bdubbs@…:

I did not see any web site queries. I have:

Total 3146 tests, no errors
.........
Total 9 tests, no errors

This is where it stops on the machine where the tests hang.

For the download, I already had http://www.w3.org/XML/Test/xmlts20130923.tar.gz

Same here.

Perhaps that's the download you refer to.

No. I use strace, and it shows:

socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(3, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("128.30.52.100")}, 16) = -1 EINPROGRESS (Operation now in progress)
poll([{fd=3, events=POLLOUT}], 1, 60000) = 1 ([{fd=3, revents=POLLOUT}])
getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
sendto(3, "GET /TR/xhtml11/DTD/xhtml11.dtd "..., 85, 0, NULL, 0) = 85
recvfrom(3, 0x159fd60, 4096, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily un
available)
poll([{fd=3, events=POLLIN}], 1, 60000) = 0 (Timeout)
recvfrom(3, 0x107a2a0, 4096, 0, NULL, NULL) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}], 1, 60000^C

I stop it since it loops doing the same thing every minute. On the machine where it works, I have no occurrence of xhtml11 in the strace log.

comment:6 by Pierre Labastie, 7 years ago

OK, I think I understand what is going on. On the machine where the tests hang, http://localhost serves a copy of www.linuxfromscratch.org website. I use it to test the html before I make jhalfs releases.

Now testapi.c tries to access http://localhost/ with various flags, and one is DTD_VALID. Guess what, the first lines read when you access the linuxfromscratch.org website are:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

So that the parser tries to access the DTD on the web. Why it fails is not clear to me, but at least I understand why no other machine sees this. I'll add a note that local httpd should be shut down during tests.

comment:7 by Pierre Labastie, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r19198

Note: See TracTickets for help on using tickets.