system/strace: FTBFS: xlat/fcntlcmds.h:54:7: error: ‘F_GETLK64’ undeclared here (not in a function); did you mean ‘F_GETLK’?
Found on aarch64:
...
gcc -DHAVE_CONFIG_H -I./linux/aarch64 -I./linux/aarch64 -I./linux/generic -I./linux/generic -I. -I. -DIN_STRACE=1 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wdate-time -Wformat-security -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wtrampolines -Wundef -Wwrite-strings -Werror -O2 -fno-omit-frame-pointer -ggdb -march=armv8-a -mtune=cortex-a53 -g -Dsigcontext_struct=sigcontext -MT libstrace_a-kd_mpers_ioctl.o -MD -MP -MF .deps/libstrace_a-kd_mpers_ioctl.Tpo -c -o libstrace_a-kd_mpers_ioctl.o `test -f 'kd_mpers_ioctl.c' || echo './'`kd_mpers_ioctl.c
In file included from defs.h:404,
from fcntl.c:12:
xlat/fcntlcmds.h:54:7: error: ‘F_GETLK64’ undeclared here (not in a function); did you mean ‘F_GETLK’?
XLAT(F_GETLK64),
^~~~~~~~~
xlat.h:64:35: note: in definition of macro ‘XLAT’
# define XLAT(val) { (unsigned)(val), #val }
^~~
xlat/fcntlcmds.h:57:7: error: ‘F_SETLK64’ undeclared here (not in a function); did you mean ‘F_SETLK’?
XLAT(F_SETLK64),
^~~~~~~~~
xlat.h:64:35: note: in definition of macro ‘XLAT’
# define XLAT(val) { (unsigned)(val), #val }
^~~
xlat/fcntlcmds.h:60:7: error: ‘F_SETLKW64’ undeclared here (not in a function); did you mean ‘F_SETLKW’?
XLAT(F_SETLKW64),
^~~~~~~~~~
xlat.h:64:35: note: in definition of macro ‘XLAT’
# define XLAT(val) { (unsigned)(val), #val }
^~~
make[3]: *** [Makefile:4982: libstrace_a-fcntl.o] Error 1