AIX: ccmake fails to compile due to macros from /usr/include/term.h
I am trying to build cmake 3.25.1 on AIX using XLClang 16.1.0.11 with the flags:
CFLAGS: -D_AIX=1 -DSYSV=1 -D_ALL_SOURCE=1 -DFUNCPROTO=15 -qxlcompatmacros -qstrict=all
CXXFLAGS: -D_AIX=1 -DSYSV=1 -D_ALL_SOURCE=1 -DFUNCPROTO=15 -std=c++11
CPPFLAGS: -D_AIX=1 -DSYSV=1 -D_ALL_SOURCE=1 -DFUNCPROTO=15
The build itself is working up to 91%, but then I get the error below:
[ 91%] Building CXX object Source/CursesDialog/CMakeFiles/ccmake.dir/ccmake.cxx.o
In file included from /data/Source/CursesDialog/ccmake.cxx:24:
In file included from /data/Source/cmake.h:36:
/data/Source/cmCMakePresetsGraph.h:479:28: error: expected ')'
PrintPrecedingNewline* newline = nullptr) const;
^
/usr/include/term.h:248:20: note: expanded from macro 'newline'
#define newline CUR _Vr2_Bstrs._s104
^
/usr/include/term.h:1325:24: note: expanded from macro 'CUR'
# define CUR cur_term->
^
The build with the flags works for release 3.23.2. Was someone able to build cmake 3.25.1 on AIX ?
Edited by Brad King