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.
Created attachment 82822 [details, diff] Patch to make lirc-0.8.0 work with kernel 2.6.16
can we get an ebuild which applies the patch?
Patch looks correct. Please apply and ensure the stable tree is fixed too.
Created attachment 83089 [details] ebuild to use the patch this patch applies the lirc patch
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 ;-)
Dropping block on 126972 as lirc is already broken in the stable tree against 2.6.15. Nevertheless, this should still be fixed quickly...
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. Tobi
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/Makefile.build 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: ebuild.sh, line 1532: Called dyn_compile ebuild.sh, 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 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -mtune=pentium4" CHOST="i686-pc-linux-gnu" 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" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.espri.arizona.edu/gentoo/ " MAKEOPTS="" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.0.22/gentoo-portage" 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" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Created attachment 84570 [details, diff] updated patch to compile other modules
streamzap now compiles successfully, thank you!
Added updated patch to CVS (Slightly modified, Removed the $Id:$-lines). lirc-0.8.0 now compiles against Kernel 2.6.16