-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error related to APR in config.c #3173
Comments
Hi @Marcool04, thanks for this detailed report. Even tough this is a bug, but may be some CFLAG/C restriction blocks the successful build. I also get this message but not as an error, but "just" a warning:
Unfortunately based on the given data (including your excellent build log) I wasn't able to reproduce this issue. I tried with similar settings (eg. passed Could you review your settings? |
Thanks for looking into this @airween , glad the report was clear.
nothing in there stands out to me... How about you? I also tried I'm a bit stuck for ideas here. BTW this is being run via an Arch linux build script that runs the compilation in a clean, up to data chroot. Usually in this context the Arch default build flags for C are pretty mundane. |
'rootpath' must indeed be 'const'. |
One possible explanation here for this being considered an error on my end and a warning elsewhere could be the fact that Arch uses quite bleeding-edge versions of software?
A bit more digging reveals this is indeed the case. From https://gcc.gnu.org/gcc-14/changes.html :
And there we have:
|
Describe the bug
Building fails with these two errors related to APR:
Logs and dumps
Full build log is here: https://termbin.com/4pis (too big for a github comment)
To Reproduce
The build script is this one: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libmodsecurity2 equivalent to getting the latest tagged v2 release (v2.9.7 and doing:
Expected behavior
Successful build.
Server (please complete the following information):
Rule Set (please complete the following information):
N/A
Additional context
Since the error is coming from the file
/usr/include/apr-1/apr_file_io.h
I checked that out, it is owned by packageapr
, so I checked if any recent changes had occurred there but we have:so this is old stuff...
The text was updated successfully, but these errors were encountered: