Bug 89379

Summary: Systemd 219 does not build with LLVM/clang
Product: systemd Reporter: Tomasz Paweł Gajc <tpgxyz>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
URL: https://issues.openmandriva.org/show_bug.cgi?id=1121
Whiteboard:
i915 platform: i915 features:

Description Tomasz Paweł Gajc 2015-03-01 19:06:23 UTC
Systemd-219 does not build with LLVM/clang due to added VLAIS in systemd code.

Build log can be found here:
https://abf.io/build_lists/2435505


/builddir/build/BUILD/systemd-219/src/shared/macro.h:36:38: note: expanded from macro '_alloc_'
#define _alloc_(...) __attribute__ ((alloc_size(__VA_ARGS__)))
                                     ^
/builddir/build/BUILD/systemd-219/src/libsystemd/sd-daemon/sd-daemon.c:357:25: error: fields must have a constant size: 'variable length array in structure' extension will never be supported
                uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) +
                        ^
4 warnings and 1 error generated.
make[2]: *** [src/libsystemd/sd-daemon/libsystemd_internal_la-sd-daemon.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

Looks like culprit is here:
http://cgit.freedesktop.org/systemd/systemd/commit/src/libsystemd/sd-daemon/sd-daemon.c?id=a354329f724d6ce913d2ccffb2be8f3327a67faa
Comment 1 Lennart Poettering 2015-03-02 19:58:37 UTC
Fixed in git.

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.