Bug 2392879

Summary: CTDB does not support PCP 7.0.0
Product: [Fedora] Fedora Reporter: Alexander Bokovoy <abokovoy>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 44CC: abokovoy, anoopcs, asn, gdeschner, pfilipen, sbose, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: samba-4.23.0-0.8.rc3.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-04 08:26:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Bokovoy 2025-09-03 13:27:45 UTC
upstream bug: https://bugzilla.samba.org/show_bug.cgi?id=15904

Fedora Rawhide got PCP 7.0.0 couple days ago, Samba does not build anymore due to it when --enable-pmda is specified.

../../ctdb/utils/pmda/pmda_ctdb.c: In function ‘pmda_ctdb_fetch’:
../../ctdb/utils/pmda/pmda_ctdb.c:475:44: error: passing argument 3 of ‘pmdaFetch’ from incompatible pointer type [-Wincompatible-pointer-types]
  475 |         ret = pmdaFetch(numpmid, pmidlist, resp, pmda);
      |                                            ^~~~
      |                                            |
      |                                            pmResult **
In file included from ../../ctdb/utils/pmda/pmda_ctdb.c:35:
/usr/include/pcp/pmda.h:571:45: note: expected ‘pmResult_v2 **’ but argument is of type ‘pmResult **’
  571 | PMDA_CALL extern int pmdaFetch(int, pmID *, pmdaResult **, pmdaExt *);
      |                                             ^
../../ctdb/utils/pmda/pmda_ctdb.c: In function ‘pmda_ctdb_init’:
../../ctdb/utils/pmda/pmda_ctdb.c:494:31: error: assignment to ‘int (*)(int,  pmID *, pmResult_v2 **, pmdaExt *)’ {aka ‘int (*)(int,  unsigned int *, pmResult_v2 **, pmdaExt *)’} from incompatible pointer type ‘int (*)(int,  pmID *, pmResult **, pmdaExt *)’ {aka ‘int (*)(int,  unsigned int *, pmResult **, pmdaExt *)’} [-Wincompatible-pointer-types]
  494 |         dp->version.two.fetch = pmda_ctdb_fetch;
      |                               ^
../../ctdb/utils/pmda/pmda_ctdb.c:453:1: note: ‘pmda_ctdb_fetch’ declared here
  453 | pmda_ctdb_fetch(int numpmid, pmID pmidlist[], pmResult **resp, pmdaExt *pmda)
      | ^~~~~~~~~~~~~~~

https://github.com/performancecopilot/pcp/commit/b5de2321db50741b0d34138d48faaf5c490a8755

In Rawhide scratch builds I get the following reported:

Checking for header pcp/pmapi.h                 : yes 
Checking for header pcp/impl.h                  : yes 
Checking for header pcp/pmda.h                  : yes 
Checking for library pcp                        : yes 
Checking for pmProgname in pcp                  : not found 
Checking for library pcp_pmda                   : yes 
Checking for pmdaDaemon in pcp_pmda             : ok 
Checking for __pmID_int                         : not found 
Building with PMDA support

So __pmID_int was hidden and some API did change their definitions.

We will disable PCP support until it is fixed upstream because PCP 7.0.0 is already in Rawhide and is on track to get to F43.

Reproducible: Always

Comment 1 Fedora Update System 2025-09-04 07:32:58 UTC
FEDORA-2025-710d9a89d7 (samba-4.23.0-0.8.rc3.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-710d9a89d7

Comment 2 Fedora Update System 2025-09-04 08:26:01 UTC
FEDORA-2025-710d9a89d7 (samba-4.23.0-0.8.rc3.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2025-09-04 11:16:26 UTC
FEDORA-2025-cb15b4a48c (samba-4.23.0-0.7.rc3.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-cb15b4a48c

Comment 4 Fedora Update System 2025-09-05 01:28:45 UTC
FEDORA-2025-cb15b4a48c has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-cb15b4a48c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-cb15b4a48c

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

Comment 5 Fedora Update System 2025-09-10 01:36:19 UTC
FEDORA-2025-cb15b4a48c has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-cb15b4a48c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-cb15b4a48c

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

Comment 6 Fedora Update System 2025-09-11 02:21:39 UTC
FEDORA-2025-cb15b4a48c has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-cb15b4a48c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-cb15b4a48c

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