Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127122 - lirc-0.8.0 fails to compile against kernel 2.6.16
Summary: lirc-0.8.0 fails to compile against kernel 2.6.16
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest major (vote)
Assignee: Heinrich Wendel (RETIRED)
Depends on:
Reported: 2006-03-21 15:00 UTC by Paul Marks
Modified: 2006-04-14 15:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

Patch to make lirc-0.8.0 work with kernel 2.6.16 (lirc-0.8.0-kernel-2.6.16.patch,2.02 KB, patch)
2006-03-21 15:01 UTC, Paul Marks
Details | Diff
ebuild to use the patch (lirc-0.8.0.ebuild,4.57 KB, text/plain)
2006-03-25 06:38 UTC, Andreas Schäfer
updated patch to compile other modules (lirc-0.8.0-kernel-2.6.16.patch,5.65 KB, patch)
2006-04-13 09:14 UTC, Marc Rodarte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Marks 2006-03-21 15:00:14 UTC
I upgraded to the vanilla 2.6.16 kernel yesterday, and I could no longer compile the module for lirc.  I tracked down the relevant files in lirc's CVS, and used them to generate this patch.  It seems to work for me.
Comment 1 Paul Marks 2006-03-21 15:01:09 UTC
Created attachment 82822 [details, diff]
Patch to make lirc-0.8.0 work with kernel 2.6.16
Comment 2 Kevin Parent 2006-03-24 13:25:40 UTC
can we get an ebuild which applies the patch?
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2006-03-25 05:56:15 UTC
Patch looks correct. Please apply and ensure the stable tree is fixed too.
Comment 4 Andreas Schäfer 2006-03-25 06:38:37 UTC
Created attachment 83089 [details]
ebuild to use the patch

this patch applies the lirc patch
Comment 5 Andreas Schäfer 2006-03-25 06:40:17 UTC
nice patch!
this ebuild works for me. you just gotta place it in your local portage overlay, save the patch to the files subdir and digest the ebuild.

after that emerge lirc and be happy ;-)
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-03-26 09:12:43 UTC
Dropping block on 126972 as lirc is already broken in the stable tree against 2.6.15. Nevertheless, this should still be fixed quickly...
Comment 7 Tobias Kaminsky 2006-04-03 04:02:42 UTC
  gcc -m32 -Wp,-MD,/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_atiusb/.lirc_atiusb.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os     -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement  -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_atiusb/../.. -I/usr/src/linux//include/  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_atiusb)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_atiusb)" -c -o /var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.o /var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c:1183: error: unknown field `owner' specified in initializer
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_atiusb/lirc_atiusb.c:1183: warning: initialization from incompatible pointer type

Not working for me.
The error is still the same.

Comment 8 Nick Ellson 2006-04-12 15:40:58 UTC
I think this patch addresses the Haupauge card specifically. I am running 2.6.16-r1 and my compile bails building the module for streamzap. Does this suggest that the basic code for LIRC 0.8.0 is good but there are issues with individual vendor modules?

make[4]: Entering directory `/usr/src/linux-2.6.16-gentoo-r1'
mkdir -p /var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap/.tmp_versions
make -f scripts/ obj=/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap
  gcc -m32 -Wp,-MD,/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap/.lirc_streamzap.o.d  -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2     -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i686 -mtune=pentium4 -mregparm=3 -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement  -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap/../.. -I/usr/src/linux//include/  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_streamzap)"  -D"KBUILD_MODNAME=KBUILD_STR(lirc_streamzap)" -c -o /var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap/.tmp_lirc_streamzap.o /var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap/lirc_streamzap.c
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap/lirc_streamzap.c:180: error: unknown field `owner' specified in initializer
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap/lirc_streamzap.c:180: warning: initialization from incompatible pointer type
make[5]: *** [/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap/lirc_streamzap.o] Error 1
make[4]: *** [_module_/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap] Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.16-gentoo-r1'
make[3]: *** [lirc_streamzap.o] Error 2
make[3]: Leaving directory `/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_streamzap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0'
make: *** [all] Error 2

!!! ERROR: app-misc/lirc-0.8.0 failed.
Call stack:, line 1532:   Called dyn_compile, line 929:   Called src_compile
  lirc-0.8.0.ebuild, line 123:   Called die

!!! compile failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

pixie ~ # emerge --info
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r1 i686)
System uname: 2.6.16-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.0_pre17
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
CFLAGS="-O2 -march=pentium4 -mtune=pentium4"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4"
FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict"
USE="x86 7zip X a52 aac acpi alsa apache2 avi berkdb bitmap-fonts bzip2 cdr cli crypt ctype cups curl dba dbus dga djvu dlloader dmx dpms dri dts dv dvb dvd dvdr dvdread dvi eds elf emboss encode esd ethereal exif expat fame ffmpeg fftw fits flac flash font-server foomaticdb force-cgi-redirect fortran fpx ftp fuse gd gdbm gecko-sdk geoip gif gimp glitz glx gnome gnutls gpgme gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml gtkspell gzip h323 hal hddtemp id3 idn imagemagick imlib imlib2 input_devices_keyboard input_devices_mouse input_devices_synaptics isdnlog ithreads java jbig jfs jp2 jpeg jpeg2k lame lcms libg++ libsamplerate libwww lm_sensors logrotate lzo lzw mad mbox md5sum memlimit mikmod milter ming mjpeg mmap mmx mmxext mng motif mozilla mozsvg mp3 mp4 mp4live mpeg mpeg2 mplayer mysql mysqli mythtv nautilus ncurses nls nptl nptlonly nsplugin ntfs nvidia ogg opengl oss pam pcre pdf pdflib perl pic pie player png posix ppds pppd pwdb python pyzor quicktime rar razor readline reiserfs rle rpm samba sdk sdl sensord server session sftp simplexml slang smime smp snmp soap sockets sox spamassassin speex spell spf spl srs sse sse-filters sse2 ssl stream streamzap svg svgz sysfs szip t1lib tcpd theora threads tiff tokenizer tools tos truetype truetype-fonts type1 type1-fonts udev unzip usb v4l v4l2 vdr video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa vlm vorbis win32codecs wma wma123 wmf x264 xfs xinetd xml xml2 xmms xosd xpm xprint xscreensaver xsl xv xvid xvmc yv12 zip zlib zvbi elibc_glibc input_devices_evdev kernel_linux userland_GNU"
Comment 9 Marc Rodarte 2006-04-13 09:14:01 UTC
Created attachment 84570 [details, diff]
updated patch to compile other modules
Comment 10 Nick Ellson 2006-04-13 09:30:31 UTC
streamzap now compiles successfully, thank you!
Comment 11 Matthias Schwarzott gentoo-dev 2006-04-14 15:57:33 UTC
Added updated patch to CVS (Slightly modified, Removed the $Id:$-lines).

lirc-0.8.0 now compiles against Kernel 2.6.16