Bug 2434693

Summary: kafs-client: FTBFS in Fedora rawhide/f44
Product: [Fedora] Fedora Reporter: Fedora Release Engineering <releng>
Component: kafs-clientAssignee: David Howells <dhowells>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dhowells
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2384424    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Fedora Release Engineering 2026-01-28 21:08:00 UTC
kafs-client failed to build from source in Fedora rawhide/f44

https://koji.fedoraproject.org/koji/taskinfo?taskID=141163307


For details on the mass rebuild see:

https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
Please fix kafs-client at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks,
kafs-client will be orphaned. Before branching of Fedora 45,
kafs-client will be retired, if it still fails to build.

For more details on the FTBFS policy, please visit:
https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/

Comment 1 Fedora Release Engineering 2026-01-28 21:08:06 UTC
Created attachment 2125981 [details]
build.log

Comment 2 Fedora Release Engineering 2026-01-28 21:08:12 UTC
Created attachment 2125982 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2026-01-28 21:08:15 UTC
Created attachment 2125983 [details]
state.log

Comment 4 David Howells 2026-02-03 08:46:53 UTC
gcc reports:

lib_cellserv.c: In function ‘cellserv_parse_address’:
lib_cellserv.c:72:19: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
   72 |                 p = strchr(v, ']');
      |                   ^

The problem is here:

	if (v[0] == '[') {
		char *p;

		v++;
		p = strchr(v, ']');
		if (!p || p[1])
			goto invalid;
		p[0] = 0;
	}

v is a const char *, so modifying the string is wrong - but strchr() discards the const.

Comment 5 David Howells 2026-03-06 15:16:48 UTC
Proposed update, including this fix, posted here:
https://lists.infradead.org/pipermail/linux-afs/2026-March/010687.html