[rrd-users] Getting RRDTool To Compile on Solaris 8

Kennedy Clark hkclark at gmail.com
Fri May 20 18:15:46 MEST 2005


I have been having a heck of a time getting RRDTool to compile on
Solaris 8.  I have found this problem referenced in the list archive,
but no solution was given.  When I run configure, I get:

> <snip>
>checking for isinf... no
>checking for isinf with <math.h>... no
>checking if IEEE math works out of the box... no
>checking if IEEE math works with the -ieee switch... no
>checking if IEEE math works with the -qfloat=nofold switch... no
>checking if IEEE math works with the -w
-qflttrap=enable:zerodivide... no
>checking if IEEE math works with the -mieee switch... no
>checking if IEEE math works with the -q float=rndsngl switch... no
>checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch...
no
>checking if IEEE math works with the -OPT:IEEE_comparisons=ON
switch... no
>checking if IEEE math works with fpsetmask(0)... no
>checking if IEEE math works with signal(SIGFPE,SIG_IGN)... no
>configure: error:
>Your Compiler does not do propper IEEE math ... Please find out how
to
>make IEEE math work with your compiler and let me know
(oetiker at ee.ethz.ch).
>Check config.log to see what went wrong ...
>

I have tried both gcc-3.3.2 and gcc-3.4.2 right off sunfreeware.com
(using the full versions, not the 'small' versions on sunfreeware).
We can compile other stuff fine (e.g., speedy_cgi for Smokeping).  I
believe we have the base Solaris packages that are required for
compiling (SUNWbtool, SUNWsprot, SUNWtoo, SUNWhea, SUNWarc, SUNWlibm,
SUNWlibms, SUNWdfbh, SUNWcg6h, SUNWxwinc, SUNWolinc, etc.).

Below is a section of the config.log file where the "IEEE math" checks begin.

If anyone has some suggestions, that would be great!

Thanks!
Kennedy

I am able to run 1.0.49 by using the binary on sunfreeware.com -- but
I have a requirement for RRDTool 1.2.  Anyone know if sunfreeware will
update their build to v1.2 anytime soon?


Section of config.log:
=======================
configure:22336: result: no
configure:22354: checking if IEEE math works out of the box
configure:22435: gcc -o conftest -g -O2  -fPIC -DPIC   conftest.c
-liconv -lm  >&5
configure:22438: $? = 0
configure:22440: ./conftest
ld.so.1: ./conftest: fatal: libiconv.so.2: open failed: No such file
or directory
./configure[22441]: 25616 Killed
configure:22443: $? = 137
configure: program exited with status 137
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "rrdtool"
| #define PACKAGE_TARNAME "rrdtool"
| #define PACKAGE_VERSION "1.2.8"
| #define PACKAGE_STRING "rrdtool 1.2.8"
| #define PACKAGE_BUGREPORT ""
<snip>
| int main(void){
|     double nan,inf,c,zero;
|     ;
|     /* some math to see if we get a floating point exception */
|     zero=sin(0.0); /* don't let the compiler optimize us away */
|     nan=0.0/zero; /* especially here */
|     inf=1.0/zero; /* and here. I want to know if it can do the magic */
|                 /* at run time without sig fpe */
|     c = inf + nan;
|     c = inf / nan;
|     if (! isnan(nan)) {printf ("not isnan(NaN) ... "); return 1;}
|     if (nan == nan) {printf ("nan == nan ... "); return 1;}
|     if (! isinf(inf)) {printf ("not isinf(oo) ... "); return 1;}
|     if (! isinf(-inf)) {printf ("not isinf(-oo) ... "); return 1;}
|     if (! inf > 0) {printf ("not inf > 0 ... "); return 1;}
|     if (! -inf < 0) {printf ("not -inf < 0 ... "); return 1;}
|     return 0;
|  }
configure:22463: result: no
configure:22467: checking if IEEE math works with the -ieee switch
configure:22548: gcc -o conftest -g -O2  -fPIC -DPIC -ieee
conftest.c -liconv -lm  >&5
cc1: error: unrecognized option `-ieee'
configure:22551: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "rrdtool"
| #define PACKAGE_TARNAME "rrdtool"
| #define PACKAGE_VERSION "1.2.8"
| #define PACKAGE_STRING "rrdtool 1.2.8"
| #define PACKAGE_BUGREPORT ""

<snip>

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list