-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
xbill, motif: fix clang build #314766
xbill, motif: fix clang build #314766
Conversation
ignore benign clang errors implicit-function-declaration and incompatible-function-pointer-types
ignore implicit-function-declaration errors and regenerate autotools files so configure test programs compile with clang
Are you sure they're benign? My understanding is that they'll only be benign if all implicitly declared functions return int, and take int for all arguments (or at least an equally sized type). (There's a reason Clang has made this an error by default.) The right way to fix this would be to make sure there aren't any implicitly defined functions. I did that for Linux in #302635, but apparently it still needs some work for macOS. |
i did build on linux with clangStdenv for motif and xbill and implicit functions are usually due to missing the string.h and the warning is also present when compiling with gcc so it doesn't seem like it is fixed on linux but has the same issue. so yes, i believe that the behaviour for gcc and clang is now identical, as they are both ignoring the error. [edit] as for the the function definition i thought that the size of the arguments is inferred from the argument type and the return value |
ah, i see that #302635 is still open. then closing this. |
needs backport release-24.05 tag
Description of changes
motif:
ignore benign clang errors implicit-function-declaration and incompatible-function-pointer-types
xbill depends on motif but was also broken with clang is fixed as well:
ignore implicit-function-declaration errors and regenerate autotools files so configure test programs compile with clang
https://hydra.nixos.org/build/260342733
ZHF: #309482
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.