Repository navigation
qa/cephfs: patch iogen makefile for distro compat - #68841
Conversation
|
This PR has been added to wip-vshankar-testing-20260513.092143. |
|
Pushed a fix for the test failing with centos. |
|
Will retest in another branch -- removing from testing branch. |
|
This PR has been added to main integration testing by vshankar started 2026-06-23-12:41. |
|
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]>
|
For "V"ampire release! |
argh. updated incorrect PR. |
|
Had to change the fix to work with both centos and rocky. Results here: https://pulpito.ceph.com/vshankar-2026-07-20_09:28:48-fs-wip-vshankar-testing-20260716.071821-testing-default-trial/ |
|
This PR has been added to main integration testing by vshankar started 2026-07-21-10:48. |
Fixes: http://tracker.ceph.com/issues/76501