Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363955 - sys-fs/udev-167-r1 - extras/input_id/input_id.c:167: error: ‘BTN_TRIGGER_HAPPY’ undeclared (first use in this function)
Summary: sys-fs/udev-167-r1 - extras/input_id/input_id.c:167: error: ‘BTN_TRIGGER_HAPP...
Status: RESOLVED DUPLICATE of bug 368403
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-17 18:31 UTC by Dmitry Samersoff
Modified: 2011-06-30 21:31 UTC (History)
0 users

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


Attachments
Emerge --info output (emerge_info.log,3.75 KB, text/plain)
2011-04-18 16:25 UTC, Dmitry Samersoff
Details
full build log (udev_167_build.log,13.75 KB, text/plain)
2011-04-18 16:29 UTC, Dmitry Samersoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Samersoff 2011-04-17 18:31:15 UTC
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.
Comment 1 J.O. Aho 2011-04-18 04:11:42 UTC
Same issue for me too, gentoo kernel 2.6.34
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-18 15:22:44 UTC
1) Please post your `emerge --info' output.
2) Please attach the entire build log.
Comment 3 Dmitry Samersoff 2011-04-18 16:25:26 UTC
Created attachment 270403 [details]
Emerge --info output
Comment 4 Dmitry Samersoff 2011-04-18 16:29:48 UTC
Created attachment 270407 [details]
full build log
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-19 13:13:19 UTC
Please update the rest of your system along with udev and the kernel. We cannot begin to provide backward support for older configurations.
Comment 6 Dmitry Samersoff 2011-04-19 13:22:05 UTC
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
Comment 7 Dmitry Samersoff 2011-04-19 13:43:27 UTC
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
Comment 8 Dmitry Samersoff 2011-04-19 13:58:25 UTC
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
Comment 9 Matt Turner gentoo-dev 2011-06-30 21:31:58 UTC
(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 ***