the compile spawns all sort of errors in the doc/en directory. They end like this: XPath error : Undefined variable exsl:node-set($div) ^ compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/html-rtf.xsl line 304 element apply-templates xsl:apply-templates : could not compile select expression 'exsl:node-set($div)' XPath error : Undefined variable compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/docbook.xsl line 138 element base Attribute template href: failed to compile $html.base XPath error : Undefined variable compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/docbook.xsl line 141 element meta Attribute template content: failed to compile $VERSION XPath error : Undefined variable substring-before($stylesheets, ' ') ^ compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/docbook.xsl line 198 element link Attribute template href: failed to compile substring-before($stylesheets, ' ') XPath error : Undefined variable substring-after($href,'#') ^ compilation error: file file:///usr/share/sgml/docbook/xsl-stylesheets-1.68.1/html/docbook.xsl line 431 element link Attribute template linkend: failed to compile substring-after($href,'#') Reproducible: Always Steps to Reproduce: 1. emerge dia Actual Results: the emerge failed. Expected Results: Compiled and installed. Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r8 i686) ================================================================= System uname: 2.6.12-gentoo-r8 i686 AMD Athlon(TM) XP1800+ Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aac alsa apache2 apm arts avi berkdb bitmap-fonts bonobo crypt cups curl dvd eds emboss encode esd fam ffmpeg foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java jpeg kde libg++ libwww live mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses network nls ogg oggvorbis opengl oss pam pda pdflib perl png print python qt quicktime readline real ruby samba sdl spell sse sse2 ssl svg svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis win32codecs xanim xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
-r1 compiles for me. After looking and bug 98610 I tried reemerging build-docbook-catalog and docbook-xsl-stylesheets, but -r2 still fails.
Could you please paste the output from "emerge -pv libxml2" in you system?
# emerge -pv libxml2 These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-libs/libxml2-2.6.21 -debug -doc +ipv6 +python +readline -static 0 kB Total size of downloads: 0 kB
FWIW, I'm also getting similar errors when I emerge koffice-libs-1.4.1 XPath error : Undefined variable $footnotes[1] ^ compilation error: file /usr/kde/3.4/share/apps/ksgmltools2/docbook/xsl/html/chunk-code.xsl line 954 element apply-templates xsl:apply-templates : could not compile select expression '$footnotes[1]' XPath error : Undefined variable compilation error: file /usr/kde/3.4/share/apps/ksgmltools2/customization/kde-navig.xsl line 97 element apply-templates xsl:apply-templates : could not compile select expression '$up' XPath error : Undefined variable compilation error: file /usr/kde/3.4/share/apps/ksgmltools2/customization/kde-navig.xsl line 165 element apply-templates xsl:apply-templates : could not compile select expression '$prev' XPath error : Undefined variable compilation error: file /usr/kde/3.4/share/apps/ksgmltools2/customization/kde-navig.xsl line 170 element apply-templates xsl:apply-templates : could not compile select expression '$next' XPath error : Undefined variable compilation error: file /usr/kde/3.4/share/apps/ksgmltools2/customization/kde-navig.xsl line 43 element div Attribute template style: failed to compile $kde.common XPath error : Undefined variable compilation error: file /usr/kde/3.4/share/apps/ksgmltools2/customization/kde-navig.xsl line 47 element img Attribute template src: failed to compile $kde.common XPath error : Undefined variable compilation error: file /usr/kde/3.4/share/apps/ksgmltools2/customization/kde-navig.xsl line 50 element img Attribute template src: failed to compile $kde.common XPath error : Undefined variable compilation error: file /usr/kde/3.4/share/apps/ksgmltools2/customization/kde-navig.xsl line 198 element div Attribute template style: failed to compile $kde.common unable to parse ./index.docbook
Sorry, could you please attach the output from "emerge -pv libxml2" as well?
I believe I already did. Here it is again. # emerge -pv libxml2 These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-libs/libxml2-2.6.21 -debug -doc +ipv6 +python +readline -static 0 kB Total size of downloads: 0 kB
Oops, sorry. I meant 'libxslt'.
# emerge -pv libxslt These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-libs/libxslt-1.1.15 +crypt -debug +python -static 0 kB Total size of downloads: 0 kB
Upgrading to libxml2-2.6.21-r1 seems to have fixed the problem. dia installed fine.