Emerge cdemu fails with an error while compiling When trying to emerge cdemu the error occurred: Calculating dependencies ...done! >>> emerge (1 of 1) app-cdr/cdemu-0.6_beta-r1 to / >>> md5 src_uri ;-) cdemu-0.6_beta.tar.bz2 >>> Unpacking source... >>> Unpacking cdemu-0.6_beta.tar.bz2 to /var/tmp/portage/cdemu-0.6_beta-r1/work * Applying cdemu_header_patch.diff ... [ ok ] >>> Source unpacked. cc -march=pentium3 -I/usr/src/linux/include -I/usr/src/linux/include/asm/mach-default -D__KERNEL__ -DMODULE -DKBUILD_MODNAME=cdemu -c cdemu.c -o cdemu.o cdemu.c: In function `cdemu_read_actor': cdemu.c:160: error: structure has no member named `buf' cdemu.c:160: error: structure has no member named `buf' cdemu.c:165: error: structure has no member named `buf' cdemu.c: In function `cdemu_transfer': cdemu.c:212: error: structure has no member named `buf' cdemu.c: In function `cdemu_block_ioctl': cdemu.c:705: warning: passing arg 1 of `cdrom_ioctl' from incompatible pointer type cdemu.c:705: warning: passing arg 2 of `cdrom_ioctl' from incompatible pointer type cdemu.c:705: warning: passing arg 3 of `cdrom_ioctl' makes pointer from integer without a cast cdemu.c:705: error: too few arguments to function `cdrom_ioctl' make: *** [all] Error 1 !!! ERROR: app-cdr/cdemu-0.6_beta-r1 failed. !!! Function src_compile, Line 25, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. Emerge cdemu 2. 3. Actual Results: The emerge fails with an error Expected Results: Emerge flawlessly and install cdemu Emerge info Portage 2.0.51-r3 (default-x86-2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-nitro2 i686) ================================================================= System uname: 2.6.9-nitro2 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.6 distcc 2.18 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -mtune=pentium3 -O3 -pipe -funroll-all-loops -fforce-addr -ffast-math -momit-leaf-frame-pointer -fprefetch-loop-arrays" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -mtune=pentium3 -O3 -pipe -funroll-all-loops -fforce-addr -ffast-math -momit-leaf-frame-pointer -fprefetch-loop-arrays" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs candy ccache distlocks sandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/linux/gentoo ftp://ftp.snt.utwente.nl/pub/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm avi berkdb bitmap-fonts cdr crypt divx4linux dvd encode esd f77 foomaticdb fortran gdbm gif gpm gtk gtk2 imap imlib ipv6 java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses network nls nptl nptlonly oggvorbis opengl pam pcmcia pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd truetype usbwifi x86 xml2 xmms xv xvid zlib" Also tried with CFLAGS reduced to: CFLAGS="-march=pentium3" which gives the same result.
-I/usr/src/linux/include is bad I guess.
upstream problem