When emerging sys-kernel/gentoo-sources-2.6.13-r2, the compile fails on drivers/pcmcia/yenta_socket.c, as described below. The problem lies on line 41 of 2900_yenta-oops.patch, where KERN_ERROR should be KERN_ERR. Reproducible: Always Steps to Reproduce: 1. cd /usr/src/linux-2.6.13-gentoo-r2/ 2. make menuconfig and select CONFIG_YENTA=y or CONFIG_YENTA=m 3. make Actual Results: CC [M] drivers/pcmcia/yenta_socket.o drivers/pcmcia/yenta_socket.c: In function `yenta_probe': drivers/pcmcia/yenta_socket.c:986: error: `KERN_ERROR' undeclared (first use in this function) drivers/pcmcia/yenta_socket.c:986: error: (Each undeclared identifier is reported only once drivers/pcmcia/yenta_socket.c:986: error: for each function it appears in.) drivers/pcmcia/yenta_socket.c:986: error: parse error before string constant make[2]: *** [drivers/pcmcia/yenta_socket.o] Error 1 make[1]: *** [drivers/pcmcia] Error 2 make: *** [drivers] Error 2 Expected Results: Continued compiling the kernel. Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r1 i686) ================================================================= System uname: 2.6.13-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1.86GHz Gentoo Base System version 1.12.0_pre8 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.3.5-r1, 2.4.1-r1 sys-apps/sandbox: 1.2.13 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium-m -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.leg.uct.ac.za/pub/linux/distributions/gentoo ftp://rucus.ru.ac.za/pub/linux/gentoo ftp://ftp.heanet.ie/pub/gentoo ftp://distfiles.gentoo.org ftp://ftp.ibiblio.org/pub/Linux/distributions/gentoo" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups curl dbus doc dvd eds emacs emboss encode esd fam firefox flac foomaticdb fortran ftp gdbm gif gpm gstreamer gtk gtk2 hal imagemagick imap imlib ipv6 jpeg junit ldap libg++ libwww mad maildir mikmod mmx motif mp3 mpeg mysql ncurses nls nntp nptl offensive ogg oggvorbis opengl oss pam pda pdflib perl php png postgres ppds python qt quicktime readline ruby samba sdl session snmp speex spell sql sse sse2 ssl subversion symlink tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb vorbis wifi xine xinerama xml xml2 xsl xv xvid zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Same for me with CONFIG_YENTA=m # emerge --info Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r1 i686) ================================================================= System uname: 2.6.13-gentoo-r1 i686 Intel(R) Pentium(R) M processor 2.00GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa arts avi berkdb bitmap-fonts cdr crypt cups curl dvdr eds emboss encode fam foomaticdb gdbm gif gpm gstreamer imlib java jpeg kde libg++ libwww logrotate mad mikmod mmx motif mp3 mpeg ncurses nls nptl nvidia ogg oggvorbis opengl oracle pam pdflib perl png python qt quicktime readline sdl spell sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
There is an "official" fix for this problem: <http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5a23f34798f15838fe1b7f0fd7e5be388e08c2b2>
(In reply to comment #2) > There is an "official" fix for this problem: > <http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5a23f34798f15838fe1b7f0fd7e5be388e08c2b2> > Doesn't seem a fix to this problem. From original post: > The problem lies on line 41 of 2900_yenta-oops.patch, where KERN_ERROR should be KERN_ERR.
(In reply to comment #3) > > There is an "official" fix for this problem: > > <http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5a23f34798f15838fe1b7f0fd7e5be388e08c2b2> > > > > Doesn't seem a fix to this problem. From original post: > > The problem lies on line 41 of 2900_yenta-oops.patch, where KERN_ERROR should be KERN_ERR. The fix linked above does in fact solve exactly this problem, changing KERN_ERROR to KERN_ERR. Can't it just be added to the patchset for gentoo-sources?
*** Bug 106618 has been marked as a duplicate of this bug. ***
*** Bug 106653 has been marked as a duplicate of this bug. ***
This patch, definetly works: --- drivers/pcmcia/yenta_socket.c +++ drivers/pcmcia/yenta_socket.c @@ -1052,8 +1052,8 @@ static int __devinit yenta_probe (struct * Bail out if so. */ if (!dev->subordinate) { - printk(KERN_ERROR "Yenta: no bus associated with %s!\n", - pci_name(dev)); + printk(KERN_ERR "Yenta: no bus associated with %s! " + "(try 'pci=assign-busses')\n", pci_name(dev)); return -ENODEV; }
Any resolution/decision on this issue yet?
*** Bug 107160 has been marked as a duplicate of this bug. ***
Yes, the fix is correct. I don't have internet access at the moment but will fix this when I am back online (later this week, I hope).
fixed in gentoo-sources-2.6.13-r3