[PyKDE] PyKDE/gcc2.96 bugs

Jim Bublitz jbublitz at nwinternet.com
Sun May 19 23:55:00 BST 2002


There are two bugs in PyKDE-3.2.4. Both only affect users compiling
with gcc2.96 (Red Hat or Mandrake 8.2). With the new build system,
you can do the edits to fix these bugs yourself - it is not
necessary to download a new tar.gz file.

PyKDE-3.2.4/sip/kxmlguiclient.sip
--------------------------------- 

(only affects users of KDE3.0.0 and gcc2.96) delete the nested class
'DocStruct' (lines 116-122 inclusive). DO NOT delete the '%End'
statement. DocStruct should be a private class - the method I use to
generate sip files does not check the access type of nested classes,
and gcc2.95 will allow private nested classes to be declared as
public. gcc2.96 catches the error. This is manual fixup that I
missed. sip does not handle private objects of any kind.



PyKDE-3.2.4/extraH/kde*
-----------------------

(only affects users of gcc2.96) in all kde* subdirectories under
extraH/ the file pct.h needs a newline on the last line or gcc2.96
complains extensively - simply move to the end of the second (last)
line and press enter at least once. You really only need to patch
pct.h in the subdirectory that corresponds to your version of KDE
(for example, if you're using KDE2.2.2, patch pct.h in
PyKDE-3.2.4/extraH/kde222), but all versions need the fix. pct.h is
not a KDE file, but is there to allow sip files to include printf
statements with format (%) specifications.

After applying the edits you must run ./configure to regenerate the
C++ files from the sip files before running 'make'. 

If you want to apply these patches AND already have a successful
build of PyKDE-3.2.4 installed, instead of ./configure you can run:

   build -m kdeui
   make
   make install    (as root)

I've sent patched files to Phil, so the tarball will be updated.
There will not be a version change for these fixes.

Thanks to Bill Soudan for the bug reports/fixes.

Jim




More information about the PyQt mailing list