Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296739 - app-misc/lirc-0.8.6-r2 does not compile agains gentoo-sources-2.6.32
Summary: app-misc/lirc-0.8.6-r2 does not compile agains gentoo-sources-2.6.32
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 2 votes (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-13 15:31 UTC by J.Taimr
Modified: 2010-05-21 02:34 UTC (History)
7 users (show)

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


Attachments
build log from emerge =app-misc/lirc-0.8.6-r2 (build.log,38.15 KB, text/plain)
2009-12-13 15:33 UTC, J.Taimr
Details
Changes from upstream CVS 1.71 (bug296739a.patch,448 bytes, patch)
2010-01-04 09:17 UTC, Martin von Gagern
Details | Diff
Upstream changes from rev 1.70 to rev 1.72 (lirc_i2c_r1.70_to_r1.72.patch,2.23 KB, patch)
2010-01-27 21:48 UTC, Ferdinand Hübner
Details | Diff
lirc-0.8.6-r3 ebuild for overlay (lirc-0.8.6-r3.ebuild,10.02 KB, text/plain)
2010-05-15 14:32 UTC, Matt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J.Taimr 2009-12-13 15:31:40 UTC
The compilation attempt of lirc-0.8.6-r2 under the gentoo-2.6.32 kernel fails with the error:
/var/tmp/portage/app-misc/lirc-0.8.6-r2/work/lirc-0.8.6/drivers/lirc_i2c/lirc_i2c.c:402: error: unknown field 'id' specified in initializer
/var/tmp/portage/app-misc/lirc-0.8.6-r2/work/lirc-0.8.6/drivers/lirc_i2c/lirc_i2c.c:402: warning: initialization makes pointer from integer without a cast
make[5]: *** [/var/tmp/portage/app-misc/lirc-0.8.6-r2/work/lirc-0.8.6/drivers/lirc_i2c/lirc_i2c.o] Error 1
make[4]: *** [_module_/var/tmp/portage/app-misc/lirc-0.8.6-r2/work/lirc-0.8.6/drivers/lirc_i2c] Error 2


Reproducible: Always

Steps to Reproduce:
1.emerge gentoo-sources-2.6.32
2.try to emerge app-misc/lirc-0.8.6-r2
3.

Actual Results:  
An error in the compilation phase

Expected Results:  
lirc-0.8.6-r2 should compile under 2.6.32 kernel

Portage 2.2_rc55 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.11-r0, 2.6.32-gentoo x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 13 Dec 2009 00:00:22 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -s -fomit-frame-pointer -fexpensive-optimizations"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -s -fomit-frame-pointer -fexpensive-optimizations"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://ftp.fi.muni.cz/pub/linux/gentoo"
LANG="cs_CZ"
LC_ALL="cs_CZ"
LDFLAGS="-Wl,-O1"
LINGUAS="cs cz nl en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/vdr-devel /usr/local/portage/layman/vdr-experimental /usr/local/portage/layman/vdr-testing /usr/local/portage/layman/science /usr/local/portage"
SYNC="rsync://gate.intranet/PORT"
USE="16bit 7zip GAPING_SECURITY_HOLE X X509 Xaw3d a52 aac accessibility ace acl acpi addbookmarks additions administrator aften aim alias alisp allegro alsa amarok amd64 amrnb amrwb animgif ao aoss aotuv aqua_theme arj artswrappersuid asf async atm audacious audiofile authfile ax25 bash-completion beep berkdb bigpatch bluetooth bogofilter boo boost branding bzip2 c++ cairo cap caps captury cdaudio cdda cddb cdio cdparanoia cdr cdrom cgi chroot clamav clamd cli cmake cmdctrl cmdsubmenu cnamefix colordiff consolekit corba cpufreq cracklib crosscompile crypt css ctype cups curlwrappers cursors cutterlimit cutterqueue cuttime cvs cxx daap dar64 dbase dbm dbus ddepgentry deprecated depth32 devhelp device-mapper devmap dga dia dio disk-partition distribution divx djbfft dmi dmx dnd dnsdb dolby-record-switch dolbyinrec dpms dri dts dv dvb dvbsetup dvd dvdarchive dvdchapjump dvdr dvdread dvi dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer dynamicplugin ecc edl effects embedded encode enscript escreen esd esfq etwin eu_epg evo exif expat extensions extrafilters extras fame fastcgi fat fbcon fbcondecor fbdev fbsplash ffmpeg fftw file filter firefox flac flatfile fltk fluidsynth font-server fontconfig foomaticdb fortran fping fpx ftp ftruncate fuse fusion fwdzone gatos gb gcj gd gdbm geoip gif gimp gimpprint glade glgd glib glibc-omitfp glitz glut glw glx gmtsuppl gnome gnome-print gnomecanvas gnomedb gnuplot gnustep gnutls gocr gpgme gphoto2 gpm gps graphtft graphtft-fe graphviz grub gs gstreamer gtk gtkhtml guile gzip hal hddtemp hfs high-ints history hpn htmlhandbook httpd hvm icon icons iconv icp icq id3 id3tag idea ieee1394 ilbc image imagemagick imap imlib imlib2 inkjar insecure-drivers insecure-savers intl ipalias iproute2 ipv6 ipv6arpa irc isc ithreads ivtv jabber jack jack-tmpfs java javascript jbig jce jfs jikes jp2 jpeg jpeg2k justify jython kde kde4 kdehiddenvisibility kerberos kernel-patch kipi kpathsea krb4 ladcca ladspa lame lcd lcms ldirectord libcaca libclamav libdsk libgda libsamplerate lirc live lm_sensors logitech-mouse lzo mad maildir maildrop mailwrapper matroska matrox md5sum mdb mdnsresponder-compat memlimit messages mikmod mime mimencode mjpeg mmap mmx mmxext mng mod modules mozcalendar mozsvg mozxmlterm mp2 mp3 mp4 mp4live mpeg mpeg2 mplayer mpm-worker msn mudflap multilib multipleip multislot music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses neXt net netboot netcdf nethack netpbm network networking nfs nls nptl nptlonly nsplugin nspr ntfs ntlm oav objc offensive ofx ogg ogg123 ogm openal openexr opengl openmp openssh openssl opensslcrypt openvpn optimized-qmake osc oscar oss pam pam_chroot pam_timestamp pango parse-clocks pascal passwordsave pcap pcntl pcre pdf perl perlsuid pg-vacuumdelay phonon php physfs pic pidgin pixmaps pkcs11 plasma player plotutils plugins pmount pmu png pnm portage posix postgres postproc postscript povray ppds pppd pptp prediction prelude print projectx pvr pymol python qa qemu-fast qmail qq qt-webkit qt3 qt3support qt4 qtdesigner quicktime quotas radio rar raw rc5 readline realmedia recode reflection regex reiser4 reiserfs resolvconf rle rotor roundrobin rplay rpm rrdtool rtc rtf rtsp samba sasl sblive scanner schroedinger screen sdl sdl-image sdl-sound sdlaudio semanticfix sendfile sensord session setup setup-plugin sftp sftplogging shaders shape shaper shared sharedmem sheep shorten shout silc silverxp simplexml sip skey skins slang smartcard smi smime sndfile sockets socks5 softmmu softquota solver sortrecords soundtouch sourcecaps sox spamassassin speedo speex spl sql sqlite sqlite3 srt sse sse-filters sse2 sse3 ssh ssl ssse3 stats stencil-buffer stlport stream stroke submenu subp subtitles subversion suid svg sysfs syslog system-libvncserver sysvipc szip t1lib taglib tcpd tcpwrapper tdb tetex tftp tgif themes theora threads threadsafe tiff timercmd timerinfo timestats tivo tk tls tokenizer tos transcode transmitter transparent-proxy truetype tta ttxtsubs tv twolame type1 underscores unicode unit-mm unzip upnp usb userlocales utempter uuencode v4l v4l2 validinput vamp vcd vcdimager vdpau vdr vhosts video virus-scan visualization vlm vnc vncviewer voice vorbis vorbis-psy vroot vte watchdog wav wavpack webkit wireshark withsamplescripts wma wmf wmp wxwindows x264 xanim xcb xcomposite xen xext xforms xfs xft xim xine xinerama xinetd xmail xml xml2 xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xrender xscreensaver xsl xslt xulrunner xv xvid xvmc yahoo yv12 zip zlib zrtp zvbi" ALSA_CARDS="seq-dummy dummy virmidi mpu401 loopback hda_intel bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs cz nl en" LIRC_DEVICES="all" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 J.Taimr 2009-12-13 15:33:17 UTC
Created attachment 212890 [details]
build log from emerge =app-misc/lirc-0.8.6-r2
Comment 2 Goon 2009-12-17 22:46:07 UTC
I can compile with atilibusb and serial just fine.  I did have the same problem when I have LIRC_DEVICES=all. With it being file lirc_i2c.c, I assume it could be for device i2cuser?
Comment 3 djkrysak 2009-12-29 19:22:23 UTC
I am able to build lirc-0.8.6-r2 only on one of my two machines.  The only difference being that I use the ene0100 driver on the one which builds just fine, and the hauppauge driver on the one that does not build.

I changed the driver to hauppauge on the machine that builds and can confirm that this will break it with the same error.  I haven't been able to try it with any other drivers, or changing to ene0100 on the machine that does not work.  Maybe someone can give this a try to see what happens?
Comment 4 Martin von Gagern 2010-01-04 09:12:55 UTC
Upstream CVS seems to have a patch: http://lirc.cvs.sourceforge.net/viewvc/lirc/lirc/drivers/lirc_i2c/lirc_i2c.c?r1=1.70&r2=1.71
Comment 5 Martin von Gagern 2010-01-04 09:17:02 UTC
Created attachment 215141 [details, diff]
Changes from upstream CVS 1.71

This patch is an adjusted changeset from upstream CVS. Should be suitable for inclusion into the lirc ebuild.
Comment 6 Jesse Adelman 2010-01-21 00:16:32 UTC
FYI: Debian bug for this issue: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562512
Comment 7 Jiri Tyr 2010-01-24 16:47:17 UTC
I can confirm that the patch fixes the compilation problem. Please add this patch into the Portage Tree.
Comment 8 Ferdinand Hübner 2010-01-27 21:48:03 UTC
Created attachment 217660 [details, diff]
Upstream changes from rev 1.70 to rev 1.72

Please note that you need to patch lirc_i2c.c to upstream revision 1.72 in order to make old Hauppauge WinTV PCI devices work with a 2.6.32 kernel:

http://sourceforge.net/mailarchive/forum.php?thread_name=4B38CBC6.8050606%40wilsonet.com&forum_name=lirc-list
Comment 9 Jesse Adelman 2010-02-19 06:14:59 UTC
Any overlays tracking this? Thanks.
Comment 10 G.K.MacGregor 2010-04-27 14:28:11 UTC
(In reply to comment #8)
> Upstream changes from rev 1.70 to rev 1.72
> 
> Please note that you need to patch lirc_i2c.c to upstream revision 1.72 in
> order to make old Hauppauge WinTV PCI devices work with a 2.6.32 kernel:

I can confirm that this patch allows it to compile successfully. My Hauppauge PVR-150 based remote is confirmed fully working.
Comment 11 Matt 2010-05-15 14:32:28 UTC
Created attachment 231567 [details]
lirc-0.8.6-r3 ebuild for overlay
Comment 12 Matt 2010-05-15 14:35:10 UTC
Comment on attachment 231567 [details]
lirc-0.8.6-r3 ebuild for overlay

This ebuild is from bug #301321. I have added the i2c patch from this bug.
Comment 13 Steve Dibb (RETIRED) gentoo-dev 2010-05-21 02:34:18 UTC
I2C patch in lirc-0.8.6-r3, thanks guys