Bug 116507 - Compile error on Solaris 9 - kalziumutils.cpp gives a finite() undefined error
Summary: Compile error on Solaris 9 - kalziumutils.cpp gives a finite() undefined error
Status: RESOLVED FIXED
Alias: None
Product: kalzium
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Kalzium Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 18:13 UTC by Bernd Kuhls
Modified: 2005-11-16 19:23 UTC (History)
0 users

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 Bernd Kuhls 2005-11-16 18:13:21 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc-3.3.5 
OS:                Solaris

Duplicate of this bug:
http://bugs.kde.org/show_bug.cgi?id=114816#c2

But the patch was not applied to kalziumutils.cpp.
Comment 1 Pino Toscano 2005-11-16 19:12:07 UTC
SVN commit 480820 by pino:

Fix the compilation on Solaris.
Hope to backport it to the 3.5 branch before KDE 3.5.0.

CCBUG: 116507


 M  +4 -0      kalziumutils.cpp  


--- trunk/KDE/kdeedu/kalzium/src/kalziumutils.cpp #480819:480820
@@ -14,6 +14,7 @@
 #include "kalziumutils.h"
 
 #include <qfont.h>
+#include <qglobal.h>
 #include <qrect.h>
 #include <qpainter.h>
 
@@ -26,6 +27,9 @@
 #include "prefs.h"
 
 #include <math.h>
+#if defined(Q_OS_SOLARIS)
+#include <ieeefp.h>
+#endif
 
 int KalziumUtils::maxSize( const QString& string, const QRect& rect, QFont font, QPainter* p, int minFontSize, int maxFontSize )
 {
Comment 2 Pino Toscano 2005-11-16 19:23:37 UTC
SVN commit 480823 by pino:

Fix compilation on Solaris.
Don't know if it will actually be in KDE 3.5.0. For sure it will be in KDE 3.5.1.

BUG: 116507


 M  +4 -0      kalziumutils.cpp  


--- branches/KDE/3.5/kdeedu/kalzium/src/kalziumutils.cpp #480822:480823
@@ -16,8 +16,12 @@
 #include <qfont.h>
 #include <qrect.h>
 #include <qpainter.h>
+#include <qglobal.h>
 
 #include <math.h>
+#if defined(Q_OS_SOLARIS)
+#include <ieeefp.h>
+#endif
 
 int KalziumUtils::maxSize( const QString& string, const QRect& rect, QFont font, QPainter* p, int minFontSize, int maxFontSize )
 {