Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238785 - app-text/docbook-sgml-utils - docbook2html cannot compile simple "-//OASIS//DTD DocBook XML V4.5//EN" file
Summary: app-text/docbook-sgml-utils - docbook2html cannot compile simple "-//OASIS//D...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo SGML project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-26 16:33 UTC by Robert Wohlrab
Modified: 2009-12-21 03:16 UTC (History)
2 users (show)

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


Attachments
Simple docbook test (test.docbook,194 bytes, text/plain)
2008-09-26 16:34 UTC, Robert Wohlrab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Wohlrab 2008-09-26 16:33:47 UTC
I cannot build simple docbook files on gentoo - but it works fine on debian unstable.

Portage 2.2_rc10 (default/linux/amd64/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-1-amd64 x86_64)                                                                                                   
=================================================================                                                                                                                                         
System uname: Linux-2.6.26-1-amd64-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-glibc2.2.5                                                                                                  
Timestamp of tree: Fri, 26 Sep 2008 10:34:01 +0000                                                                                                                                                        
app-shells/bash:     3.2_p39                                                                                                                                                                              
dev-lang/python:     2.5.2-r8                                                                                                                                                                             
sys-apps/baselayout: 2.0.0                                                                                                                                                                                
sys-apps/openrc:     0.2.5                                                                                                                                                                                
sys-apps/sandbox:    1.2.18.1-r3                                                                                                                                                                          
sys-devel/autoconf:  2.13, 2.63                                                                                                                                                                           
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.1-r1                                                                                                                                                             
sys-devel/binutils:  2.18-r3                                                                                                                                                                              
sys-devel/gcc-config: 1.4.0-r4                                                                                                                                                                            
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi minimal mmx mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Reproducible: Always

Steps to Reproduce:
1. docbook2html test.docbook && echo "build ok...."

Actual Results:  
Using catalogs: /etc/sgml/xml-docbook-4.5.cat                                                                                                                                                             
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html                                                                                                                             
Working on: /home/sven/projekte/working/s3d/Documentation/test.docbook                                                                                                                                    
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:42:30:E: "1D6C2" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:43:30:E: "1D6C3" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:44:30:E: "1D6D8" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:45:30:E: "1D6AB" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:46:30:E: "1D6C5" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:47:30:E: "1D6C6" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:48:30:E: "1D6DC" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:49:30:E: "1D6C8" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:50:30:E: "1D6AA" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:51:30:E: "1D6C4" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:54:30:E: "1D6CA" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:55:30:E: "1D6CB" is not a character number in the document character set                                                                         
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:56:30:E: "1D6DE" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:57:30:E: "1D6B2" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:58:30:E: "1D6CC" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:59:30:E: "1D6CD" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:60:30:E: "1D6CE" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:61:30:E: "1D6C0" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:62:30:E: "1D6DA" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:63:30:E: "1D6BD" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:64:30:E: "1D6D7" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:65:30:E: "1D6DF" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:66:30:E: "1D6B7" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:67:30:E: "1D6D1" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:68:30:E: "1D6E1" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:69:30:E: "1D6BF" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:70:30:E: "1D6D9" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:71:30:E: "1D6D2" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:72:30:E: "1D6E0" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:73:30:E: "1D6BA" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:74:30:E: "1D6D4" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:75:30:E: "1D6D3" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:76:30:E: "1D6D5" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:77:30:E: "1D6AF" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:78:30:E: "1D6C9" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:79:30:E: "1D6DD" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:80:30:E: "1D6BC" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:81:30:E: "1D6D6" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:82:30:E: "1D6B5" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:83:30:E: "1D6CF" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:84:30:E: "1D6C7" is not a character number in the document character set

Expected Results:  
Using catalogs: /etc/sgml/catalog
Using stylesheet: /usr/share/docbook-utils/docbook-utils.dsl#html
Working on: /home/sven/projekte/working/s3d/Documentation/test.docbook
Done.
build ok....

The expected results were taken from debian unstable - where it works like expected. The return value of docbook2html is 8.

More informations about the debian packages used:
Package: docbook-utils
Version: 0.6.14-1.1
Depends            (Version) | Installed
============================-+-===========
docbook-dsssl                | 1.79-6
jadetex                      | 3.13-9
lynx                         | 
 OR links                    | 
 OR w3m                      | 0.5.2-2+b1
sgmlspl                      | 1.03ii-32
sp                           | 1.3.4-1.2.1-47
perl                         | 5.10.0-14


Package: sgmlspl
Depends            (Version) | Installed
============================-+-===========
libsgmls-perl                | 1.03ii-32
perl                         | 5.10.0-14




Package: docbook-dsssl
Depends          (Version) | Installed
==========================-+-===========
openjade                   | 1.4devel1-19
 OR openjade1.3            | 
 OR jade                   | 1.2.1-47
docbook          (>= 3.1)  | 4.5-4
 OR docbook-xml            | 4.5-5
sgml-base        (>= 1.17) | 1.26
perl                       | 5.10.0-14

Package: docbook
Depends        (Version) | Installed
========================-+-===========
sgml-data     (>= 1.5.0) | 2.0.3
sgml-base      (>= 1.17) | 1.26


Package: docbook-xml
Depends        (Version) | Installed
========================-+-===========
sgml-data     (>= 2.0.2) | 2.0.3
xml-core       (>= 0.05) | 0.11
sgml-base      (>= 1.17) | 1.26
Comment 1 Robert Wohlrab 2008-09-26 16:34:24 UTC
Created attachment 166530 [details]
Simple docbook test
Comment 2 Shawn Rutledge 2008-12-12 17:13:35 UTC
I can also reproduce this bug.
Comment 3 Shawn Rutledge 2008-12-12 20:48:44 UTC
(In reply to comment #2)
> I can also reproduce this bug.

err... no.  My errors are like this:

jade:/usr/share/sgml/docbook/xml-dtd-4.1.2/ent/iso-amsa.ent:8:19:E: "X21B6" is not a function name
jade:/usr/share/sgml/docbook/xml-dtd-4.1.2/ent/iso-amsa.ent:9:19:E: "X21B7" is not a function name
jade:/usr/share/sgml/docbook/xml-dtd-4.1.2/ent/iso-amsa.ent:10:17:E: "X21D3" is not a function name
... (many more)
Comment 4 Ed Tomlinson 2009-05-10 14:06:57 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > I can also reproduce this bug.
> 
> err... no.  My errors are like this:
> 
> jade:/usr/share/sgml/docbook/xml-dtd-4.1.2/ent/iso-amsa.ent:8:19:E: "X21B6" is
> not a function name
> jade:/usr/share/sgml/docbook/xml-dtd-4.1.2/ent/iso-amsa.ent:9:19:E: "X21B7" is
> not a function name
> jade:/usr/share/sgml/docbook/xml-dtd-4.1.2/ent/iso-amsa.ent:10:17:E: "X21D3" is
> not a function name
> ... (many more)
> 

I am also getting the above errors.  As per an old bug on this package I tried reemerging
emerge app-text/sgml-common.  This did not resolve the build.
Comment 5 SpanKY gentoo-dev 2009-12-20 22:14:36 UTC
taking it a bit further:
 - `emerge -C` all docbook/sgml/jade packages
 - rm -rf /etc/sgml/ /usr/share/sgml/
 - emerge app-text/docbook-sgml-utils
 - docbook2html doc.xml 
Using catalogs: /etc/sgml/xml-docbook-4.5.cat
Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html
Working on: /root/doc.xml
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:42:30:E: "1D6C2" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:43:30:E: "1D6C3" is not a character number in the document character set
jade:/usr/share/sgml/docbook/xml-dtd-4.5/ent/isogrk4.ent:44:30:E: "1D6D8" is not a character number in the document character set

i see this on unstable amd64 and stable x86 regardless of USE=jadetex
Comment 6 SpanKY gentoo-dev 2009-12-20 23:24:22 UTC
drilling down, this works on Debian:

$ openjade -t sgml -i html -d /usr/share/docbook-utils/docbook-utils.dsl#html /usr/share/sgml/declaration/xml.dcl test.xml

while this fails on Gentoo:

$ openjade -t sgml -i html -d /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#html /usr/share/sgml/xml.dcl test.xml

both systems have docbook-utils-0.6.14 installed
Comment 7 SpanKY gentoo-dev 2009-12-21 03:16:43 UTC
Debian ends up reading:
/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOgrk4.ent

which is provided by sgml-common

ours uses the .ent file that comes with the docbook packages.  i guess the stable openjade version sucks and doesnt support these newer unicode type of entities.  since i'm not about to go mucking with openjade and trying to add/test a new version, i simply changed our docbook 4.4 and 4.5 packages to do what other distros are doing -- use the older method of specifying these entities via the file from sgml-common.