Bug 6380

Summary: systemd: do_compile error on older kernel
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: RESOLVED FIXED QA Contact: Costin <costin.c.constantin>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, enrico.scholz, meta.mr.watcher, meta.watcher, richard.purdie, sgw
Version: 1.7   
Target Milestone: 1.7 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Robert Yang 2014-05-29 06:11:29 UTC
When build with kernel older than 3.13:

rtnl-types.c:70:10: error: 'IFLA_VLAN_PROTOCOL' undeclared here (not in a function)

See here for more:

http://thread.gmane.org/gmane.comp.sysutils.systemd.devel/18200
Comment 1 Enrico Scholz 2014-06-20 10:40:05 UTC
the patch in oe-core (0e626d5023fee4dbcc5d94e6b787b4c5fe4b2687) is wrong; you can not check for enums with '#ifdef'.
Comment 2 Richard Purdie 2014-07-24 15:27:32 UTC
Robert: Can you please figure out a fix to the patch please?
Comment 3 Robert Yang 2014-07-24 15:34:37 UTC
OK, thanks, I will do.
Comment 4 Enrico Scholz 2014-07-24 15:49:34 UTC
recent version (215) fixes this issue already
Comment 5 Robert Yang 2014-07-25 01:34:18 UTC
Thanks, Qi will upgrade it to 215.
Comment 6 Saul Wold 2014-09-25 15:06:08 UTC
Can you verify that the systemd in master (216) indeed fixes this problem and if so please close tihs bug.
Comment 7 Chen Qi 2014-09-30 02:14:21 UTC
Patch has been sent to fix this problem.
systemd 216 doesn't have such problem.

//Chen Qi