Version: (using KDE KDE 3.3.92) Installed from: Compiled From Sources Compiler: gcc 3.4.3 OS: Solaris I get this compile error: if /bin/ksh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -D_GNU_SOURCE -D_ISOC99_SOURCE -I/opt/kde/include -I/opt/qt/include -I/gorbag/exta/cad/externals/SOLARIS/include -DQT_THREAD_SUPPORT -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -I/opt/kde/include -I/gorbag/exta/cad/externals/SOLARIS/include -I/opt/qt/include -O2 -fomit-frame-pointer -DNeedVarargsPrototypes=1 -DNeedFunctionPrototypes=1 -pipe -fno-exceptions -mcpu=ultrasparc -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 -MT kcalc_core.lo -MD -MP -MF ".deps/kcalc_core.Tpo" -c -o kcalc_core.lo kcalc_core.cpp; \ then mv -f ".deps/kcalc_core.Tpo" ".deps/kcalc_core.Plo"; else rm -f ".deps/kcalc_core.Tpo"; exit1; fi kcalc_core.cpp: In function `CALCAMNT ExecAdd(CALCAMNT, CALCAMNT)': kcalc_core.cpp:229: error: `round' undeclared (first use this function) kcalc_core.cpp:229: error: (Each undeclared identifier is reported only once for each function itappears in.) kcalc_core.cpp: In function `CALCAMNT ExecSubtract(CALCAMNT, CALCAMNT)': kcalc_core.cpp:249: error: `round' undeclared (first use this function) d
round() is in math.h, conforming to C99 -- which Solaris 2.6 doesn't conform to. Can you check what is available? rint, floor, ceil?
All three of rint, floor and ceil are available.
floor() is probably the way to go.
This bug is similar to bug 99716
Snapshot 050222 fixes this problem, thanks! checking for asinl in -lm... no checking for sqrtl in -lm... no checking for isinf in -lm... no checking for round in -lm... no checking for roundl in -lm... no
This bug seems to have been fixed.