Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195432 - app-misc/lirc-0.8.2-r1 fails to compile against gentoo-sources-2.6.23
Summary: app-misc/lirc-0.8.2-r1 fails to compile against gentoo-sources-2.6.23
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
: 195508 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-10 21:06 UTC by Craig Andrews
Modified: 2007-12-02 12:27 UTC (History)
3 users (show)

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


Attachments
lirc-0.8.2-kernel-2.6.23.patch (lirc-0.8.2-kernel-2.6.23.patch,1.20 KB, patch)
2007-10-11 18:53 UTC, Sander Sweers
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2007-10-10 21:06:53 UTC
When emerging app-misc/lirc-0.8.2-r1, all goes well for a little bit, then the compile fails when it gets to the kernel modules.

Reproducible: Always

Steps to Reproduce:
1. Install gentoo-sources-2.6.23
2. emerge lirc
3. Read the error output

Actual Results:  
You will have to use the lirc_mceusb2 kernel module.

Now enter 'make' and 'make install' to compile and install the package.

make  all-recursive
make[1]: Entering directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2'
Making all in drivers
make[2]: Entering directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers'
Making all in lirc_dev
make[3]: Entering directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /usr/src/linux/ SUBDIRS=/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev modules \
        KBUILD_VERBOSE=1
make[4]: Entering directory `/usr/src/linux-2.6.23-gentoo'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (            \
       echo;                                                    \
       echo "  ERROR: Kernel configuration is invalid.";                \
       echo "         include/linux/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/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/.tmp_versions
rm -f /var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/.lirc_dev.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.1/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os  -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign  -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/../.. -I/usr/src/linux//include/ -I/usr/src/linux//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/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.o /var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c
/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c: In function 'lirc_dev_init':
/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c:883: error: void value not ignored as it ought to be
/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c: In function 'cleanup_module':
/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.c:910: error: void value not ignored as it ought to be
make[5]: *** [/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev/lirc_dev.o] Error 1
make[4]: *** [_module_/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev] Error 2
make[4]: Leaving directory `/usr/src/linux-2.6.23-gentoo'
make[3]: *** [lirc_dev.o] Error 2
make[3]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers/lirc_dev'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2/drivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.8.2-r1/work/lirc-0.8.2'
make: *** [all] Error 2
 * 
 * ERROR: app-misc/lirc-0.8.2-r1 failed.
 * Call stack:
 *          ebuild.sh, line 1687:  Called dyn_compile
 *          ebuild.sh, line 1025:  Called qa_call 'src_compile'
 *          ebuild.sh, line   44:  Called src_compile
 *          ebuild.sh, line 1369:  Called linux-mod_src_compile
 *   linux-mod.eclass, line  518:  Called die
 * The specific snippet of code:
 *             emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
 *                ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \
 *              || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}."
 *  The die message:
 *   Unable to make   all.


Expected Results:  
lirc compiles.

[ebuild   R   ] app-misc/lirc-0.8.2-r1  USE="X -debug -doc -hardware-carrier -transmitter" LIRC_DEVICES="mceusb2 -accent -act200l -act220l -adaptec -all -alsa_usb -animax -asusdh -atilibusb -atiusb -audio -audio_alsa -avermedia -avermedia98 -avermedia_vdomate -bestbuy -bestbuy2 -breakoutbox -bte -bw6130 -caraca -chronos -cmdir -cph06x -creative -creative_infracd -devinput -digimatrix -dsp -dvico -ea65 -exaudio -flyvideo -gvbctv5pci -hauppauge -hauppauge_dvb -hercules_smarttv_stereo -igorplugusb -imon -imon_pad -imon_pad2keys -imon_rsc -inputlirc -irdeo -irdeo_remote -irman -irreal -it87 -knc_one -kworld -leadtek_0007 -leadtek_0010 -leadtek_pvr2000 -livedrive_midi -livedrive_seq -logitech -macmini -mceusb -mediafocusI -mouseremote -mouseremote_ps2 -mp3anywhere -nslu2 -packard_bell -parallel -pcmak -pcmak_usb -pctv -pixelview_bt878 -pixelview_pak -pixelview_pro -provideo -realmagic -remote_wonder_plus -remotemaster -sa1100 -sasem -sb0540 -serial -serial_igor_cesko -silitek -sir -slinke -streamzap -tekram -tekram_bt829 -tira -ttusbir -tuxbox -tvbox -udp -uirt2 -uirt2_raw -usb_uirt_raw -usbirboy -usbx -userspace -xboxusb" 0 kB 

And emerge --info:
# emerge --info
Portage 2.1.3.12 (default-linux/amd64/2007.0/desktop, gcc-4.2.1, glibc-2.6.1-r0, 2.6.22-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3300+
Timestamp of tree: Wed, 10 Oct 2007 15:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc4-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r3
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /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/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon64 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,--hash-style=both,-z,relro,--enable-new-dtags,-O1,-z,now,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/java-overlay /usr/portage/local/layman/sunrise /usr/portage/local/layman/mythtv-overlay /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi aiglx alsa amd64 animation apache2 artworkextra asf aspnet2 authdaemond avahi avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo caps cdda cdparanoia cdr chm cli cracklib crypt cups curl daap dbus dga divx4linux dlloader dpms dri dts dv dvd dvdr dvdread emboss encode exif fam fame fat fbsplash ffmpeg fftw firefox flac foomaticdb fortran freetype gaim gd gdbm geoip gif gimpprint glib glibc-omitfp glitz glut gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 hal hardenedphp hbci howl howl-compat iconv imagemagick imap imlib innodb ipv6 isdnlog java java5 joystick jpeg jpeg2k junit kde kdehiddenvisibility lcms libfame libnotify libusb lirc live lm_sensors lzo mad maildir mdnsresponder-compat midi mikmod mjpeg mmap mmx mmxext mng mono motif mozilla mozsvg mp3 mpeg mpeg2 mplayer mudflap musepack mysql mythtv nautilus ncurses network nls nptl nptlonly ntfs nvidia offensive ofx ogg oggvorbis openexr opengl openmp pam pango pcre pdf pdflib perl pic pie png pnp ppd ppds pppd prelude pulseaudio python qt qt3 qt3support qt4 quicktime rar readline reflection rtc samba sasl screensaver sdl session sharedmem shout snmp sox speex spell spl sqlite sse sse2 ssl suspend2 svg tcpd theora threads tiff transcode truetype truetype-fonts type-fonts type1-fonts unicode unzip ups usb v4l v4l2 vcd videos vorbis webdav webservices wifi wmf wv x264 xanim xcb xine xinerama xml xml2 xorg xpm xprint xrandr xscreensaver xv xvid xvmc zeroconf zip zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="mceusb2" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-11 15:13:19 UTC
*** Bug 195508 has been marked as a duplicate of this bug. ***
Comment 2 Sander Sweers 2007-10-11 18:53:23 UTC
Created attachment 133202 [details, diff]
lirc-0.8.2-kernel-2.6.23.patch

Patch to fix compilation, source: http://lirc.cvs.sourceforge.net/lirc/lirc/drivers/lirc_dev/lirc_dev.c?r1=1.51&r2=1.52
Comment 3 Matthias Schwarzott gentoo-dev 2007-10-11 19:35:22 UTC
Fixed this in lirc-0.8.2-r2 together with a udev-fix.
Comment 4 Matthias Schwarzott gentoo-dev 2007-10-11 19:36:33 UTC
Reopend due to normal: Do not close until stable!
Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2007-10-16 13:50:09 UTC
Topic is about app-misc/lirc-0.8.2-r1 and just now, I could remerge it corectly.

app-misc/lirc-0.8.2-r2 stabilisation querry should stand in a seperate bug IMHO.
Comment 6 DEMAINE Benoît-Pierre, aka DoubleHP 2007-10-16 14:16:25 UTC
Sorry, I had hand-modified things in my box; it compiled, but not with verbatim
things.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2007-10-29 16:01:06 UTC
This is your 2 week warning for 2.6.23 stabling :)
please fix this in the stable tree as soon as possible
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-12-02 12:27:33 UTC
(In reply to comment #7)
> This is your 2 week warning for 2.6.23 stabling :)
> please fix this in the stable tree as soon as possible

Handled on Bug 197768.