Bug 2336279
| Summary: | amanda fails to build with C23 ("ndma_comm_dispatch.c:207:23: error: too many arguments to function 'rrxl->request_xto9'") | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dave Malcolm <dmalcolm> |
| Component: | amanda | Assignee: | Jason Tibbitts <j> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jridky, j, orion, pcahyna, phracek, sidsbrmnn, sipoyare |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-02-14 19:55:45 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2333037 | ||
|
Description
Dave Malcolm
2025-01-08 00:00:09 UTC
The suggested method for testing this out seems to not be working, but my understanding is that the new compiler has already gone to rawhide so I just need to wait for a compose and a push before I can do any local testing. Interestingly, in the amanda code the prototypes for these functions already seem to exist, but they're commented out. Probably just need to uncomment them. But upstream really does seem to be dead, and the remaining users and maintainers are going to need to decide what is to be done. Failed in the mass rebuild as well: https://koji.fedoraproject.org/koji/buildinfo?buildID=2617046 So it turns out that fixing the code for C23 compatibility is beyond my abilities. The code in ndmp-src is from the turn of the century and sets up an array of structs containing function pointers and while the functions have the same signatures in terms of basic types, the compiler sees them as all being different. I'm just not sure how to fix that without throwing in potentially hundreds of casts; my C experience was all gained around the time they added the "ANSI C" box to the front of the K&R book. For now I've just passed "-std=c17" and everything builds fine. An alternate approach would to simply not build the problematic code, which would be done by passing "--without-ndmp" to cofigure. That code enables writing to some kind of remote backup server supporting the NDMP protocol and I have no idea how well-used that is these days. Regardless, if a C expert wants to give me some hints, I'll be happy try doing it properly. |