Date: Sun, 29 Apr 2007 05:26:27 +0100
From: "Nick Morrott" <firstname.lastname@example.org>
Subject: Re: dkms Fails to Compile lirc modules - FC6
Content-Type: text/plain; charset=UTF-8; format=flowed
On 29/04/07, Scott Stevenson <email@example.com> wrote:
> I have a MythTV box and I have a streamzap remote. I have had this
> remote working perfectly before with lirc but now it seems that the modules
> fromt he RPMs won't copile into my kernel. I'm using lirc 0.8.1-1 on Fedora
> Core 6 and I've only installed the RPMs for lirc so far (I wanted to see
> what kind of idea were out there before I went to using source code). When I
> try to use dks ms to compile the lirc drivers I get the the message below.
> dkms build -m lirc -v 0.8.1-1
> Kernel preparation unnecessary for this kernel. Skipping...
> Building module:
> cleaning build area....
> make KERNELRELEASE=2.6.20-1.2944.fc6 -C drivers
> exit status: 2)
> Error! Bad return status for module build on kernel: 2.6.20-1.2944.fc6
> Consult the make.log in the build directory
> Below is the bottom half or so of the log file.
> make: Entering directory `/usr/src/kernels/2.6.20-1.2944.fc6-i686'
> test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
> echo; \
> echo " ERROR: Kernel configuration is invalid."; \
> echo " include/linux/autoconf.h or include/config/auto.conf are
> missing."; \
Have you got the kernel-devel package installed (kernel headers),
which is required to build LIRC on Fedora?
Also, you don't really want to have pre-compiled LIRC binaries
installed when you manually (or with dkms) compile and install LIRC
MythTV Official wiki:
MythTV users list archive:
"An investment in knowledge always pays the best interest." - Benjamin Franklin
Thank you for the reply. I do have kernel-devel and kernel-headers installed on the system.
rpm -qa | grep kernel
LIRC itself is installed from the RPM and the LIRC kernel modules are in the system from the RPM ( I believe from lirc-devel) as well they just need to be compiled into this kernel which is what dkms should handle it's just running into the compile error. I'm not sure if the kernel configuration error would cause the compile to halt or it's just a warning. It's seems to go a good way beyond that error before it actually stops trying to compile. I was thinking that the error was just coming from the lirc_atiusb compile process from the following errors, I'm really not sure though.
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c: In function ‘send_packet’:
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:252: error: ‘SLAB_ATOMIC’ undeclared (first use in this function)
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:252: error: (Each undeclared identifier is reported only once
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:252: error: for each function it appears in.)
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c: In function ‘set_use_inc’:
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:324: error: ‘SLAB_ATOMIC’ undeclared (first use in this function)
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c: In function ‘usb_remote_recv’:
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:660: error: ‘SLAB_ATOMIC’ undeclared (first use in this function)
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c: In function ‘new_in_endpt’:
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:776: error: ‘SLAB_ATOMIC’ undeclared (first use in this function)
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c: In function ‘new_out_endpt’:
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:857: error: ‘SLAB_ATOMIC’ undeclared (first use in this function)
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c: In function ‘send_outbound_init’:
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:1033: warning: passing argument 6 of ‘usb_fill_int_urb’ from incompatible pointer type
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c: In function ‘usb_remote_probe’:
/var/lib/dkms/lirc/0.8.1-1/build/drivers/lirc_atiusb/lirc_atiusb.c:1109: warning: passing argument 6 of ‘usb_fill_int_urb’ from incompatible pointer type
I'm wondering if just going into the streamzap drivers folder and making those files would also compile the streamzap driver into the system. Any idea on if that would work?
Thanks again for all the help,