Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106405 - compile of gentoo-sources-2.6.13-r2 fails on yenta-socket.c
Summary: compile of gentoo-sources-2.6.13-r2 fails on yenta-socket.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 106618 106653 107160 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-18 13:58 UTC by Adrian Frith
Modified: 2005-10-06 06:09 UTC (History)
11 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Frith 2005-09-18 13:58:23 UTC
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
Comment 1 Daniele Gaffuri 2005-09-18 15:59:18 UTC
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
Comment 2 Ulrich Müller gentoo-dev 2005-09-19 01:15:40 UTC
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>
Comment 3 Daniele Gaffuri 2005-09-19 13:55:54 UTC
(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.
Comment 4 Adrian Frith 2005-09-19 14:16:32 UTC
(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?
Comment 5 Micheal Marineau (RETIRED) gentoo-dev 2005-09-19 23:12:31 UTC
*** Bug 106618 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-09-20 00:59:49 UTC
*** Bug 106653 has been marked as a duplicate of this bug. ***
Comment 7 Wagner Sartori Junior 2005-09-20 19:47:55 UTC
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;
}
Comment 8 hvjunk 2005-09-24 14:10:41 UTC
Any resolution/decision on this issue yet?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-09-25 04:12:01 UTC
*** Bug 107160 has been marked as a duplicate of this bug. ***
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2005-09-26 04:05:22 UTC
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).
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2005-10-06 06:09:21 UTC
fixed in gentoo-sources-2.6.13-r3