When compiling systemd under an Amazon linux AMI, the following errors occur: CC src/libsystemd/sd-bus/libsystemd_la-bus-creds.lo In file included from src/libsystemd/sd-bus/bus-message.h:31:0, from src/libsystemd/sd-bus/bus-creds.c:28: src/libsystemd/sd-bus/kdbus.h:45:2: error: unknown type name '__u64' __u64 id; I tried including sys/types.h, etc, in the source files, but I can't get systemd to compile.
kdbus.h includes linux/types.h, which provides __u64. Try looking at 'gcc -E /usr/include/linux/types.h'.
Thanks for the suggestion. __u64 is defined in linux/types.h, but for whatever reason this file was not included. I changed the Makefile and added an -include /usr/include/linux/types.h and I the compile no longer errors out. I'm not sure what's so different about Amazon's Linux that this modification is required.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.