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.
For the record: this is with USE=lirc_devices_hauppauge
confirmed too!
confirmed, USE: -transmitter lirc_devices_mceusb
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."
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
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
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.
*** Bug 380921 has been marked as a duplicate of this bug. ***
I can confirm this bug, prevents me from compiling lirc for some time now with flags: X kernel_linux lirc_devices_all
+ 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 +
*** Bug 376815 has been marked as a duplicate of this bug. ***