Bug 41374 - build error meinproc kdex.dtd
Summary: build error meinproc kdex.dtd
Status: CLOSED FIXED
Alias: None
Product: docs.kde.org
Classification: Websites
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Documentation Editorial Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-20 18:03 UTC by qubes
Modified: 2004-09-12 17:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description qubes 2002-04-20 18:00:55 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kaddressbook
Version:           KDE 3.0.5 CVS/CVSup/Snapshot
Severity:          normal
Installed from:    Compiled sources
Compiler:          2.95.4
OS:                Linux
OS/Compiler notes: Not Specified

Didn't find anything like this in the bug database...but cvs from today (4-20) doesn't build on an uptodate woody install:
/usr/local/bin/meinproc --check --cache index.cache.bz2 ./index.docbook
index.docbook:7: error: failed to load external entity "dtd/kdex.dtd"
]>
 ^
index.docbook:9: error: Entity 'language' not defined
<book lang="&language;">
                      ^
index.docbook:9: validity error: No declaration for attribute lang on element book
<book lang="&language;">
                       ^
index.docbook:11: error: Entity 'kaddressbook' not defined
<title>The &kaddressbook; Handbook</title>
                         ^
index.docbook:11: validity error: No declaration for element title
<title>The &kaddressbook; Handbook</title>
                                         ^
index.docbook:14: validity error: No declaration for element firstname
<firstname>Don</firstname>
                         ^
index.docbook:15: validity error: No declaration for element surname
<surname>Sanders</surname>
                         ^
index.docbook:17: validity error: No declaration for element email
<address><email>dsanders@kde.org</email></address>
                                        ^
index.docbook:17: validity error: No declaration for element address
<address><email>dsanders@kde.org</email></address>
                                                 ^
index.docbook:18: validity error: No declaration for element affiliation
</affiliation>
             ^
index.docbook:19: validity error: No declaration for element author
</author>
        ^
index.docbook:21: validity error: No declaration for element authorgroup
</authorgroup>
             ^
index.docbook:23: validity error: No declaration for element date
<date>2001-06-01</date>
                      ^
index.docbook:24: validity error: No declaration for element releaseinfo
<releaseinfo>0.01.00</releaseinfo>
                                 ^
index.docbook:27: error: Entity 'FDLNotice' not defined
&FDLNotice;
          ^
index.docbook:28: validity error: No declaration for element legalnotice
</legalnotice>
             ^
index.docbook:31: error: Entity 'kaddressbook' not defined
<para>&kaddressbook; is the &kde; address book.</para>
                    ^
index.docbook:31: error: Entity 'kde' not defined
<para>&kaddressbook; is the &kde; address book.</para>
                                 ^
index.docbook:31: validity error: No declaration for element para
<para>&kaddressbook; is the &kde; address book.</para>
                                                     ^
index.docbook:32: validity error: No declaration for element abstract
</abstract>
          ^
index.docbook:35: validity error: No declaration for element keyword
<keyword>KDE</keyword>
                     ^
index.docbook:36: validity error: No declaration for element keyword
<keyword>kaddressbook</keyword>
                              ^
index.docbook:38: validity error: No declaration for element keywordset
</keywordset>
            ^
index.docbook:39: validity error: No declaration for element bookinfo
</bookinfo>
          ^
index.docbook:41: validity error: No declaration for attribute id on element chapter
<chapter id="introduction">
                          ^
index.docbook:42: validity error: No declaration for element title
<title>Introduction</title>
                          ^
index.docbook:44: validity error: No declaration for attribute id on element sect1
<sect1 id="features">
                    ^
index.docbook:45: validity error: No declaration for element title
<title>Features</title>
                      ^
index.docbook:48: error: Entity 'kaddressbook' not defined
The documentation for &kaddressbook; was not complete at the time you
                                    ^
index.docbook:50: error: Entity 'kde' not defined
them to the appropriate &kde; mailing list. 
                             ^
index.docbook:51: validity error: No declaration for element para
</para>
      ^
index.docbook:54: error: Entity 'kaddressbook' not defined
For &kaddressbook; this is probably 
                  ^
index.docbook:55: validity error: No declaration for element para
</para>
      ^
index.docbook:57: validity error: No declaration for element sect1
</sect1>
       ^
index.docbook:58: validity error: No declaration for element chapter
</chapter>
         ^
index.docbook:60: validity error: No declaration for attribute id on element chapter
<chapter id="using-pab">
                       ^
index.docbook:61: error: Entity 'kaddressbook' not defined
<title>Using &kaddressbook;</title>
                           ^
index.docbook:61: validity error: No declaration for element title
<title>Using &kaddressbook;</title>
                                  ^
index.docbook:63: validity error: No declaration for element para
<para></para>
            ^
index.docbook:65: validity error: No declaration for element chapter
</chapter>
         ^
index.docbook:67: validity error: No declaration for attribute id on element chapter
<chapter id="questions-answers-and-tips">
                                        ^
index.docbook:68: validity error: No declaration for element title
<title>Questions Answers and Tips</title>
                                          ^
index.docbook:70: validity error: No declaration for attribute id on element sect1
<sect1 id="question-1">
                      ^
index.docbook:71: validity error: No declaration for element title
<title>Question 1</title>
                        ^
index.docbook:73: validity error: No declaration for element para
<para>The answer</para>
                      ^
index.docbook:75: validity error: No declaration for element sect1
</sect1>
       ^
index.docbook:77: validity error: No declaration for element chapter
</chapter>
         ^
index.docbook:79: validity error: No declaration for attribute id on element appendix
<appendix id="installation">
                           ^
index.docbook:80: validity error: No declaration for element title
<title>Installation</title>
                          ^
index.docbook:83: validity error: No declaration for element para
</para>
      ^
index.docbook:85: validity error: No declaration for attribute id on element sect1
<sect1 id="how-to-obtain-pab">
                             ^
index.docbook:86: error: Entity 'kaddressbook' not defined
<title>How to obtain &kaddressbook;</title>
                                   ^
index.docbook:86: validity error: No declaration for element title
<title>How to obtain &kaddressbook;</title>
                                          ^
index.docbook:89: validity error: No declaration for element para
</para>
      ^
index.docbook:91: validity error: No declaration for element sect1
</sect1>
       ^
index.docbook:93: validity error: No declaration for attribute id on element sect1
<sect1 id="requirements">
                        ^
index.docbook:94: validity error: No declaration for element title
<title>Requirements</title>
                          ^
index.docbook:97: validity error: No declaration for element para
</para>
      ^
index.docbook:99: validity error: No declaration for element sect1
</sect1>
       ^
index.docbook:101: validity error: No declaration for attribute id on element sect1
<sect1 id="compilation-and-installation">
                                        ^
index.docbook:102: validity error: No declaration for element title
<title>Compilation and Installation</title>
                                          ^
index.docbook:104: error: Entity 'kaddressbook' not defined
<para>Compiling &kaddressbook; is very easy. The following should do it:
                              ^
index.docbook:106: error: Entity 'percnt' not defined
&percnt; ./configure
        ^
index.docbook:107: error: Entity 'percnt' not defined
&percnt; make
        ^
index.docbook:108: error: Entity 'percnt' not defined
&percnt; make install
        ^
index.docbook:109: validity error: No declaration for element screen
</screen>
        ^
index.docbook:110: validity error: No declaration for element para
</para>
      ^
index.docbook:113: validity error: No declaration for element email
to the author at <email>dsanders@kde.org</email></para>
                                                ^
index.docbook:113: validity error: No declaration for element para
to the author at <email>dsanders@kde.org</email></para>
                                                      ^
index.docbook:115: error: Entity 'underFDL' not defined
&underFDL;
         ^
index.docbook:117: validity error: No declaration for element sect1
</sect1>
       ^
index.docbook:118: validity error: No declaration for element appendix
</appendix>
          ^
index.docbook:120: validity error: No declaration for element book
</book>
      ^
make[3]: *** [index.cache.bz2] Error 1
make[3]: Leaving directory `/mnt/src/P/kdebase/doc/kaddressbook'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/src/P/kdebase/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/src/P/kdebase'
make: *** [all-recursive-am] Error 2


(Submitted via bugs.kde.org)
Comment 1 Giles Turner 2002-05-25 20:08:51 UTC
Hi

I have the same bug here when I try to compile
kdebase kdeadmin etc.

I have found that if I change the version number in
the   second line of the index.docbook file:

<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML
V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [

with

<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML
V4.1.2-Based Variant V1.0//EN" "dtd/kdex.dtd" [
                        ^

then it appears to work without any problem. When V1.0
is changed to V1.1 the "dtd/kdex.dtd" cannot be found
and the meinproc check gives screens of problems
(quoted in the original bug report).

System: SuSE 7.3
KDECVS HEAD: 24.05.2002
Compiled: qt-copy kdelibs kdesupport kdoc

Hope this helps. If you need any more info let me
know.

Giles

=====
--------------------------------
Giles Turner
School of Chemical Sciences
The University of Birmingham UK
KDE - The Desktop of Tomorrow (www.kde.org)

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Comment 2 trevor 2002-06-18 15:08:51 UTC
I'm seeing this same bug. Supposedly it could be caused by
older versions of libxml2 but I'm using version 2.4.19
which is quite new. I've hunted around the mailing list
archives recompiled from scratch etc. but I still wasn't
able to fix it.

The only thing that worked was Giles Turner's workaround
which was as he mentioned previously to change the header
of each index.docbook file from V1.1 to V1.0. This fix
worked like a charm because I was able compile kdebase
kdenetwork etc. with no trouble after making the change.

I hope the doc team can commit the workaround because I'd
hate to have to make the changes on my copy every time I
update from CVS. (There are around 30 such changes needed
in kdebase alone.)

Trevor
Comment 3 Lauri Watts 2002-07-13 15:18:44 UTC
Thank you for your bug report.
The bug that your reported no longer applies to the latest development
(CVS) version of KDE. This is most probably because the bug has been
fixed the application has been substantially modified or the application
no longer exists. The bug report will be closed.

--=20
KDE Documentation: http://i18n.kde.org/doc/
KDE on FreeBSD: http://freebsd.kde.org/
Comment 4 Chris Arrowood 2002-12-09 00:08:53 UTC
Are you sure this no longer applies?  I am still getting these errors from CVS  
HEAD as of Dec 06-ish.  Giles workaround did the trick though...  
  
Gentoo 1.4 RC1  
KDE CVS HEAD (12/06/2002)  
libxml2-2.4.24  
libxslt-1.0.20  
  
Chris Arrowood  
Comment 5 Stephan Kulow 2002-12-09 08:59:45 UTC
Subject: Re:  build error meinproc kdex.dtd

Am Montag, 9. Dezember 2002 00:08 schrieb Chris Arrowood:
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
>
> http://bugs.kde.org/show_bug.cgi?id=41374
> chris.arrowood@cybertivity.com changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- CC|                            |chris.arrowood@cybertivity.c
>
>                    |                            |om
>
> ------- Additional Comments From chris.arrowood@cybertivity.com  2002-12-09
> 00:08 ------- Are you sure this no longer applies?  I am still getting
> these errors from CVS HEAD as of Dec 06-ish.  Giles workaround did the
> trick though...
>
> Gentoo 1.4 RC1
> KDE CVS HEAD (12/06/2002)
> libxml2-2.4.24
> libxslt-1.0.20

You get this most likely for different files, that have the old DTD while CVS 
HEAD dropped support for that DTD. But afaik all these are fixed

Greetings, Stephan

Comment 6 Jan-Pascal van Best 2002-12-11 11:17:35 UTC
Unfortunately, they're not. I'm getting similar errors in kdebase:
kdebase/doc/kfind
kdebase/doc/khelpcenter
kdebase/doc/konqueror

and in kdepim at least in kdepim/doc/kandy, kdepim/doc/korganizer.

The kandy make can be fixed by using the 4.2 dtd instead of the 4.1.2 dtd:

- <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN"
- "dtd/kdex.dtd" [
+ <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN"
+ "dtd/kdex.dtd" [

For korganizer, this doesn't help, it starts complaining about something else:

index.docbook:86: validity error: Element bookinfo content doesn't follow the DTD
Comment 7 Richard Smith 2003-01-22 14:01:26 UTC
Began a build yesterday using konstruct of kde 3.1-rc6.  Did a make install in meta/everything. It got up to apps/kcpuload (which is a fair way through the build, it makes several docs upto that point). In kcpuload, I got the dtd/kdex.dtd not found error. Changing 1.1 to 1.0 fixed it in this case.  But I was curious, and went back to doc it'd already built. Rebuilding this doc got errors too now. So it seems to me that either  1) it will only build if the index.cache.tar.bz2 file is not there yet 2) meinproc gets into a state where it doesn't work right after some stage in the build  I will test to see if the problem is #1 this afternoon and report back.  
Comment 8 Richard Smith 2003-01-22 14:09:08 UTC
OK, I think I've found what's going on. It appears that sometimes meinproc uses the dtd/kdex.dtd file installed with KDE 3.0, and sometimes it uses the one konstruct has put in ~/kde3.1-rc6/... Should this bug be reassigned against konstruct? 
Comment 9 Lauri Watts 2003-01-23 12:34:57 UTC
Please file a new bug for konstruct, rather than reassigning this one.   
 
I know the error messages are the same, but that's an unfortunate side effect of 
the way this works, and the error message is the same for virtually every problem. 
 
In this case, the "Some libxml2 versions have problems" is one bug (which has it's 
own number) 
 
*Using* the wrong DTD is a different bug, and the answer is, fix the document, to 
use the correct FPI.  That would be this one: 
"//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN"  
 
"konstruct sometimes doesn't use the correct DTD" is another, and for future 
searching it would be useful to have it sent separately. 
Comment 10 Thorsten Staerk 2004-09-12 17:29:38 UTC
The same error symptom occurs under kde 3.3 if you miss kdelibs3-doc.