Skip to content
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 unreliable tests in configure.ac #2111

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Cyanoxygen
Copy link

@Cyanoxygen Cyanoxygen commented Dec 19, 2024

Two tests in configure.ac should not rely on whether the compiler emitted warnings, but should instead rely on whether the compilation failed. Unintended warnings (triggered by certain combination of CFLAGS) emitted by compiler will disrupt the test result, resulting in FTBFS.

For the scandir() test, with some combination of CFLAGS, the compiler may emit some warnings, failing the test, but in reality the scandir() call must use const struct dirent * for the callbacks.

These two tests should not rely on whether the compiler emitted
warnings, but should instead rely on whether the compilation failed.

For the scandir() test, with some combination of CFLAGS, the compiler
may emit some warnings, failing the test, but in reality the scandir()
call must use `const struct dirent *' for the callbacks.
Some distros may regenerate the configure script. autoreconf will fail
if the description in these two AC_DEFINE_UNQUOTED macros are empty:

- PM_PAD_RESULT
- PM_PAD_TIMESPEC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant