Skip to content

qa/cephfs: patch iogen makefile for distro compat - #68841

Merged
vshankar merged 1 commit into
ceph:mainfrom
vshankar:wip-76501
Aug 5, 2026
Merged

vshankar merged 1 commit into
ceph:mainfrom
vshankar:wip-76501

Conversation

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar

Copy link
Copy Markdown
Contributor Author

This PR has been added to wip-vshankar-testing-20260513.092143.

@vshankar

vshankar commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

Pushed a fix for the test failing with centos.

@vshankar

vshankar commented Jun 4, 2026

Copy link
Copy Markdown
Contributor Author

Will retest in another branch -- removing from testing branch.

@vshankar

Copy link
Copy Markdown
Contributor Author

This PR has been added to main integration testing by vshankar started 2026-06-23-12:41.

@vshankar

vshankar commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

This PR has been removed from main integration testing by vshankar started 2026-06-23-12:41.

… CentOS 9, Ubuntu Noble)

Modern GLIBC (2.36+) and GCC toolchains strictly enforce type signatures
and function declarations, causing iogen 3.1p0 compilation to fail.

The original Makefile used command-line macro overrides (-Dstrlcpy=strncpy
and -Darc4random=rand). On newer distributions where these functions are
either natively declared in system headers or strictly type-checked, this
led to type-mismatch errors and macro collisions.

Fix the build issue across distributions by:
1. Stripping forced -Dstrlcpy and -Darc4random flags from the Makefile.
2. Inlining custom `my_arc4random` and `my_strlcpy` implementations into
   src/iogen.c with standard C signatures (uint32_t/size_t).
3. Renaming internal function calls to avoid naming collisions with
   system-provided GLIBC header declarations.

Fixes: http://tracker.ceph.com/issues/76501
Signed-off-by: Venky Shankar <[email protected]>
@vshankar

Copy link
Copy Markdown
Contributor Author

For "V"ampire release!

@vshankar

Copy link
Copy Markdown
Contributor Author

For "V"ampire release!

argh. updated incorrect PR.

@vshankar

Copy link
Copy Markdown
Contributor Author

@vshankar

Copy link
Copy Markdown
Contributor Author

This PR has been added to main integration testing by vshankar started 2026-07-21-10:48.

@vshankar

vshankar commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@vshankar
vshankar merged commit d6b5d64 into ceph:main Aug 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephfs Ceph File System tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants