[kde-edu]: Compiling on SunOS 5.8

E.L. Willighagen kde-edu@kde.org
Fri, 4 Oct 2002 13:59:00 +0200


Please cc me, I am not on this list.

Hi all,

I've been compiling kdeedu on Solaris (aka. SunOS 5.8) and got these
problems:

1. In kdeedu/kiten/xjdxgen.c stdint.h is not defined on SunOS 5.8.
This patch will make it compile:

--- xjdxgen.c.orig      Fri Oct  4 13:08:40 2002
+++ xjdxgen.c   Fri Oct  4 13:08:58 2002
@@ -31,7 +31,7 @@
 #include <string.h>

 #ifndef __FreeBSD__
-#include <stdint.h>
+/* #include <stdint.h> */
 #endif

 #include "xjdic.h"

2. in kmplot/kmplot/diagr.cpp isinf is undefined

--- diagr.cpp.orig      Fri Oct  4 13:22:52 2002
+++ diagr.cpp   Fri Oct  4 13:30:15 2002
@@ -33,6 +33,10 @@
 #define isinf(x) IsINF(X)
 #endif

+// this should only be included for SunOS
+#include <nan.h>
+#define isinf(x) IsINF(x)
+
 CDiagr::CDiagr()
 {
        RahmenFarbe = qRgb( 0, 0, 0 );

There should be a proper #ifdef __solaris__ around it... or something like 
that...

Compilation has not finished yet, but the rest seems to go allright.

kind regards,

Egon

PS. My main interest is in Kalzium, for those who like to know ;)