attempt to emerge udev 167 with kernel 2.6.38.2 failed with extras/input_id/input_id.c:167: error: ‘BTN_TRIGGER_HAPPY’ undeclared (first use in this function) udev 164 merged with no problems. *extras/-extras use flag doesn't help* Reproducible: Always Steps to Reproduce: 1.emerge vanilla-sources 2.emerge udev 3.
Same issue for me too, gentoo kernel 2.6.34
1) Please post your `emerge --info' output. 2) Please attach the entire build log.
Created attachment 270403 [details] Emerge --info output
Created attachment 270407 [details] full build log
Please update the rest of your system along with udev and the kernel. We cannot begin to provide backward support for older configurations.
What doesn you mean by "rest of system" ? kernel is the latest vanilla-sources (2.6.38.2), udev-167-r1 is the latest. BTN_TRIGGER_HAPPY provided by kernel source : include/linux/input.h:#define BTN_TRIGGER_HAPPY 0x2c0
gcc -DHAVE_CONFIG_H -I. -include ./config.h -I./libudev -DSYSCONFDIR=\""/etc"\" -DLIBEXECDIR=\""/li b/udev"\" -g -O2 -MT extras/input_id/input_id.o -MD -MP -MF nnnnn.Tpo -c -o extras/input_id/input_id.o extras/input_id/input_id.c Include path (-I/usr/src/linux/include) is missed in compiler command line, so rest of system is not in action here
Found the root couse. udev uses headers from /usr/include/linux (pkg sys-kernel/linux-headers ) rather than kernel one so you have to upgrade this package also. 1. vanilla-source ebuild have to have dependency to sys-kernel/linux-headers 2. udev should use kernel includes So close bug again as RESOLVED/INVALID
(In reply to comment #8) > Found the root couse. udev uses headers from /usr/include/linux > (pkg sys-kernel/linux-headers ) rather than kernel one so you have to upgrade > this package also. > > 1. vanilla-source ebuild have to have dependency to sys-kernel/linux-headers > 2. udev should use kernel includes > > So close bug again as RESOLVED/INVALID This shouldn't have been marked as RESOLVED, much less invalid. udev's dependency on linux-headers is simply wrong. Even though this bug is older, I'm going to mark it as a duplicate of another, since the other is active. *** This bug has been marked as a duplicate of bug 368403 ***