Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 516086 - sys-fs/udev-214 - .../work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:70:10: error: 'IFLA_VLAN_PROTOCOL' undeclared here (not in a function)
Summary: sys-fs/udev-214 - .../work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:70...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-02 17:32 UTC by Maciej S. Szmigiero
Modified: 2014-07-03 18:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej S. Szmigiero 2014-07-02 17:32:56 UTC
sys-fs/udev-214 doesn't build with sys-kernel/linux-headers-3.8 due to IFLA_VLAN_PROTOCOL being undeclared:
libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-fs/udev-214/work/systemd-214 -include ./config.h -DPKGSYSCONFDIR=\"/etc/systemd\" -DSYSTEM_CONFIG_UNIT_PATH=\"/etc/systemd/system\" -DSYSTEM_DATA_UNIT_PATH=\"/lib/systemd/system\" -DSYSTEM_SYSVINIT_PATH=\"/etc/init.d\" -DSYSTEM_SYSVRCND_PATH=\"/etc/rc.d\" -DUSER_CONFIG_UNIT_PATH=\"/etc/systemd/user\" -DUSER_DATA_UNIT_PATH=\"/usr/lib/systemd/user\" -DCATALOG_DATABASE=\"/var/lib/lib/systemd/catalog/database\" -DSYSTEMD_CGROUP_AGENT_PATH=\"/lib/systemd/systemd-cgroups-agent\" -DSYSTEMD_BINARY_PATH=\"/lib/systemd/systemd\" -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"/lib/systemd/systemd-shutdown\" -DSYSTEMD_SLEEP_BINARY_PATH=\"/lib/systemd/systemd-sleep\" -DSYSTEMCTL_BINARY_PATH=\"/bin/systemctl\" -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"/bin/systemd-tty-ask-password-agent\" -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"/usr/bin/systemd-stdio-bridge\" -DROOTPREFIX=\"\" -DRANDOM_SEED_DIR=\"/var/lib/lib/systemd/\" -DRANDOM_SEED=\"/var/lib/lib/systemd/random-seed\" -DSYSTEMD_CRYPTSETUP_PATH=\"/lib/systemd/systemd-cryptsetup\" -DSYSTEM_GENERATOR_PATH=\"/lib/systemd/system-generators\" -DUSER_GENERATOR_PATH=\"/usr/lib/systemd/user-generators\" -DSYSTEM_SHUTDOWN_PATH=\"/lib/systemd/system-shutdown\" -DSYSTEM_SLEEP_PATH=\"/lib/systemd/system-sleep\" -DSYSTEMD_KBD_MODEL_MAP=\"/usr/share/systemd/kbd-model-map\" -DX_SERVER=\"/usr/bin/X\" -DUDEVLIBEXECDIR=\"/lib/udev\" -DPOLKIT_AGENT_BINARY_PATH=\"/usr/bin/pkttyagent\" -DQUOTACHECK=\"/usr/sbin/quotacheck\" -DKEXEC=\"/usr/sbin/kexec\" -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src -I ./src/shared -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/shared -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/network -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/login -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/journal -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/timedate -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/timesync -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/resolve -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/systemd -I ./src/core -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/core -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libudev -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/udev -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/udev/net -I ./src/udev -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-bus -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-event -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl -I /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd-network -pipe -Wall -Wextra -Wno-inline -Wundef -Wformat=2 -Wformat-security -Wformat-nonliteral -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Werror=overflow -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -ffunction-sections -fdata-sections -fstack-protector --param=ssp-buffer-size=4 -ffat-lto-objects -pthread -O2 -pipe -march=nocona -c /var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c  -fPIC -DPIC -o src/libsystemd/sd-rtnl/.libs/libsystemd_internal_la-rtnl-types.o
cc1: warning: ./src/core: No such file or directory [enabled by default]
/var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:70:10: error: 'IFLA_VLAN_PROTOCOL' undeclared here (not in a function)
/var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:70:9: error: array index in initializer not of integer type
/var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:70:9: error: (near initialization for 'rtnl_link_info_data_vlan_types')
/var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:260:9: error: array index in initializer exceeds array bounds
/var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:260:9: error: (near initialization for 'rtnl_link_types')
/var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:260:9: warning: excess elements in array initializer [enabled by default]
/var/tmp/portage/sys-fs/udev-214/work/systemd-214/src/libsystemd/sd-rtnl/rtnl-types.c:260:9: warning: (near initialization for 'rtnl_link_types') [enabled by default]
make: *** [src/libsystemd/sd-rtnl/libsystemd_internal_la-rtnl-types.lo] Error 1
make: *** Waiting for unfinished jobs....
 * ERROR: sys-fs/udev-214::gentoo failed (compile phase):
 *   emake failed

With sys-kernel/linux-headers-3.15 it does build successfully.

According to bug 508908 it needs >=sys-kernel/linux-headers-3.14 for this to be defined, but udev ebuild has dependency only on >=sys-kernel/linux-headers-2.6.39.


Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2014-07-02 18:26:38 UTC
arg, they keep going back and forth with this.  was aware that 212 needed specially high linux headers, but that was supposedly fixed, which is why it got lowered again in 214's ebuild :/
will raise it again...
Comment 2 Mike Gilbert gentoo-dev 2014-07-02 18:59:20 UTC
(In reply to Samuli Suominen from comment #1)

I noticed this when bumping systemd-214. I'll try to give you a heads-up next time.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2014-07-03 14:50:47 UTC
linux-3.9 $ grep -r IFLA_VLAN_PROTOCOL *

no results

linux-3.10 $ grep -r IFLA_VLAN_PROTOCOL *
include/uapi/linux/if_link.h:	IFLA_VLAN_PROTOCOL,

setting the minimum version to >=3.10
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-07-03 14:53:42 UTC
done for 214 and 9999
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-07-03 18:17:20 UTC
(In reply to Samuli Suominen from comment #4)
> done for 214 and 9999

and undone for 9999, upstream added a fallback:

http://cgit.freedesktop.org/systemd/systemd/commit/src/shared/missing.h?id=81577dc22887debaf9b19bf1034a2887fb9069c7

so 215 will build again with older linux headers