Bug 84633

Summary: Error compiling on amazon linux - unknown type name
Product: systemd Reporter: Cary Lewis <cary.lewis>
Component: generalAssignee: systemd-bugs
Status: RESOLVED WORKSFORME QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: cary.lewis
Version: unspecified   
Hardware: Other   
OS: other   
Whiteboard:
i915 platform: i915 features:

Description Cary Lewis 2014-10-03 12:49:31 UTC
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.
Comment 1 Zbigniew Jedrzejewski-Szmek 2014-10-03 13:09:35 UTC
kdbus.h includes linux/types.h, which provides __u64. Try looking at 'gcc -E /usr/include/linux/types.h'.
Comment 2 Cary Lewis 2014-10-04 13:31:43 UTC
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.