Building under Fedora 42 getting the following when trying to compile libast:
gcc -DHAVE_CONFIG_H -I. -I../../include -I./ksh93/include/ast -I./ksh93/src/cmd/ksh93/include -I./ksh93/src/cmd/ksh93 -I./lib/DtPrint -I./lib/DtHelp -DSHOPT_DYNAMIC=1 -DSHOPT_NAMESPACE=1 -DSHOPT_MULTIBYTE=1 -DSHOPT_STATS=1 -DSHOPT_BGX=1 -DSHOPT_AUDIT=1 -DSHOPT_KIA=1 -DSHOPT_HISTEXPAND=1 -DSHOPT_EDPREDICT=1 -DSHOPT_ESH=1 -DSHOPT_VSH=1 -DSHOPT_FIXEDARRAY=1 -DSHOPT_SUID_EXEC=1 -DSHOPT_BRACEPAT=1 -DSHOPT_ECHOPRINT=1 -D_PACKAGE_ast -DKSHELL '-DERROR_CONTEXT_T=Error_context_t' -D_API_ast=20100309 -DBUILD_DTKSH -DANSICPP -DMULTIBYTE -DNLS16 -D_POSIX_SOURCE -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DUSE_XINERAMA -DUSE_XRENDER -DHAS_PAM_LIBRARY -DHAS_UTEMPTER_LIBRARY -fpermissive -Wno-incompatible-pointer-types -Wno-implicit-function-declaration -Wno-int-conversion -DOPT_TIRPC -I/usr/include/tirpc -Wno-unused-result -Wno-write-strings -fno-strict-aliasing -Wno-format-truncation -pthread -MT dtksh-widget.o -MD -MP -MF .deps/dtksh-widget.Tpo -c -o dtksh-widget.o `test -f 'widget.c' || echo './'`widget.c
In file included from /usr/include/X11/extensions/Print.h:68,
from /usr/include/Xm/Xm.h:63,
from widget.c:41:
/usr/include/X11/Xauth.h:121:39: error: macro ‘access’ passed 3 arguments, but takes just 2
121 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
| ^
In file included from widget.c:34:
./ksh93/include/ast/shell.h:469:12: note: macro ‘access’ defined here
469 | # define access(a,b) sh_access(a,b)
| ^~~~~~
/usr/include/X11/Xauth.h:122:39: error: macro ‘access’ passed 3 arguments, but takes just 2
122 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
| ^
./ksh93/include/ast/shell.h:469:12: note: macro ‘access’ defined here
469 | # define access(a,b) sh_access(a,b)
| ^~~~~~
/usr/include/X11/Xauth.h:123:39: error: macro ‘access’ passed 3 arguments, but takes just 2
123 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* name */
| ^
./ksh93/include/ast/shell.h:469:12: note: macro ‘access’ defined here
469 | # define access(a,b) sh_access(a,b)
| ^~~~~~
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for ‘access’ attribute
145 | );
| ^
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for ‘access’ attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:145:1: error: wrong number of arguments specified for ‘access’ attribute
/usr/include/X11/Xauth.h:145:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:147:39: error: macro ‘access’ passed 3 arguments, but takes just 2
147 | XAU_ACCESS_ATTRIBUTE((read_only, 3, 2)) /* address */
| ^
./ksh93/include/ast/shell.h:469:12: note: macro ‘access’ defined here
469 | # define access(a,b) sh_access(a,b)
| ^~~~~~
/usr/include/X11/Xauth.h:148:39: error: macro ‘access’ passed 3 arguments, but takes just 2
148 | XAU_ACCESS_ATTRIBUTE((read_only, 5, 4)) /* number */
| ^
./ksh93/include/ast/shell.h:469:12: note: macro ‘access’ defined here
469 | # define access(a,b) sh_access(a,b)
| ^~~~~~
/usr/include/X11/Xauth.h:149:39: error: macro ‘access’ passed 3 arguments, but takes just 2
149 | XAU_ACCESS_ATTRIBUTE((read_only, 7, 6)) /* type_names */
| ^
./ksh93/include/ast/shell.h:469:12: note: macro ‘access’ defined here
469 | # define access(a,b) sh_access(a,b)
| ^~~~~~
/usr/include/X11/Xauth.h:150:39: error: macro ‘access’ passed 3 arguments, but takes just 2
150 | XAU_ACCESS_ATTRIBUTE((read_only, 8, 6)) /* type_lengths */
| ^
./ksh93/include/ast/shell.h:469:12: note: macro ‘access’ defined here
469 | # define access(a,b) sh_access(a,b)
| ^~~~~~
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for ‘access’ attribute
169 | );
| ^
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for ‘access’ attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for ‘access’ attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
/usr/include/X11/Xauth.h:169:1: error: wrong number of arguments specified for ‘access’ attribute
/usr/include/X11/Xauth.h:169:1: note: expected between 1 and 3, found 0
-- eldee
Appears to be a duplicate of ticket #170. Applied patch provided to get past.
-- eldee