Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105270 - dia 0.94-r2 won't compile: sgml error in compiling docs.
Summary: dia 0.94-r2 won't compile: sgml error in compiling docs.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 09:07 UTC by Jeff Tang
Modified: 2005-09-15 10:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Tang 2005-09-08 09:07:46 UTC
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
Comment 1 Jeff Tang 2005-09-08 09:56:41 UTC
-r1 compiles for me.  After looking and bug 98610 I tried reemerging  
build-docbook-catalog and docbook-xsl-stylesheets, but -r2 still fails.
Comment 2 Leonardo Boshell (RETIRED) gentoo-dev 2005-09-08 10:02:30 UTC
Could you please paste the output from "emerge -pv libxml2" in you system?
Comment 3 Jeff Tang 2005-09-08 10:05:46 UTC
# 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
Comment 4 Jeff Tang 2005-09-08 16:10:21 UTC
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
Comment 5 Leonardo Boshell (RETIRED) gentoo-dev 2005-09-11 17:33:34 UTC
Sorry, could you please attach the output from "emerge -pv libxml2" as well?
Comment 6 Jeff Tang 2005-09-12 10:40:06 UTC
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
Comment 7 Leonardo Boshell (RETIRED) gentoo-dev 2005-09-12 12:25:17 UTC
Oops, sorry. I meant 'libxslt'.
Comment 8 Jeff Tang 2005-09-12 16:05:53 UTC
# 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
Comment 9 Jeff Tang 2005-09-15 10:36:26 UTC
Upgrading to   libxml2-2.6.21-r1

seems to have fixed the problem. dia installed fine.