Bug 2266233

Summary: slurm-22.05.11-3.fc41 FTBFS: ext_sensors_rrd.c:201:28: error: passing argument 2 of ‘rrd_info’ from incompatible pointer type
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: slurmAssignee: Neil Hanlon <neil>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: d.klein, neil, pkfed
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/slurm
Whiteboard:
Fixed In Version: slurm-24.05.2-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-10-09 00:16:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2260875    

Description Petr Pisar 2024-02-27 08:27:49 UTC
slurm-22.05.11-3.fc41 fails to build in Fedora 41:

make[5]: Entering directory '/builddir/build/BUILD/slurm-22.05.11/src/plugins/ext_sensors/rrd'
/bin/sh ../../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm  -DSLURM_PLUGIN_DEBUG -I../../../.. -I../../../../src/common  -I/usr/include   -DNUMA_VERSION1_COMPATIBILITY -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -fcommon -fno-omit-frame-pointer -pthread -c -o ext_sensors_rrd.lo ext_sensors_rrd.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../slurm -DSLURM_PLUGIN_DEBUG -I../../../.. -I../../../../src/common -I/usr/include -DNUMA_VERSION1_COMPATIBILITY -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fcommon -fno-omit-frame-pointer -pthread -c ext_sensors_rrd.c  -fPIC -DPIC -o .libs/ext_sensors_rrd.o
make[5]: Leaving directory '/builddir/build/BUILD/slurm-22.05.11/src/plugins/ext_sensors/rrd'
ext_sensors_rrd.c: In function ‘_rrd_get_last_one’:
ext_sensors_rrd.c:201:28: error: passing argument 2 of ‘rrd_info’ from incompatible pointer type [-Wincompatible-pointer-types]
  201 |         data = rrd_info(2, argv);
      |                            ^~~~
      |                            |
      |                            char **
In file included from ext_sensors_rrd.c:62:
/usr/include/rrd.h:161:5: note: expected ‘const char **’ but argument is of type ‘char **’
  161 |     const char **);
      |     ^~~~~~~~~~~~~
make[5]: *** [Makefile:641: ext_sensors_rrd.lo] Error 1

A difference between passing and failing build roots is at <https://koschei.fedoraproject.org/build/17402125>. This failure is probably triggered by upgrading rrdtool-devel from 1.8.0-13.fc40 to 1.8.0-16.fc40.

Comment 1 Fedora Admin user for bugzilla script actions 2024-08-23 14:13:53 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 2 Fedora Release Engineering 2024-09-29 04:22:10 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 41.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2024-04-23).

A week before the mass branching of Fedora 42 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 40 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-42/f-42-key-tasks.html

Comment 3 Fedora Update System 2024-09-30 14:40:48 UTC
FEDORA-2024-b43b14bc6d (slurm-24.05.2-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b43b14bc6d

Comment 4 Fedora Update System 2024-10-01 01:46:25 UTC
FEDORA-2024-b43b14bc6d has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-b43b14bc6d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b43b14bc6d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2024-10-09 00:16:06 UTC
FEDORA-2024-b43b14bc6d (slurm-24.05.2-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Red Hat Bugzilla 2025-02-07 04:25:03 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days