Subject: Re: gtk-doc configure fails with: could not find DocBook XML DTD
To: Jeremy C. Reed <>
From: Julio M. Merino Vidal <>
List: tech-pkg
Date: 06/09/2004 20:35:24
On Wed, 9 Jun 2004 11:00:55 -0700 (PDT)
"Jeremy C. Reed" <> wrote:

> I am trying to test a patch for gnome-libs, but building dependency of
> gtk-doc failed during configure:
> configure:3712: result: /usr/bin/xmlcatalog
> configure:3730: checking for DocBook XML DTD V4.1.2 in XML catalog
> configure:3733: $XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD
> DocBook XML V4.1.2//EN" >&2
> No entry for PUBLIC -//OASIS//DTD DocBook XML V4.1.2//EN
> configure:3736: $? = 4
> configure:3741: result: not found
> configure:3743: error: could not find DocBook XML DTD V4.1.2 in XML
> catalog

What's XML_CATALOG_FILE?  We don't use /etc/xml/catalog within pkgsrc
but ${PKG_SYSCONFDIR}/xml/catalog instead.

> Running it manually:
> reed@puget:/usr/pkgsrc/wip/spamd$ /usr/bin/xmlcatalog --verbose
> /etc/xml/catalog "-//OASIS//DTD DocBook XML V4.1.2//EN"

Works for me.  But xmlcatalog is picking the right catalog file.

> What package is supposed to install this entry?

docbook-xml.  It installs a catalog file inside its installation directory
(prefix/share/xml/docbook), and that catalog is registered in the global
catalog (prefix/share/xml/catalog).  The global catalog is then "sourced"
by the catalog file inside sysconfdir.


Julio M. Merino Vidal <>
The NetBSD Project -