Ticket #254 (new task)
Solaris & Pango caveats (and resolution!)
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | misc | Version: | 1.4.2 |
| Keywords: | Solaris, pangocairo | Cc: |
Description
Hi,
rrdtool-1.4.2 on solaris10/x86 WITHOUT SunStudio? will fail for some reasons. First off the inevitable fail in math_c99.h w/ gcc-3.4.x, for a simple workaround, apply this diff: --- /usr/include/iso/math_c99.h.dist Mon Feb 22 10:52:05 2010 +++ /usr/include/iso/math_c99.h Mon Feb 22 11:01:57 2010 @@ -42,8 +42,20 @@
#undef isfinite #define isfinite(x) builtin_isfinite(x) #undef isinf
-#define isinf(x) builtin_isinf(x) +#if defined(GNUC) +#define isinf(x) extension( \ + { typeof(x) x_i = (x); \
+ x_i == (typeof(x_i)) INFINITY
#undef isnan
+#if defined(GNUC) +#define isnan(x) \ + extension({ typeof (x) x_a = (x); \ + builtin_expect(x_a != x_a, 0); }) +#else
#define isnan(x) builtin_isnan(x) #undef isnormal #define isnormal(x) builtin_isnormal(x)
========
Then there's a fallback issue in configure with regard to pangocairo and weirdness of pkg-config. The latter will return 1 on --exists if some dependency on pangocairo is not fulfilled (and there's a lot of them recursivly). Yet, configure has a fallback for a failing pkg-config and I'd say, this fallback is broken (generated configure, line 29910): LIBS="-lpango-1.0 $LIBS" But actually it'd need "-lpangocairo $LIBS". I dont know how autoconf creates this, thus no diff to configure.ac from me. This should be just a hint, the better way is to fix ones pkg-config setup anyway. It's just that the resulting error-message from configure is completly misleading about what happened (as so often ;) ).
So all this rambling could go to some Documentation-whatever.


