<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>188373</bug_id>
          
          <creation_ts>2007-08-10 17:07 0000</creation_ts>
          <short_desc>stable net-wireless/ndiswrapper fails to build against kernel 2.6.23</short_desc>
          <delta_ts>2007-12-10 17:16:21 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <keywords>STABLEREQ</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>195298</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>genecide@comcast.net</reporter>
          <assigned_to>peper@gentoo.org</assigned_to>
          <cc>matija.suklje@rutka.net</cc>
    
    <cc>mcf@augustmail.com</cc>
    
    <cc>mobile@gentoo.org</cc>
    
    <cc>ramachandranms@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>genecide@comcast.net</who>
            <bug_when>2007-08-10 17:07:59 0000</bug_when>
            <thetext>ntoskernel.o fails to build because it uses a kernel function &apos;kmem_cache_create&apos; 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 &apos;ntoskernel_init&apos;:
/var/tmp/portage/net-wireless/ndiswrapper-1.47/work/ndiswrapper-1.47/driver/ntoskernel.c:2597: error: too many arguments to function &apos;kmem_cache_create&apos;
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=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=k8 -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=k8 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccache distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LANG=&quot;en_US.UTF-8&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;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&quot; ALSA_PCM_PLUGINS=&quot;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&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev joystick keyboard mouse synaptics&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;radeon&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genecide@comcast.net</who>
            <bug_when>2007-08-10 17:20:23 0000</bug_when>
            <thetext>Created an attachment (id=127500)
Patch to ntoskernel.c

I haven&apos;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&apos;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)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peper@gentoo.org</who>
            <bug_when>2007-08-10 22:47:18 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-10-20 23:00:04 0000</bug_when>
            <thetext>*** Bug 196560 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dsd@gentoo.org</who>
            <bug_when>2007-10-29 15:56:48 0000</bug_when>
            <thetext>Reopening as this is broken in the stable tree.. I&apos;m now working towards 2.6.23 stabling in 2 weeks time, so this stuff should ideally be fixed in stable if possible.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-12-07 22:34:22 0000</bug_when>
            <thetext>*** Bug 194097 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-12-10 13:33:22 0000</bug_when>
            <thetext>*** Bug 201849 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>peper@gentoo.org</who>
            <bug_when>2007-12-10 14:39:23 0000</bug_when>
            <thetext>x86: please stable whatever version you are comfortable with, the newer the better :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2007-12-10 17:16:21 0000</bug_when>
            <thetext>1.50 x86 stable and closing</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>127500</attachid>
            <date>2007-08-10 17:20 0000</date>
            <desc>Patch to ntoskernel.c</desc>
            <filename>ntoskernel.c.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG50b3NrZXJuZWwuY34JMjAwNy0wNi0xMyAwNTozODoxMC4wMDAwMDAwMDAgKzAwMDAKKysr
IG50b3NrZXJuZWwuYwkyMDA3LTA4LTEwIDE2OjU0OjU2LjAwMDAwMDAwMCArMDAwMApAQCAtMjU5
NCw3ICsyNTk0LDcgQEAKIAl9CiAJbWRsX2NhY2hlID0ga21lbV9jYWNoZV9jcmVhdGUoIndyYXBf
bWRsIiwKIAkJCQkgICAgICBzaXplb2Yoc3RydWN0IHdyYXBfbWRsKSArIE1ETF9DQUNIRV9TSVpF
LAotCQkJCSAgICAgIDAsIDAsIE5VTEwsIE5VTEwpOworCQkJCSAgICAgIDAsIDAsIE5VTEwpOwog
CVRSQUNFMigiJXAiLCBtZGxfY2FjaGUpOwogCWlmICghbWRsX2NhY2hlKSB7CiAJCUVSUk9SKCJj
b3VsZG4ndCBhbGxvY2F0ZSBNREwgY2FjaGUiKTsK
</data>        

          </attachment>
    </bug>

</bugzilla>