STINNER Victor <victor.stin...@gmail.com> added the comment: I can reproduce the issue on Fedora 26:
haypo@selma$ ./configure CFLAGS="-Werror -Wall" 2>&1|tee log haypo@selma$ grep fchdir log checking for fchdir... no The problem is not posixmodule.c. The problem is configure which emits a compiler warning. configure.ac contains: --- AC_MSG_CHECKING(for fchdir) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=fchdir]])], [AC_DEFINE(HAVE_FCHDIR, 1, Define if you have the 'fchdir' function.) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) ]) --- Extract of config.log, without the long confdefs.h part: --- configure:11258: checking for fchdir configure:11271: gcc -c -Werror -Wall -Wextra conftest.c >&5 conftest.c: In function 'main': conftest.c:256:7: error: unused variable 'x' [-Werror=unused-variable] void *x=fchdir ^ cc1: all warnings being treated as errors configure:11271: $? = 1 configure: failed program was: | /* confdefs.h */ | (...) | /* end confdefs.h. */ | #include <unistd.h> | int | main () | { | void *x=fchdir | ; | return 0; | } configure:11278: result: no --- ---------- title: Modules/posixmodule.c: skip compiling jka4NaPmmQ37 and posix_fildes_fd -> configure fails to detect fchdir() using CFLAGS="-Werror -Wall" _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31748> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com