Test LoadedCommandOneConfig fails in 64bit on AIX : prctl.h
Hi,
On AIX, the test LoadedCommandOneConfig is OK in 32bit, but it fails in 64bit.
That seems to deal with the prctl.h file , which does not exist on AIX.
At build, traces show:
Looking for sys/prctl.h
Configuring
Looking for sys/prctl.h - not found
...
Logs :
cat Tests/LoadCommandOneConfig/CMakeFiles/CMakeError.log :
/usr/bin/gcc -maix64 -o CMakeFiles/cmTC_2d515.dir/CheckIncludeFile.c.o
-c Tests/LoadCommandOneConfig/CMakeFiles/CMakeTmp/CheckIncludeFile.c
Tests/LoadCommandOneConfig/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: sys/prctl.h: No such file or directory
Looking at details of the test, we see:
Tests/LoadCommandOneConfig/LoadedCommand.h :
/* #undef HAVE_SYS_PRCTL_H */
Tests/LoadCommandOneConfig/CMakeLists.txt :
include (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake)
CHECK_INCLUDE_FILE("sys/prctl.h" HAVE_SYS_PRCTL_H)
..../Modules/CMakeBackwardCompatibilityC.cmake :
include (CheckIncludeFiles)
CHECK_INCLUDE_FILES("sys/types.h;sys/prctl.h" CMAKE_HAVE_SYS_PRCTL_H
..../Modules/CMakeBackwardCompatibilityCXX.cmake :
Nothing dealing with prctl.h nor CMAKE_HAVE_SYS_PRCTL_H
Does this test work in 64bit on other systems where prct.h does not exist ?
Since the issue appears in 64bit and not in 3ébit, this may be due to the CFLAGS/CXXFLAGS variables, which must be set (-maix64 ou -q64) on AIX, that are not correctly handled in the test.
Regards,
Tony