Bug 114816 - Compile error on Solaris 8 - spectrumwidget.cpp and kalziumutils.cpp both give a finite() undefined error
Summary: Compile error on Solaris 8 - spectrumwidget.cpp and kalziumutils.cpp both giv...
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-10-21 15:10 UTC by Steve Evans
Modified: 2005-11-11 23:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Evans 2005-10-21 15:10:41 UTC
Version:            (using KDE KDE 3.4.92)
Installed from:    Compiled From Sources
Compiler:          gcc 3.4.3 
OS:                Solaris

if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./../../libkdeedu/kdeeduplot -I./../../libkdeedu/kdeeduui -I/opt/kde/include -I/opt/qt/include   -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include  -DQT_THREAD_SUPPORT -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4  -Wno-long-long -Wundef -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/gnome2/include/glib-2.0 -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include -O2 -fomit-frame-pointer -DNeedVarargsPrototypes=1 -DNeedFunctionPrototypes=1 -pipe -fno-exceptions -mcpu=ultrasparc -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_ISOC99_SOURCE -MT spectrumwidget.o -MD -MP -MF ".deps/spectrumwidget.Tpo" -c -o spectrumwidget.o spectrumwidget.cpp; \
then mv -f ".deps/spectrumwidget.Tpo" ".deps/spectrumwidget.Po"; else rm -f ".deps/spectrumwidget.Tpo"; exit 1; fi
spectrumwidget.cpp: In member function `double SpectrumWidget::strippedValue(double)':
spectrumwidget.cpp:257: error: `finite' undeclared (first use this function)
spectrumwidget.cpp:257: error: (Each undeclared identifier is reported only once for each function it appears in.)

To use finite() on Solaris it is necessary to include <ieeefp.h>
Comment 1 Albert Astals Cid 2005-10-23 17:52:11 UTC
SVN commit 473400 by aacid:

include ieeefp.h if we are on solaris
BUGS: 114816


 M  +5 -0      spectrumwidget.cpp  


--- branches/KDE/3.5/kdeedu/kalzium/src/spectrumwidget.cpp #473399:473400
@@ -33,6 +33,11 @@
 #include <qpixmap.h>
 #include <qtooltip.h>
 
+#include <qglobal.h>
+#if defined(Q_OS_SOLARIS)
+#include <ieeefp.h>
+#endif
+
 SpectrumWidget::SpectrumWidget( QWidget *parent, const char* name ) : QWidget( parent, name )
 {
 	startValue = 0;
Comment 2 Bernd Kuhls 2005-11-11 23:13:30 UTC
Please commit the same patch also for kalziumutils.cpp