No distribution, it's Linux from scratch. RRDtool version is the latest version, 1.9.0.

If 1.7.2 works, I can downgrade to that.

On 11/2/24 12:34 AM, Tom Schmidt wrote:
It would help to know what Linux distribution and version you have installed and what version of rrdtool package (including the development package).  I have a current Rocky Linux 9.4 installation that compiled and is running Xymon 4.4.0-alpha1 using rrdtool 1.7.2.

# rpm -qa | grep rrdtool
rrdtool-1.7.2-21.el9.x86_64
rrdtool-perl-1.7.2-21.el9.x86_64
rrdtool-devel-1.7.2-21.el9.x86_64

Tom

On Fri, Nov 1, 2024 at 3:36 PM Kim Scarborough <kim@scarborough.kim> wrote:
Hi folks,

Trying to set up a Xymon 4,4 server and I'm getting these errors when it
tries to detect the latest RRDtool:

Checking for RRDtool ...
Not RRDtool 1.0.x, checking for 1.4.x
test-rrd.c: In function 'main':
test-rrd.c:28:42: error: passing argument 2 of 'rrd_flushcached' from
incompatible pointer type [-Wincompatible-pointer-types]
    28 |         result = rrd_flushcached(pcount, rrdargs); printf("%d",
result);
       |                                          ^~~~~~~
       |                                          |
       |                                          char **
In file included from test-rrd.c:3:
/usr/include/rrd.h:242:18: note: expected 'const char **' but argument
is of type 'char **'
   242 |     const char **argv);
       |     ~~~~~~~~~~~~~^~~~
test-rrd.c:32:36: error: passing argument 2 of 'rrd_graph' from
incompatible pointer type [-Wincompatible-pointer-types]
    32 |         result = rrd_graph(pcount, rrdargs, &calcpr, &xsize,
&ysize, NULL, &ymin, &ymax); printf("%d", result);
       |                                    ^~~~~~~
       |                                    |
       |                                    char **
/usr/include/rrd.h:185:5: note: expected 'const char **' but argument is
of type 'char **'
   185 |     const char **,
       |     ^~~~~~~~~~~~~
make: *** [Makefile.test-rrd:4: test-compile] Error 1
Not RRDtool 1.0.x or 1.4.x, checking for 1.2.x
test-rrd.c: In function 'main':
test-rrd.c:32:36: error: passing argument 2 of 'rrd_graph' from
incompatible pointer type [-Wincompatible-pointer-types]
    32 |         result = rrd_graph(pcount, rrdargs, &calcpr, &xsize,
&ysize, NULL, &ymin, &ymax); printf("%d", result);
       |                                    ^~~~~~~
       |                                    |
       |                                    char **
In file included from test-rrd.c:3:
/usr/include/rrd.h:185:5: note: expected 'const char **' but argument is
of type 'char **'
   185 |     const char **,
       |     ^~~~~~~~~~~~~
make: *** [Makefile.test-rrd:4: test-compile] Error 1
ERROR: Cannot compile with RRDtool.
ERROR: Linking with RRDtool fails
RRDtool include- or library-files not found.

Any thoughts or fixes?

--
Kim Scarborough
_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com

_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com