Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369179 - app-misc/lirc-0.8.7 won't compile against sys-kernel/gentoo-sources-2.6.39: linux/smp_lock.h: No such file or directory
Summary: app-misc/lirc-0.8.7 won't compile against sys-kernel/gentoo-sources-2.6.39: l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 376815 380921 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-29 13:03 UTC by Martin von Gagern
Modified: 2012-07-17 20:35 UTC (History)
6 users (show)

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 Martin von Gagern 2011-05-29 13:03:11 UTC
app-misc/lirc-0.8.7 won't compile against sys-kernel/gentoo-sources-2.6.39:

lirc-0.8.7/drivers/lirc_dev/lirc_dev.c:45:28:
  fatal error: linux/smp_lock.h: No such file or directory
compilation terminated.
make[5]: *** [lirc-0.8.7/drivers/lirc_dev/lirc_dev.o] Error 1

The removal of said file corresponds to the removal of the big kernel lock:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4ba8216cd90560bc402f52076f64d8546e8aefcb

See also bug #369095 dealing with the removal of that header in svgalib_helper.
In contrast to that package, lirc appears to actually call lock_kernel if CONFIG_COMPAT is set, e.g. on amd64 kernel supporting IA32 code.
Comment 1 Martin von Gagern 2011-05-29 13:14:49 UTC
For the record: this is with USE=lirc_devices_hauppauge
Comment 2 Eric 2011-05-30 05:01:31 UTC
confirmed too!
Comment 3 Dmitry Samersoff 2011-05-31 08:24:22 UTC
confirmed, USE: -transmitter lirc_devices_mceusb
Comment 4 Wormo (RETIRED) gentoo-dev 2011-06-01 05:31:22 UTC
Looks like a version bump to 0.9.0 is needed for recent kernels

http://www.lirc.org/faq.html

"From 2.6.36 on all LIRC kernel drivers are already included in the kernel. There has been a slight interface change in the LIRC ioctls that will affect 64-bit kernels. For recent kernels please only use 0.9.0 which is compatible with the in-kernel drivers."
Comment 5 Dmitry Samersoff 2011-06-01 07:33:20 UTC
Lirc 0.9.0 compiles and works fine. 
Here is overlay https://github.com/kormoc/Ebuilds

So this BUG could be closed as duplicate of 368721
Comment 6 jannis 2011-06-11 17:39:13 UTC
No, this error exists for multiple drivers:
/var/tmp/portage/app-misc/lirc-0.9.0/work/lirc-0.9.0/drivers/lirc_atiusb/lirc_atiusb.c:51:28: schwerwiegender Fehler: linux/smp_lock.h: Datei oder Verzeichnis nicht gefunden
Comment 7 Raphaël Droz 2011-07-23 12:02:15 UTC
0) still the case with lirc-0.9.0
1) it's not a duplicate of #368721, lirc-0.9.0 +atiusb does not compile with 2.6.39 or 3.0
2) mceusb is no more a valid LIRC_DEVICES value (in-kernel)
3) the following patch:
http://gentoo-overlays.zugaina.org/amielke-overlay/portage/app-misc/lirc/files/lirc-0.9.0-kernel-2.6.39-atiusb-fix.diff
fixes the issue with atiusb but probably others too.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-31 16:03:00 UTC
*** Bug 380921 has been marked as a duplicate of this bug. ***
Comment 9 reno reckling 2011-10-07 11:33:23 UTC
I can confirm this bug, prevents me from compiling lirc for some time now with flags:
X kernel_linux lirc_devices_all
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-17 20:14:53 UTC
+  17 Jul 2012; Ian Stakenvicius <axs@gentoo.org> lirc-0.9.0-r1.ebuild,
+  +files/lirc-0.9.0-kernel-2.6.39-fixes.patch:
+  fixed compilation issues for some drivers against kernel >=2.6.39 for bug
+  369179 , using patch from amielke overlay as the basis
+
Comment 11 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-17 20:35:48 UTC
*** Bug 376815 has been marked as a duplicate of this bug. ***