Bug 6380 - systemd: do_compile error on older kernel
Summary: systemd: do_compile error on older kernel
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.7 M3
Assignee: Chen Qi
QA Contact: Costin
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-05-29 06:11 UTC by Robert Yang
Modified: 2014-10-14 07:47 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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