Bug 150121 - Build Failed Generating index.cache.bz2
Summary: Build Failed Generating index.cache.bz2
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2007-09-23 18:14 UTC by furester
Modified: 2018-10-28 03:37 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch to solve the entity resolving issue in meinproc4 (1.97 KB, patch)
2008-02-27 23:37 UTC, Jochen Schmitt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description furester 2007-09-23 18:14:25 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.2.1 
OS:                Linux

Compiling kdebase from svn I get this error message:

..
[ 96%] Generating index.cache.bz2
cd /usr/src/kdebase4-svn/src/kdebase-build/workspace/doc/ksysguard && /opt/kde4/bin/meinproc4 --check --cache /usr/src/kdebase4-svn/src/kdebase-build/workspace/doc/ksysguard/index.cache.bz2 /usr/src/kdebase4-svn/src/kdebase/workspace/doc/ksysguard/index.docbook
index.docbook:20: parser error : Entity 'John.Tapsell' not defined
&John.Tapsell; &John.Tapsell.mail;
              ^
index.docbook:20: parser error : Entity 'John.Tapsell.mail' not defined
&John.Tapsell; &John.Tapsell.mail;
                                  ^
index.docbook:22: element othercredit: validity error : Element othercredit content does not follow the DTD, expecting ((personname | (honorific | firstname | surname | lineage | othername | affiliation | authorblurb | contrib)+) , (personblurb | email | address)*), got (CDATA CDATA )
</othercredit>
              ^
index.docbook:460: parser error : Entity 'John.Tapsell' not defined
<para>&ksysguard; is currently developed and maintained by &John.Tapsell;
                                                                         ^
index.docbook:461: parser error : Entity 'John.Tapsell.mail' not defined
&John.Tapsell.mail;. &ksysguard; is a rewrite of
                   ^
make[2]: *** [workspace/doc/ksysguard/index.cache.bz2] Error 1
make[2]: Leaving directory `/usr/src/kdebase4-svn/src/kdebase-build'
make[1]: *** [workspace/doc/ksysguard/CMakeFiles/handbook.dir/all] Error 2
make[1]: Leaving directory `/usr/src/kdebase4-svn/src/kdebase-build'
make: *** [all] Error 2

and compilation stops.
svn revision: 715704
Comment 1 Philip Rodrigues 2007-09-23 19:32:00 UTC
AFAICT, there's something wrong with your installation - that file gets through checkXML correctly here. Perhaps you need to update kdelibs. 
Comment 2 furester 2007-09-23 23:11:13 UTC
So I compiled kdelibs but now I get this output:

[ 56%] Generating index.cache.bz2
cd /usr/src/kdelibs4-svn/src/kdelibs-build/doc/sonnet && ../../bin/meinproc4.shell --check --srcdir=/usr/src/kdelibs4-svn/src/kdelibs/kdoctools/ --cache /usr/src/kdelibs4-svn/src/kdelibs-build/doc/sonnet/index.cache.bz2 /usr/src/kdelibs4-svn/src/kdelibs/doc/sonnet/index.docbook
../../bin/meinproc4.shell: line 4: 21818 Segmentation fault      LD_LIBRARY_PATH=/usr/src/kdelibs4-svn/src/kdelibs-build/lib/./:/opt/kde4/lib:/usr/src/kdelibs4-svn/src/kdelibs-build/lib/.:/opt/qt4/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} "/usr/src/kdelibs4-svn/src/kdelibs-build/bin/meinproc4" "$@"
make[2]: *** [doc/sonnet/index.cache.bz2] Error 139
make[2]: Leaving directory `/usr/src/kdelibs4-svn/src/kdelibs-build'
make[1]: *** [doc/sonnet/CMakeFiles/handbook.dir/all] Error 2
make[1]: Leaving directory `/usr/src/kdelibs4-svn/src/kdelibs-build'
make: *** [all] Error 2

last time (three days ago) I compiled it works well. Any other suggestion?
Comment 3 furester 2007-09-27 17:52:57 UTC
I have kdelibs at revision 717545, but I get always the same error ..

# pacman -Qi kdelibs4-svn 
Nome           : kdelibs4-svn
Versione       : 717545-1
URL            : http://www.kde.org

is there a method to check that checkXML work correctly?
Comment 4 Frédéric COIFFIER 2008-01-17 16:54:42 UTC
I have the same problem with Gentoo.
Is there a difference between KDE 3.5 checkXML and KDE 4.0 checkXML ?
In my case, as KDE checkXML isn't in PATH, maybe KDE 3.5 checkXML is used.
Comment 5 Peter Lunicks 2008-01-21 23:38:42 UTC
The original report is correct, and I got the same problem.
The same thing happens in at least one component of kdegames and several components of kdeedu (marble, parley, klettres, kalgebra).
Comment 6 Peter Lunicks 2008-01-21 23:48:22 UTC
I just noticed that the date on the original post was pre-4.0.0.

Just to clarify, this bug *still* exists in the official 4.0.0 release.

Why in the world was a bug which prevents building a major package not fixed before KDE 4.0.0 was released?
Comment 7 Frédéric COIFFIER 2008-02-01 21:26:05 UTC
I get the same problem with the 4.0.0 release :
http://bugs.gentoo.org/show_bug.cgi?id=208052

I think there is something wrong with my installation but I don't know what...
meinproc4 reports the error :

/usr/kde/4.0/bin/meinproc4 --check /var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook
index.docbook:20: parser error : Entity 'John.Tapsell' not defined
&John.Tapsell; &John.Tapsell.mail;
              ^
index.docbook:20: parser error : Entity 'John.Tapsell.mail' not defined
&John.Tapsell; &John.Tapsell.mail;
                                  ^
index.docbook:22: element othercredit: validity error : Element othercredit content does not follow the DTD, expecting ((personname | (honorific | firstname | surname | lineage | othername | affiliation | authorblurb | contrib)+) , (personblurb | email | address)*), got (CDATA CDATA )
</othercredit>
              ^
index.docbook:460: parser error : Entity 'John.Tapsell' not defined
<para>&ksysguard; is currently developed and maintained by &John.Tapsell;
                                                                         ^
index.docbook:461: parser error : Entity 'John.Tapsell.mail' not defined
&John.Tapsell.mail;. &ksysguard; is a rewrite of
                   ^
Comment 8 Frédéric COIFFIER 2008-02-01 21:46:28 UTC
Even xmllint (libxml2-2.6.30) doesn't validate the index.docbook :

# xmllint --dtdvalid /usr/kde/4.0/share/apps/ksgmltools2/customization/dtd/kdex.dtd /var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook
/var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook:10: element book: validity error : Syntax of value for attribute lang of book is not valid
/var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook:10: element book: validity error : Value "" for attribute lang of book is not among the enumerated set
/var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook:15: element author: validity error : Element author content does not follow the DTD, expecting ((personname | (honorific | firstname | surname | lineage | othername | affiliation | authorblurb | contrib)+) , (personblurb | email | address)*), got (CDATA CDATA )
/var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook:19: element othercredit: validity error : Element othercredit content does not follow the DTD, expecting ((personname | (honorific | firstname | surname | lineage | othername | affiliation | authorblurb | contrib)+) , (personblurb | email | address)*), got (CDATA CDATA )
/var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook:24: element othercredit: validity error : Element othercredit content does not follow the DTD, expecting ((personname | (honorific | firstname | surname | lineage | othername | affiliation | authorblurb | contrib)+) , (personblurb | email | address)*), got (CDATA CDATA )
/var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook:29: element othercredit: validity error : Element othercredit content does not follow the DTD, expecting ((personname | (honorific | firstname | surname | lineage | othername | affiliation | authorblurb | contrib)+) , (personblurb | email | address)*), got (CDATA CDATA )
/var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook:42: element legalnotice: validity error : Element legalnotice content does not follow the DTD, expecting (blockinfo? , title? , (calloutlist | glosslist | itemizedlist | orderedlist | segmentedlist | simplelist | variablelist | caution | important | note | tip | warning | literallayout | programlisting | programlistingco | screen | screenco | screenshot | formalpara | para | simpara | blockquote | indexterm | beginpage)+), got (CDATA)
Document /var/tmp/portage/kde-base/kdebase-4.0.0/work/kdebase-4.0.0/workspace/doc/ksysguard/index.docbook does not validate against /usr/kde/4.0/share/apps/ksgmltools2/customization/dtd/kdex.dtd


As meinproc4 uses libxml2 (/usr/lib/libxml2.so.2) and  libxslt (/usr/lib/libxslt.so.1), maybe there is a specific version of these libraries to use.

In my case, I have :
libxml2-2.6.30
libxslt-1.1.22
Comment 9 Greg Martyn 2008-02-01 23:38:54 UTC
I've only checked a handful, but I can't find *any* index.docbook that validates. Plasma, klipper, kmenuedit, kdm, kinfocenter

libxml2: 2.6.31-1.fc8
libxslt: 1.1.22-1.fc8
Comment 10 Frédéric COIFFIER 2008-02-05 13:17:14 UTC
I believed there is a problem with my PC but I tested on another PC (Fedora 7) with official kdebase-workspace-4.0.0.tar.bz2 :

$ tar xjvf kdebase-workspace-4.0.0.tar.bz2
$ mkdir build_workspace
$ cd build_workspace
$ cmake -DCMAKE_BUILD_TYPE=Debug ../kdebase-workspace-4.0.0
$ make

and I get exactly the same error !

[ 95%] Generating index.cache.bz2
[ 95%] Built target handbook
[ 95%] Generating index.cache.bz2
index.docbook:20: parser error : Entity 'John.Tapsell' not defined
&John.Tapsell; &John.Tapsell.mail;
              ^
index.docbook:20: parser error : Entity 'John.Tapsell.mail' not defined
&John.Tapsell; &John.Tapsell.mail;
                                  ^
index.docbook:22: element othercredit: validity error : Element othercredit content does not follow the DTD, expecting ((personname | (honorific | firstname | surname | lineage | othername | affiliation | authorblurb | contrib)+) , (personblurb | email | address)*), got (CDATA CDATA )
</othercredit>
              ^
index.docbook:460: parser error : Entity 'John.Tapsell' not defined
<para>&ksysguard; is currently developed and maintained by &John.Tapsell;
                                                                         ^
index.docbook:461: parser error : Entity 'John.Tapsell.mail' not defined
&John.Tapsell.mail;. &ksysguard; is a rewrite of
                   ^
make[2]: *** [doc/ksysguard/index.cache.bz2] Erreur 1
make[1]: *** [doc/ksysguard/CMakeFiles/handbook.dir/all] Erreur 2
make: *** [all] Erreur 2

So, is the official package kdebase-workspace broken ?
Comment 11 Frédéric COIFFIER 2008-02-05 13:38:50 UTC
I have understood the bug : meinproc4 is like a preprocessor which replaces Docbook identities by identities defined in customization/entities/contributor.entities

Unfortunately, this file already existed in KDE 3.5. If we make a difference between the 3.5 and 4.0 version, the "John.Tapsell" is missing in 3.5.

So, meinproc4 seems to use the 3.5 contributor.entities.

Does someone know how to change the meinproc4 search path ???
Comment 12 Peter Lunicks 2008-02-06 00:56:33 UTC
Most certainly it is broken.
A temporary work around if you just want to compile and use KDE 4 is just 
deleting the offending entities. For example, replace "&John.Tapsell;" 
with "John Tapsell" in most cases. In some cases you might have to remove a 
whole XML block, such as with the contributor block (not sure what the tag 
name is off-hand).
Comment 13 Frédéric COIFFIER 2008-02-06 18:33:51 UTC
Is there someone to change the assignation as the problem is in mpeinproc4 which is in kdelibs ?
Comment 14 Jochen Schmitt 2008-02-24 23:20:47 UTC
I have done a code review on kdelibs because I have the same issue.

I assume that this is a catalog processing issue in meinproc4 because the 'dtd' type of kstandarddirs::locate will no been process in kdecode/kernel/kstandarddirs_unix.cpp

Unfortunately, I was not able to test out my patch, so I will wait until I was able to done it. before I want to publish my patch.
Comment 15 Jochen Schmitt 2008-02-27 23:37:36 UTC
Created attachment 23734 [details]
Patch to solve the entity resolving issue in meinproc4

the is a dirty patch to solve the catalog issue in meinproc4. This issue occurs
if you have to catalogs /usr/share/kde4/apps/ksgmltools and
/usr/hsre/apps/ksgmltools on your system.

Unfortunately, I don't know how to set the catalog for the xslt processor, so
you will get a simular message from the xslt processor, but in opposite of the
xml processor this will not terminate the build process.
Comment 16 Pavel Volkovitskiy 2008-04-07 14:01:59 UTC
yep, this patch fixes building
Comment 17 David Faure 2008-04-10 14:41:50 UTC
The "dtd" resource type is added by meinproc4 itself (xslt.cpp line 187 here).

$ kde4-config --path data --locate ksgmltools2/docbook/xml-dtd-4.2/docbook.cat
/d/kde/inst/kde4/share/apps/ksgmltools2/docbook/xml-dtd-4.2/docbook.cat

Works here, but that's because /usr/share/apps isn't in my "data" resource. But if it's there, it should be last, so that kde4 stuff has priority, no? Not sure what's the best setup for $XDG_DATA_DIRS and kde3+kde4 together yet.
Comment 18 Ben Huxham 2008-08-10 00:51:00 UTC
This is occurring in KUbuntu 8.04 

Unpacking skanlite-kde4 (from .../skanlite-kde4_0.1-0ubuntu1~hardy1_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/skanlite-kde4_0.1-0ubuntu1~hardy1_amd64.deb (--unpack):
 trying to overwrite `/usr/lib/kde4/share/doc/kde4/HTML/en/doc/index.cache.bz2', which is also in package kdesudo-kde4
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/skanlite-kde4_0.1-0ubuntu1~hardy1_amd64.deb

Comment 19 Andreas Pakulat 2008-08-10 10:32:07 UTC
Ben, your error has nothing to do with this bugreport. What you see is a packaging bug and you should file a report with kubuntu about that.
Comment 20 David Faure 2009-02-18 01:42:03 UTC
Did anyone with the problem try the kde4-config command I suggested?
Do you still experience this problem?
Comment 21 Dario Andres 2009-04-04 21:33:13 UTC
Marking as NEEDSINFO
Comment 22 Frédéric COIFFIER 2017-07-26 08:50:18 UTC
I think KDE4 is no longer maintained and I have never seen this problem in recent KDE5.
Comment 23 Andrew Crouthamel 2018-09-28 02:33:50 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 24 Andrew Crouthamel 2018-10-28 03:37:35 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!