← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 529514] Re: lirc 0.8.6 and linux kernel 2.6.33

 

After googling, I found the patch that was applied to mainline 2.6.33.
Unfortunately, the mainline kernels currently built do not include lirc.
As such, here's the patch applied to lirc 0.8.6. The changes might be
needed to be conditionalized on kernel >= 2.6.33. They compile and will
make it work according to a cursory glance at it.

** Patch added: "patch"
   http://launchpadlibrarian.net/39884031/lirc-LP529514.patch

-- 
lirc 0.8.6 and linux kernel 2.6.33
https://bugs.launchpad.net/bugs/529514
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to lirc in ubuntu.

Status in “lirc” package in Ubuntu: New

Bug description:
Binary package hint: lirc

l# dpkg-reconfigure lirc-modules-source                                                                                             
Removing all DKMS Modules                                                                                                                                
Done.                                                                                                                                                    
Loading new lirc-0.8.6 DKMS files...                                                                                                                     
Building for 2.6.33-020633-generic and 2.6.33-020633rc8-generic                                                                                          
Building for architecture i686                                                                                                                           
Building initial module for 2.6.33-020633-generic                                                                                                        

Error! Bad return status for module build on kernel: 2.6.33-020633-generic (i686)
Consult the make.log in the build directory                                      
/var/lib/dkms/lirc/0.8.6/build/ for more information.                  
        

# cat /var/lib/dkms/lirc/0.8.6/build/make.log             
DKMS make.log for lirc-0.8.6 for kernel 2.6.33-020633-generic (i686)            
So 28. Feb 14:43:52 CET 2010                                                    
mkdir modules                                                                   
make -C drivers SUBDIRS="lirc_dev"                                              
make[1]: Betrete Verzeichnis '/var/lib/dkms/lirc/0.8.6/build/drivers'           
Making all in lirc_dev                                                          
make[2]: Betrete Verzeichnis '/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev'  
cp ./../lirc_dev/Module*.symvers .                                              
cp: Aufruf von stat für „./../lirc_dev/Module*.symvers“ nicht möglich: No such file or directory
make[2]: [lirc_dev.o] Fehler 1 (ignoriert)                                                      
mv Makefile Makefile.automake                                                                   
cp ./../Makefile.kernel Makefile                                                                
CPPFLAGS="" CFLAGS="" LDFLAGS="" \                                                              
        make -C /lib/modules/2.6.33-020633-generic/build SUBDIRS=/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev modules \
                KBUILD_VERBOSE=1                                                                                          
make[3]: Betrete Verzeichnis '/usr/src/linux-headers-2.6.33-020633-generic'                                               
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \                                 
        echo;                                                           \                                                 
        echo "  ERROR: Kernel configuration is invalid.";               \                                                 
        echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\                           
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \                                 
        echo;                                                           \                                                 
        /bin/false)                                                                                                       
mkdir -p /var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/.tmp_versions ; rm -f /var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev                                                            
  gcc -Wp,-MD,/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/.lirc_dev.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.4.3/include -I/usr/src/linux-headers-2.6.33-020633-generic/arch/x86/include -Iinclude  -include include/generated/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=1024 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/. -I/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/ -I/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/../.. -I/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/../.. -I/lib/modules/2.6.33-020633-generic/build/include/ -I/lib/modules/2.6.33-020633-generic/build/drivers/media/video/  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_dev)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_dev)"  -c -o /var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/.tmp_lirc_dev.o /var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.c                    
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.c:35:28: error: linux/autoconf.h: No such file or directory                                           
In file included from /var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.c:72:                                                                           
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.h: In function ‘lirc_buffer_init’:                                                                    
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.h:88: warning: passing argument 1 of ‘kfifo_alloc’ makes pointer from integer without a cast          
include/linux/kfifo.h:109: note: expected ‘struct kfifo *’ but argument is of type ‘unsigned int’                                                              
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.h:88: warning: passing argument 3 of ‘kfifo_alloc’ makes integer from pointer without a cast          
include/linux/kfifo.h:109: note: expected ‘gfp_t’ but argument is of type ‘struct spinlock_t *’                                                                
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.h:88: warning: assignment makes pointer from integer without a cast                                   
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.h: In function ‘lirc_buffer_read’:                                                                    
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.h:185: error: implicit declaration of function ‘kfifo_get’                                            
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.h: In function ‘lirc_buffer_write’:                                                                   
/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.h:206: error: implicit declaration of function ‘kfifo_put’                                            
make[4]: *** [/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.o] Fehler 1                                                                             
make[3]: *** [_module_/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev] Fehler 2                                                                                
make[3]: Verlasse Verzeichnis '/usr/src/linux-headers-2.6.33-020633-generic'                                                                                   
make[2]: *** [lirc_dev.o] Fehler 2                                                                                                                             
make[2]: Verlasse Verzeichnis '/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev'                                                                                
make[1]: *** [all-recursive] Fehler 1                                                                                                                          
make[1]: Verlasse Verzeichnis '/var/lib/dkms/lirc/0.8.6/build/drivers'                                                                                         
make: *** [dev] Fehler 2





References