Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241688 - net-wireless/ndiswrapper-1.53 + *-sources-2.6.27 - ndiswrapper-1.53/driver/iw_ndis.c:1037: error: too few arguments to function 'iwe_stream_add_event'
Summary: net-wireless/ndiswrapper-1.53 + *-sources-2.6.27 - ndiswrapper-1.53/driver/iw...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Piotr Jaroszyński (RETIRED)
URL:
Whiteboard:
Keywords:
: 246110 246123 (view as bug list)
Depends on:
Blocks: 242708
  Show dependency tree
 
Reported: 2008-10-13 02:43 UTC by gfl3162+gbugzilla
Modified: 2008-11-20 16:02 UTC (History)
8 users (show)

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


Attachments
Patched Ebuild (ndiswrapper-1.53-r1.ebuild,2.93 KB, text/plain)
2008-10-23 00:38 UTC, chris salch
Details
Patch to go with ebuild (ndiswrapper-1.53-2.6.27-kernel.patch,4.21 KB, patch)
2008-10-23 00:39 UTC, chris salch
Details | Diff
patch from SVN/upstream for 2.6.27+ support (ndiswrapper-2.6.27-support.patch,5.00 KB, patch)
2008-11-10 16:07 UTC, George Wu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gfl3162+gbugzilla 2008-10-13 02:43:42 UTC
I am trying to build ndiswrapper with the latest kernel 2.6.27, and the build fails due to an api change.

This is the error message:
CC [M]  /var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.o
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c: In function 'ndis_translate_scan':
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c:1037: warning: passing argument 1 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c:1037: warning: passing argument 3 of 'iwe_stream_add_event' from incompatible pointer type
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c:1037: warning: passing argument 4 of 'iwe_stream_add_event' makes pointer from integer without a cast
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c:1037: error: too few arguments to function 'iwe_stream_add_event'
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c:1047: warning: passing argument 1 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c:1047: warning: passing argument 3 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c:1047: warning: passing argument 4 of 'iwe_stream_add_point' from incompatible pointer type
/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.c:1047: error: too few arguments to function 'iwe_stream_add_point'
...
make[4]: *** [/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver/iw_ndis.o] Error 1
make[3]: *** [_module_/var/tmp/portage/net-wireless/ndiswrapper-1.53/work/ndiswrapper-1.53/driver] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/main'
make: *** [modules] Error 2

ndiswrapper from svn builds correctly and works fine.

Reproducible: Always

Steps to Reproduce:
1. emerge >=gentoo-sources-2.6.27
2. prepare / compile kernel, restart (all those things)
3. emerge =ndiswrapper-1.53
Comment 1 Raimar Sandner 2008-10-13 14:52:09 UTC
This patch http://nopaste.debianforum.de/10153 solves the problem.
Comment 2 Jochen 2008-10-21 15:24:50 UTC
I can confirm that https://bugs.gentoo.org/show_bug.cgi?id=241688#c1 solves the bug. So, any news on a new ebuild?
Comment 3 Myles Goodwin 2008-10-22 02:06:49 UTC
(In reply to comment #1)
> This patch http://nopaste.debianforum.de/10153 solves the problem.
> 

Works just fine on my system:  Dell Inspiron 910 (Dell Mini 9)  Running WPA2-PSK with no problems.

emerge --info:

Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.27-gentoo i686)
=================================================================
System uname: 2.6.27-gentoo i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz
Timestamp of tree: Fri, 17 Oct 2008 09:00:02 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=native -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -Os -pipe -fomit-frame-pointer -momit-leaf-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://salador.silverducky.com http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://salador.silverducky.com/gentoo-portage"
USE="X a52 aac aalib acl acpi adns adplug ads alsa amr ao apm async asyncns audacious authdaemond automount avalon-framework avalon-logkit background battery berkdb binfilter branding bsf bzip2 cairo caps cddb cgraph chardet chroot cli consolekit cpufreq cracklib crypt cscope cups cursors custom-optimization dbus dell device-mapper dga directfb disk-partition dnd dri dynamic emacs encode eolconv examples exif expat extensions fam fbcon ffmpeg firefox flac fontconfig fortran fpx gcrypt gd gdbm gdm ggi gif glib glibc-omitfp glitz gmp gnutls gpm graphviz gs gsm gstreamer gtk guile hal hddtemp heterogeneous hpn iceweasel icons iconv idea imlib immqt-bc ipv6 isdnlog ithreads java javamail javascript jce jms jmx jpeg justify kdehiddenvisibility kerberos laptop lcms ldap libcaca libedit libgcrypt libnotify libsamplerate libssh2 lm_sensors log4j loop-aes lzo madwifi md5sum midi mktemp mmap mmx mng modplug mono mozdevelop mp3 mp3rtp mpeg mpi mtp mudflap multicall multitarget multiuser musepack nautilus ncurses network networking networkmanager new-login nls nptl nptlonly nsplugin nss oav objc objc++ objc-gc odbc odk offensive ogg opengl openmp pam passwdqc pbs pcre pentium perl pkcs11 plugins png portaudio pppd prediction pulseaudio python qt3 qt3support qt4 quotas raw readline real reflection restrict-javascript romio rrdcgi ruby rubytests samba sample sasl script sdl sensord server servletapi session silc skey slang slp smi sndfile socks5 sound soundex source speex spell spl sqlite sqlite3 srp sse sse2 ssl startup-notification svg svga swat sysfs syslog tcl tcpd test theora threads tiff timidity tk toolbar tools trace truetype tta unicode usb utils v4l v4l2 vcd vim-syntax vorbis wavpack wifi win32codecs winbind wininst wma wmf x264 x86 xattr xcomposite xemacs xforms xgetdefault xinetd xml xmldoclet xorg xpm xprint xscreensaver xulrunner xv xvid 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="fbdev i810 i740 i128 vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 chris salch 2008-10-23 00:38:11 UTC
Created attachment 169516 [details]
Patched Ebuild

This ebuild and the associated patch appear to fix building for me.
Comment 5 chris salch 2008-10-23 00:39:07 UTC
Created attachment 169518 [details, diff]
Patch to go with ebuild

This is the patch mentioned earlier in the bug with a little tweaking.
Comment 6 gfl3162+gbugzilla 2008-10-23 00:43:17 UTC
Maybe we can use the svn build/snapshot; it is very stable and causes no problems for me.
Comment 7 chris salch 2008-10-23 01:00:45 UTC
(In reply to comment #5)
> Created an attachment (id=169518) [edit]
> Patch to go with ebuild
> 
> This is the patch mentioned earlier in the bug with a little tweaking.
> 

Foo, the patch fixed the build but, Network Manager seems to think my card is wired after wards.   Something from svn may be better.
Comment 8 Marko Kocic 2008-11-07 13:13:07 UTC
(In reply to comment #6)
> Maybe we can use the svn build/snapshot; it is very stable and causes no
> problems for me.
> 

Just to confirm that the recent svn also worked for me under 2.6.27.4 kernel.
Comment 9 Ben de Groot (RETIRED) gentoo-dev 2008-11-09 01:47:26 UTC
*** Bug 246110 has been marked as a duplicate of this bug. ***
Comment 10 Ivan Havlicek 2008-11-09 12:39:31 UTC
Hi,

The patch in attachement is ok for me too :

# cd /usr/portage/net-wireless/ndiswrapper
# wget "http://bugs.gentoo.org/attachment.cgi?id=169516" -O ndiswrapper-1.53-r1.ebuild
# wget "http://bugs.gentoo.org/attachment.cgi?id=169518" -O files/ndiswrapper-1.53-2.6.27-kernel.patch
# ebuild ndiswrapper-1.53-r1.ebuild manifest
# emerge net-wireless/ndiswrapper
...
installing netwg511 ...

work's fine !
Comment 11 Wormo (RETIRED) gentoo-dev 2008-11-09 23:46:55 UTC
*** Bug 246123 has been marked as a duplicate of this bug. ***
Comment 12 Wormo (RETIRED) gentoo-dev 2008-11-09 23:49:20 UTC
The slightly different patch over in bug 246123 is worthy of consideration, since it came from upstream ndiswrapper svn.
Comment 13 George Wu 2008-11-10 16:07:35 UTC
Created attachment 171317 [details, diff]
patch from SVN/upstream for 2.6.27+ support
Comment 14 Bob Raitz 2008-11-15 09:45:56 UTC
Thanks for this! Add me to the list of satisfied customers. I can finally move my old Toshiba laptop up to 2.6.27 kernels. There is still nothing about this fix upstream. 

http://sourceforge.net/tracker/index.php?func=detail&aid=2216650&group_id=93482&atid=604450

Blessed be!
Pappy
Comment 15 Bob Raitz 2008-11-15 09:52:25 UTC
There is now.
Comment 16 Piotr Jaroszyński (RETIRED) gentoo-dev 2008-11-20 15:46:07 UTC
Sorry for the delay but I was hoping for a ndiswrapper release. Added patch to 1.53-r1. Thanks
Comment 17 Jochen 2008-11-20 16:02:03 UTC
I think you can write off any new releases as ndiswrapper is MIA:
http://kerneltrap.org/Linux/NDISwrapper_and_the_GPL