Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-25979

[RHEL10][CS10][FTBFS] php-pecl-rrd fails to build on CS10 and RHEL10

    • sst_cs_infra_services
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      php-pecl-rrd fails to build on CS 10 / RHEL 10

      https://kojihub.stream.centos.org/koji/taskinfo?taskID=3632831

      It fails with errors like these:

      /builddir/build/BUILD/php-pecl-rrd-2.0.3/NTS/rrd_info.c:47:37: error: passing argument 2 of 'rrd_info' from incompatible pointer type [-Wincompatible-pointer-types]
         47 |         rrd_info_data = rrd_info(2, &argv[1]);
            |                                     ^~~~~~~~
            |                                     |
            |                                     char **
      In file included from /builddir/build/BUILD/php-pecl-rrd-2.0.3/NTS/rrd_info.c:17:
      /usr/include/rrd.h:161:5: note: expected 'const char **' but argument is of type 'char **'
        161 |     const char **);
            |     ^~~~~~~~~~~~~
      /builddir/build/BUILD/php-pecl-rrd-2.0.3/NTS/rrd_graph.c: In function 'zim_RRDGraph_save':
      /builddir/build/BUILD/php-pecl-rrd-2.0.3/NTS/rrd_graph.c:207:46: error: passing argument 2 of 'rrd_graph' from incompatible pointer type [-Wincompatible-pointer-types]
        207 |         if (rrd_graph(graph_argv->count - 1, &graph_argv->args[1], &calcpr, &xsize,
            |                                              ^~~~~~~~~~~~~~~~~~~~ 

      Be believe this is due to a late API change in rrdtool.

            rcollet@redhat.com Remi Collet
            tdawson@redhat.com Troy Dawson
            Remi Collet Remi Collet
            rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: