Bug 84633 - Error compiling on amazon linux - unknown type name
Summary: Error compiling on amazon linux - unknown type name
Status: RESOLVED WORKSFORME
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other other
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-03 12:49 UTC by Cary Lewis
Modified: 2014-10-04 13:31 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

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.