lirc 0.8.6 and linux kernel >= 2.6.33 (will affect Ubuntu 10.10)

Bug #529514 reported by RK
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
Fix Released
High
Unassigned
Nominated for Lucid by RK

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

Tags: patch
Revision history for this message
RK (kubuntu-rk) wrote :

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.

tags: added: patch
Revision history for this message
MarcRandolph (mrand) wrote :

Howdy, and thank you for helping to improve Lirc by opening this ticket. The above patch appears to only support >= 2.6.33 kernels. A patch (coded somewhat differently, and includes support for older and newer kernels) appears to already be in the upstream cvs tree:

http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/drivers/lirc_dev/lirc_dev.h?r1=1.37&r2=1.39

This issue should not affect Lucid/10.04 since it is shipping with the 2.6.32 kernel, but I'm leaving the ticket open in case we end up needing to patch 0.8.6 for Ubuntu 10.10. Hopefully a new upstream release is cut before then and just sync'ing to that would automaticly resolve this ticket.

summary: - lirc 0.8.6 and linux kernel 2.6.33
+ lirc 0.8.6 and linux kernel >= 2.6.33 (will affect Ubuntu 10.10)
Changed in lirc (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Thomas (t.c) wrote :

I build a package with the missing patches for 2.6.33

https://launchpad.net/~thomas-creutz/+archive/ppa/+packages

Revision history for this message
managementboy (managementboy) wrote :

@Thomas
Sorry, your package spits out a similar error when run.

/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
make[4]: *** [/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.o] Error 1
make[3]: *** [_module_/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.33-020633-generic'
make[2]: *** [lirc_dev.o] Error 2
make[2]: Leaving directory `/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/lib/dkms/lirc/0.8.6/build/drivers'
make: *** [dev] Error 2

Revision history for this message
moony (simon-brem) wrote :

I still get the errors with the patch from RK, the patch from Marc and with the patched packages from Thomas the same error like managementboy.
I'm using custom kernel 2.6.33 packages.

Revision history for this message
RK (kubuntu-rk) wrote :

@managementboy: maybe, but you can easily create that link:

sudo ln -s ../../include/generated/autoconf.h /usr/src/linux-headers-2.6.33-020633-generic/include/linux/autoconf.h

... then, (re-) install the package that Thomas C helpfully created to trigger rebuilding.

What again is preventing this from being fixed officially?

Revision history for this message
managementboy (managementboy) wrote :

@RK: Thanks! that did the trick.

if anyone wants to copy this: you need to change to the directory where you want the link to be placed, then create the symlink. After that you can install the new kernel packages. I used these to test on Karmic http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2010-03-20-karmic/

Changed in lirc (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lirc - 0.8.6-0ubuntu4

---------------
lirc (0.8.6-0ubuntu4) lucid; urgency=low

  [ Mario Limonciello ]
  * debian/patches/lirc-i2c-2.6.patch:
    - Fixes building lirc-i2c on kernel 2.6.32 (LP: #513042)
  * Enable building wpc8769l module. Thanks Greg Vickers. (LP: #508266)
  * debian/patches/lirc_dev-2.6.33.patch:
    - Fixes lirc_dev to work with 2.6.33 as well. Useful for people who use
      the kernel mainline PPA. (LP: #529514)
    - Thanks RK & MarkRandolph.
  * debian/patches/appleir_repeat_issue.patch:
    - Fix apple IR key repeat issue by backporting patch from LIRC CVS.
      (LP: #440466)
    - Thanks Chase Douglas for sharing this patch.

  [ Jeremy Yoder ]
  * Fix /regression in /etc/init.d/lirc where if both REMOTE and TRANSMITTER
    are selected the symlinks /dev/lircd and /dev/lircd1 both point to
    /var/run/lirc/lircd.
  * Fix related bug where if the user sets TRANSMITTER_SOCKET in hardware.conf
    a "1" is appended even though it doesn't need to be.
 -- Mario Limonciello <email address hidden> Sun, 28 Mar 2010 00:12:34 -0500

Changed in lirc (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Hendrik S (hendrik-spohr) wrote :
Download full text (3.7 KiB)

Sorry, but I have the same still the same problem in 10.04:

ProblemType: Package
DKMSBuildLog:
 DKMS make.log for lirc-0.8.6 for kernel 2.6.35-22-generic (x86_64)
 Sat Nov 6 00:34:34 CET 2010
 mkdir modules
 make -C drivers SUBDIRS="lirc_dev"
 make[1]: Entering directory `/var/lib/dkms/lirc/0.8.6/build/drivers'
 Making all in lirc_dev
 make[2]: Entering directory `/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev'
 cp ./../lirc_dev/Module*.symvers .
 cp: cannot stat `./../lirc_dev/Module*.symvers': No such file or directory
 make[2]: [lirc_dev.o] Error 1 (ignored)
 mv Makefile Makefile.automake
 cp ./../Makefile.kernel Makefile
 CPPFLAGS="" CFLAGS="" LDFLAGS="" \
  make -C /lib/modules/2.6.35-22-generic/build SUBDIRS=/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev modules \
   KBUILD_VERBOSE=1
 make[3]: Entering directory `/usr/src/linux-headers-2.6.35-22-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/x86_64-linux-gnu/4.4.3/include -I/usr/src/linux-headers-2.6.35-22-generic/arch/x86/include -Iinclude -include include/generated/autoconf.h -Iubuntu/include -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 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -fstack-protector -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=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 -pg -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -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.35-22-generic/build/include/ -I/lib/modules/2.6.35-22-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
 make[4]: *** [/var/lib/dkms/lirc/0.8.6/build/drivers/lirc_dev/lirc_dev.o] Erro...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.