[kde-solaris] kdebase compile problem with kcmaccess.cpp

Mats Rojestal mats.rojestal at bredband.net
Fri Jan 14 21:52:28 CET 2005


Hi again,

Found the problem and  a patch to fix it is as follows:

--------------
RCS file: /home/kde/kdebase/kcontrol/access/kcmaccess.cpp,v
retrieving revision 1.39
diff -u -r1.39 kcmaccess.cpp
--- kcmaccess.cpp	17 Dec 2004 17:34:20 -0000	1.39
+++ kcmaccess.cpp	14 Jan 2005 20:47:57 -0000
@@ -29,6 +29,8 @@
  #include <kshortcut.h>
  #include <kkeynative.h>

+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
  #include <X11/XKBlib.h>
  #define XK_MISCELLANY
  #define XK_XKB_KEYS
--------------

Regards Mats R


Mats Rojestal wrote:
> Hi,
> 
> I got a compiler error for kdebase as follows:
> 
>  >-------------
> if /bin/bash ../../libtool --silent --mode=compile --tag=CXX g++ 
> -DHAVE_CONFIG_H -I. -I. -I../..  -I/usr/local/kde/include 
> -I/usr/local/include   -I/usr/local/include -DQT_THREAD_SUPPORT 
> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 
> -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall 
> -W -Wpointer-arith -Wwrite-strings -O2 -fno-exceptions -fno-check-new 
> -fno-common -fno-exceptions -fno-check-new -fno-common 
> -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT 
> -DQT_NO_TRANSLATION -D_GNU_SOURCE  -MT kcmaccess.lo -MD -MP -MF 
> ".deps/kcmaccess.Tpo" \
>   -c -o kcmaccess.lo `test -f 'kcmaccess.cpp' || echo './'`kcmaccess.cpp; \
> then mv ".deps/kcmaccess.Tpo" ".deps/kcmaccess.Plo"; \
> else rm -f ".deps/kcmaccess.Tpo"; exit 1; \
> fi
> In file included from /usr/include/X11/XKBlib.h:31,
>                  from kcmaccess.cpp:32:
> /usr/include/X11/extensions/XKBstr.h:77: error: `Bool' does not name a type
> /usr/include/X11/extensions/XKBstr.h:328: error: expected `;' before '*' 
> token
> /usr/include/X11/extensions/XKBstr.h:349: error: `KeySym' does not name 
> a type
> ...
> 
> --------------<
> 
> 
> kdebase is from latest cvs.
> 
> Does anyone have a fix or clue why "Bool" typdef is missing?
> 
> Regards,
>          Mats Röjestål



More information about the kde-solaris mailing list