-
Notifications
You must be signed in to change notification settings - Fork 132
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
fix getxattr detection by properly calling CheckFunc #605
base: master
Are you sure you want to change the base?
Conversation
this is the proper way suggested by upstream https://pairlist4.pair.net/pipermail/scons-users/2023-January/009150.html
oh, the proper way is actually not having a header because CheckFunc is meant to check linking the function ref: https://pairlist4.pair.net/pipermail/scons-users/2023-January/009150.html |
I believe that Gentoo bug is different, as IIRC that's what happens if you do manage to the disable the xattr feature - the #ifs are inconsistent and it doesn't build.
(edit: This PR fixes a compiler warning.) |
Thanks for looking into my pr. I still think this issue is not relevant to whether xattr is enabled or not on the system. I should have provided more context. The issue is if header is manually specified, scons won't put a default dummy declaration like This dummy declaration cannot be omited. It worked previously because of a bad c89 legacy, which the compiler implicitly add a declaration if there is none. This legacy has been deemed bad, but not until now, clang-16 and future gcc decided to remove it and issue an implicit-function-declaration error. https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213 The error will let scons think getxattr is not present. So the solution would be we don't specify header and let scons add it by default. |
Oh, I didn't know that implicit function declarations are going to become an error in the future. I've only tested with released versions of compilers (clang 15 and GCC 12.2). Thanks for letting me know, I will make sure this gets included in the next release. |
with
scons will generate it in one single line
'#include<a>#include<b>
, causing wrong config and bugref: https://bugs.gentoo.org/870850