Ticket #4447 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

DocBook detection in autoconf is against an old version; patch enclosed

Reported by: dankna Owned by: igloo
Priority: normal Milestone: 7.0.2
Component: Build System Version: 7.0.1 RC1
Keywords: Cc: dankna@…
Operating System: MacOS X Architecture: x86_64 (amd64)
Type of failure: Incorrect warning at compile-time Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo) (diff)

Running ./configure on a stock 7.0.0.20101026 snapshot reports:

checking for DocBook DTD... I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
conftest.xml:5: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
]>
  ^
conftest.xml:6: element book: validity error : No declaration for attribute id of element book
<book id="test">
               ^
conftest-book.xml:2: parser error : Entity 'ldquo' not defined
  <title>A DocBook &ldquo;Test Document&rdquo;</title>
                          ^
conftest-book.xml:2: parser error : Entity 'rdquo' not defined
  <title>A DocBook &ldquo;Test Document&rdquo;</title>
                                              ^
conftest-book.xml:11: parser error : chunk is not well balanced

^
conftest.xml:7: parser error : Failure to process entity conftest-book
&conftest-book;
               ^
conftest.xml:7: parser error : Entity 'conftest-book' not defined
&conftest-book;
               ^
failed
configure: WARNING: cannot find a DTD for DocBook XML V4.2, you will not be able to validate your documentation
configure: WARNING: check your XML_CATALOG_FILES environment variable and/or /etc/xml/catalog
checking for xsltproc... /usr/local/bin/xsltproc
checking for DocBook XSL stylesheet... no
configure: WARNING: cannot find DocBook XSL stylesheets, you will not be able to build the documentation

But this is erroneous because I have laboriously installed DocBook?'s XSL many times. I traced the problem to the fact that autoconf was checking specifically for version 4.2, and I have installed version 4.5, which is the latest as of this writing. Bumping the version numbers in aclocal.m4 and running autoreconf fixed the problem. Patch attached.

Attachments

aclocal.m4.diff Download (0.6 KB) - added by dankna 3 years ago.
diff-format patch against aclocal.m4 in the root of the snapshot tree

Change History

Changed 3 years ago by dankna

diff-format patch against aclocal.m4 in the root of the snapshot tree

Changed 3 years ago by dankna

  • cc dankna@… added

Changed 3 years ago by igloo

  • description modified (diff)

Changed 3 years ago by igloo

  • status changed from new to patch

The docbook-xml package in Debian stable looks like it includes schemas for all versions from 4.0 through 4.5.

Should check what versions we have easily available on Windows and OS X before upping the version.

Changed 3 years ago by igloo

  • owner set to igloo

Changed 3 years ago by igloo

  • milestone set to 7.0.2

Changed 3 years ago by igloo

OS X looks fine:

$ ls /opt/local/share/xml/docbook/
4.1.2   4.2     4.3     4.4     4.5     5.0

Changed 3 years ago by igloo

And cygwin too:

$ ls -d /usr/share/sgml/docbook/xml*
/usr/share/sgml/docbook/xml-dtd-4.1.2  /usr/share/sgml/docbook/xml-dtd-4.4
/usr/share/sgml/docbook/xml-dtd-4.2    /usr/share/sgml/docbook/xml-dtd-4.5
/usr/share/sgml/docbook/xml-dtd-4.3

Changed 3 years ago by igloo

  • status changed from patch to closed
  • resolution set to fixed

Fixed by:

Sun Nov 14 15:50:23 GMT 2010  Ian Lynagh <igloo@earth.li>
  * Update to docbook 4.5; fixes trac #4447
Note: See TracTickets for help on using tickets.