# emerge gimp [...] *** Building HTML *** rm -rf ./html mkdir ./html cd ./html && gtkdoc-mkhtml libgimpbase ../libgimpbase-docs.sgml file:///etc/xml/catalog:1: parser error : Document is empty ^ file:///etc/xml/catalog:1: parser error : Start tag expected, '<' not found ^ I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl" compilation error: file /usr/share/gtk-doc/data/gtk-doc.xsl line 6 element import xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl make[3]: *** [html-build.stamp] Error 5 make[3]: Leaving directory `/var/tmp/portage/gimp-2.2.8/work/gimp-2.2.8/devel-docs/libgimpbase' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gimp-2.2.8/work/gimp-2.2.8/devel-docs' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gimp-2.2.8/work/gimp-2.2.8' make: *** [all] Error 2 !!! ERROR: media-gfx/gimp-2.2.8 failed. !!! Function src_compile, Line 138, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. # equery belongs /etc/xml/catalog [ Searching for file(s) /etc/xml/catalog in *... ] # cat /etc/xml/catalog [empty file] # emerge info Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 i686) ================================================================= System uname: 2.6.11-gentoo-r11 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Jun 10 2005, 00:35:46)] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -march=athlon-xp -fforce-addr -fomit-frame-pointer -falign-functions=4 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache digest distcc distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/" LANG="it_IT@euro" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X X509 a52 aac aaca52 aad aalib alsa apache2 avi berkdb bitmap-fonts bzip2 cdparanoia cdr chroot crypt cscope cups curl dga dts dvb dvd dvdr dvdread emboss encode erandom fam fbcon ffmpeg flac flash foomaticdb fortran freetype gd gdbm ggi gif gimpprint ginac glut gnutls gpm gstreamer gtk gtk2 guile hal imagemagick imap imlib innodb ipv6 jack java javascript jikes jpeg kde kerberos krb4 lcms ldap libcaca libg++ libwww live lzo mad matroska mcal md5sum memlimit mikmod mmx mmxext mng motif mozilla mozsvg mp3 mpeg mpi mysql ncurses network nls nptl nvidia odbc offensive ogg oggvorbis opengl pam parse-clocks pcre pdflib perl pic plotutils png ppds prelude python qhull qt quicktime readline real rtc samba scanner sdl skey slang slp sndfile snmp socks5 speex spell sqlite sse ssl stream svg tcltk tcpd tetex tga theora tiff truetype truetype-fonts type1-fonts usb v4l v4l2 vcd vorbis win32codecs wmf wxwindows xine xml xml2 xosd xprint xv xvid xvmc yaz zlib linguas_it userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
# build-docbook-catalog add command failed add command failed add command failed add command failed add command failed add command failed add command failed Found DocBook XSL stylesheets in /usr/share/sgml/docbook/xsl-stylesheets-1.68.1 Found DocBook XML 4.2 in /usr/share/sgml/docbook/xml-dtd-4.2 Found DocBook XML 4.3 in /usr/share/sgml/docbook/xml-dtd-4.3 Found DocBook XML 4.1.2 in /usr/share/sgml/docbook/xml-dtd-4.1.2 Using ISO DocBook entities from /usr/share/sgml/docbook/xml-dtd-4.3/ent # cat /etc/xml/catalog #
/etc/xml/catalog is setup in other packages, during post-install gentoo ~ # ls /etc/xml/catalog /etc/xml/catalog gentoo ~ # equery b /etc/xml/catalog [ Searching for file(s) /etc/xml/catalog in *... ] gentoo ~ # equery b /etc/xml [ Searching for file(s) /etc/xml in *... ] app-text/docbook-xml-dtd-4.1.2-r5 (/etc/xml) app-text/docbook-xml-dtd-4.2-r1 (/etc/xml) app-text/docbook-xml-dtd-4.3 (/etc/xml) gnome-base/libglade-2.5.0 (/etc/xml)
# equery belongs /etc/xml [ Searching for file(s) /etc/xml in *... ] app-text/docbook-xml-dtd-4.2-r1 (/etc/xml) app-text/docbook-xml-dtd-4.3 (/etc/xml) app-text/docbook-xml-dtd-4.1.2-r5 (/etc/xml) gnome-base/libglade-2.5.0 (/etc/xml) # emerge -1 =app-text/docbook-xml-dtd-4.2-r1 =app-text/docbook-xml-dtd-4.3 =app-text/docbook-xml-dtd-4.1.2-r5 =gnome-base/libglade-2.5.0 [...] # cat /etc/xml/catalog #
if you try build-docbook-catalog now ( after re-emerging that stuff ) is the file still empty?
Yes. The output doesn't change, either.
Something truncated your global catalog file; it may be a bug somewhere but I guess it would be almost impossible to track the cause at this point. If you have any ideas as to what could have touched that file, however, please let us know. To fix your catalog now, try running the following as root: rm -f /etc/xml/catalog build-docbook-catalog
It works, thanks. I have no idea of what truncated my catalog, but it surely is some emerge command in the (near?) past since I've never used tetex or things like that in my life.