Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345787 - dev-util/gtk-doc-am-1.15 fails to build
Summary: dev-util/gtk-doc-am-1.15 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo SGML project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-16 18:36 UTC by lyle2.0
Modified: 2010-12-28 13:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log file (config.log,27.50 KB, text/plain)
2010-11-16 18:45 UTC, lyle2.0
Details
/etc/xml/catalog (catalog,236 bytes, text/plain)
2010-11-19 15:38 UTC, lyle2.0
Details
/etc/xml/docbook (docbook,13.16 KB, application/xml)
2010-11-19 15:39 UTC, lyle2.0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lyle2.0 2010-11-16 18:36:11 UTC
Emerging dev-util/gtk-doc-am-1.15 fails with an error message.

Reproducible: Always

Steps to Reproduce:
1. emerge --oneshot =dev-util/gtk-doc-am-1.15

Actual Results:  
[...]
checking for xmlcatalog... /usr/bin/xmlcatalog
checking for DocBook XML DTD V4.3 in XML catalog... not found
configure: error: could not find DocBook XML DTD V4.3 in XML catalog

!!! Please attach the following file when seeking support:
!!! /home/lhanson/tmp/portage/dev-util/gtk-doc-am-1.15/work/gtk-doc-1.15/config.log
 * ERROR: dev-util/gtk-doc-am-1.15 failed:
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_configure
 *   environment, line 2543:  Called econf '--with-xml-catalog=/etc/xml/catalog'
 *     ebuild.sh, line  544:  Called die
 * The specific snippet of code:
 *                      die "econf failed"

Expected Results:  
Installed successfully.

$ emerge --info =dev-util/gtk-doc-am-1.15
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r3, 2.6.31-gentoo-r6 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Pentium_III_-Katmai-with-gentoo-1.12.13
Timestamp of tree: Sun, 14 Nov 2010 07:45:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=pentium3 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -mtune=pentium3 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.tds.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://lug.mtu.edu/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.mirrors.pair.com/ http://gentoo.noved.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/lhanson/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 lyle2.0 2010-11-16 18:45:35 UTC
Created attachment 254537 [details]
config.log file

Attached config.log.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-11-16 21:20:03 UTC
configure:12979: checking for DocBook XML DTD V4.3 in XML catalog
configure:12982: $XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.3//EN" >&2
No entry for PUBLIC -//OASIS//DTD DocBook XML V4.3//EN
configure:12985: $? = 4
configure:12990: result: not found
configure:12992: error: could not find DocBook XML DTD V4.3 in XML catalog

So let's do that manually:

$ xmlcatalog --noout /etc/xml/catalog "-//OASIS//DTD DocBook XML V4.3//EN"
file:///usr/share/sgml/docbook/xml-dtd-4.3/docbookx.dtd

Works for me. So we continue:
qfile ...
app-text/docbook-xml-dtd (/usr/share/sgml/docbook/xml-dtd-4.3/docbookx.dtd)

gtk-doc-am propery DEPENDs on app-text/docbook-xml-dtd:4.3 so I don't see how it could be missing on your system.
Comment 3 lyle2.0 2010-11-16 22:34:21 UTC
> $ xmlcatalog --noout /etc/xml/catalog "-//OASIS//DTD DocBook XML V4.3//EN"
> file:///usr/share/sgml/docbook/xml-dtd-4.3/docbookx.dtd

That gives me:
No entry for PUBLIC -//OASIS//DTD DocBook XML V4.3//EN
No entry for SYSTEM file:///usr/share/sgml/docbook/xml-dtd-4.3/docbookx.dtd
No entry for URI file:///usr/share/sgml/docbook/xml-dtd-4.3/docbookx.dtd

> Works for me. So we continue:
> qfile ...
> app-text/docbook-xml-dtd (/usr/share/sgml/docbook/xml-dtd-4.3/docbookx.dtd)

Same results here.

I *do* have a /usr/share/sgml/docbook/xml-dtd-4.3/docbookx.dtd file, and if it helps here's the version info from it:
$Id: docbookx.dtd,v 1.21 2004/03/31 10:59:14 nwalsh Exp $
Comment 4 Arttu Valo 2010-11-19 00:52:16 UTC
What do you have in /etc/xml/catalog and /etc/xml/docbook?
Comment 5 lyle2.0 2010-11-19 15:38:43 UTC
Created attachment 254839 [details]
/etc/xml/catalog

Attached /etc/xml/catalog
Comment 6 lyle2.0 2010-11-19 15:39:16 UTC
Created attachment 254841 [details]
/etc/xml/docbook

Attached /etc/xml/docbook
Comment 7 Arttu Valo 2010-11-19 16:54:15 UTC
Something seems to have emptied your XML DTD catalog. It only contains an empty catalog element.

I don't know if there is an easier way to get the catalog contents back than to re-emerge the packages which provide dtds so that they get re-registered in the catalog. Following might help:

qlist -CLIS docbook-x | xargs -r emerge -1

This should re-emerge the docbook xml packages you have installed, and (looking at my box) you will still be missing at least glade and scrollkeeper entries (if you use them), so you might want to emerge -1 them as well.

I have no idea what could empty the catalog in this way. Maybe libxml2 or some other library which might be used to access the catalog file doesn't work right with your -O3? Maybe you've hit a weird bug in sgml-catalog.eclass or one of the scripts it calls?
Comment 8 lyle2.0 2010-11-19 18:14:13 UTC
(In reply to comment #7)
> qlist -CLIS docbook-x | xargs -r emerge -1

That seems to have resolved it. Your guess is better than mine as far as what might have emptied the catalog.

Thanks a lot for your help!
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-23 15:53:28 UTC
from what concerns gnome, -O3 cflag is not supported. However if you can reproduce the problem with -O2, we would be happy to know as it might also help with the infamous bug #128952.
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-28 13:41:05 UTC
closing per previous comments.