Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188373 - stable net-wireless/ndiswrapper fails to build against kernel 2.6.23
Summary: stable net-wireless/ndiswrapper fails to build against kernel 2.6.23
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Piotr Jaroszyński (RETIRED)
URL:
Whiteboard:
Keywords: STABLEREQ
: 194097 196560 201849 (view as bug list)
Depends on:
Blocks: kernel-2.6.23
  Show dependency tree
 
Reported: 2007-08-10 17:07 UTC by Jesse Burt
Modified: 2007-12-10 17:16 UTC (History)
4 users (show)

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


Attachments
Patch to ntoskernel.c (ntoskernel.c.patch,372 bytes, patch)
2007-08-10 17:20 UTC, Jesse Burt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Burt 2007-08-10 17:07:59 UTC
ntoskernel.o fails to build because it uses a kernel function 'kmem_cache_create' which in 2.6.23-rc2 seems to be defined with one less argument than it had at the time ndiswrapper-1.47 was updated. i.e.,
/var/tmp/portage/net-wireless/ndiswrapper-1.47/work/ndiswrapper-1.47/driver/ntoskernel.c: In function 'ntoskernel_init':
/var/tmp/portage/net-wireless/ndiswrapper-1.47/work/ndiswrapper-1.47/driver/ntoskernel.c:2597: error: too many arguments to function 'kmem_cache_create'
make[2]: *** [/var/tmp/portage/net-wireless/ndiswrapper-1.47/work/ndiswrapper-1.47/driver/ntoskernel.o] Error 1


Reproducible: Always

Steps to Reproduce:
1. Accept unstable (~x86) keyword
2. emerge =sys-kernel/vanilla-sources-2.6.23_rc2 and make config
3. emerge =net-wireless/ndiswrapper-1.47


Actual Results:  
Build fails at ntoskernel.o

Expected Results:  
Successful build/merge

Running under a chroot in Ubuntu Feisty, although the somewhat trivial nature of the bug makes most of this seem irrelevant.
Portage 2.1.3.3 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.20-16-generic i686)
=================================================================
System uname: 2.6.20-16-generic i686 AMD Turion(tm) 64 Mobile Technology MT-40
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 10 Aug 2007 14:30:02 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa arts asm bash-completion berkdb binary-drivers bitmap-fonts cairo cdr cdrom cli cracklib crypt cups dbus directfb dri dvb dvd dvdr dvdread eds emboss encode evo fam fbdev firefox fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv imlib imlib2 isdnlog j2ee java jpeg kde kerberos ldap lesstif mad memlimit midi mikmod mmx mmxext mp3 mpeg mudflap mysql ncurses nptl nptlonly offensive ogg opengl openmp oss pam pcap pcmcia pcre pda pdf perl plugins png pnp pppd python qt qt3 qt3support qt4 quicktime radeon readline reflection rle rtc samba sdl session sockets spell spl sse sse-filters sse2 ssl svg tcl tcltk tcpd tiff tk truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis win32codecs wxwindows x86 xml xorg xosd xpm xv xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jesse Burt 2007-08-10 17:20:23 UTC
Created attachment 127500 [details, diff]
Patch to ntoskernel.c

I haven't yet tested this patch. The source compiles with this patch, however, the fix is formulated only from a half(?)-educated perspective (i.e., although it compiles, I don't know with much certainty that it is a proper change, and that this might break with kernel versions older than 2.6.23-rc2)
Comment 2 Piotr Jaroszyński (RETIRED) gentoo-dev 2007-08-10 22:47:18 UTC
I have just added 1.48_rc1 to the tree, which works with 2.6.23 and has some other fixes. Btw. your patch is correct.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-20 23:00:04 UTC
*** Bug 196560 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2007-10-29 15:56:48 UTC
Reopening as this is broken in the stable tree.. I'm now working towards 2.6.23 stabling in 2 weeks time, so this stuff should ideally be fixed in stable if possible.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-12-07 22:34:22 UTC
*** Bug 194097 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-12-10 13:33:22 UTC
*** Bug 201849 has been marked as a duplicate of this bug. ***
Comment 7 Piotr Jaroszyński (RETIRED) gentoo-dev 2007-12-10 14:39:23 UTC
x86: please stable whatever version you are comfortable with, the newer the better :)
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-12-10 17:16:21 UTC
1.50 x86 stable and closing