compiling ndiswrapper 0.11 with gentoo-dev-sources-2.6.9-r1 gives this: >>> emerge (1 of 1) net-wireless/ndiswrapper-0.11 to / >>> md5 src_uri ;-) ndiswrapper-0.11.tar.gz >>> Unpacking source... * /usr/src/linux is a symbolic link * Determining the real directory of the Linux kernel source code * Building for Linux 2.6.9-gentoo-r1 found in /usr/src/linux >>> Unpacking ndiswrapper-0.11.tar.gz to /var/tmp/portage/ndiswrapper-0.11/work >>> Source unpacked. make -C driver make[1]: Entering directory `/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver' make[1]: Warnung: Kein Jobserver verf
compiling ndiswrapper 0.11 with gentoo-dev-sources-2.6.9-r1 gives this: >>> emerge (1 of 1) net-wireless/ndiswrapper-0.11 to / >>> md5 src_uri ;-) ndiswrapper-0.11.tar.gz >>> Unpacking source... * /usr/src/linux is a symbolic link * Determining the real directory of the Linux kernel source code * Building for Linux 2.6.9-gentoo-r1 found in /usr/src/linux >>> Unpacking ndiswrapper-0.11.tar.gz to /var/tmp/portage/ndiswrapper-0.11/work >>> Source unpacked. make -C driver make[1]: Entering directory `/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver' make[1]: Warnung: Kein Jobserver verfügbar: setzen -j1. Fügen »+« zur Ursprungsregel hinzu. make -C //usr/src/linux M=/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver \ NDISWRAPPER_VERSION=0.11 \ EXTRA_VERSION= modules make[2]: Entering directory `/usr/src/linux-2.6.9-gentoo-r1' CC [M] /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/wrapper.o CC [M] /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/iw_ndis.o CC [M] /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/pe_loader.o CC [M] /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.o /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692:70: Makro »kthread_run« erfordert 5Argumente, aber nur 3 wurden angegeben /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c: In Funktion »PsCreateSystemThread«: /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: `kthread_run' undeclared (first use in this function) /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: (Each undeclared identifieris reported only once /var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.c:692: error: for each function it appears in.) make[3]: *** [/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver/ntoskernel.o] Fehler 1 make[2]: *** [_module_/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver] Fehler 2 make[2]: Leaving directory `/usr/src/linux-2.6.9-gentoo-r1' make[1]: *** [default] Fehler 2 make[1]: Leaving directory `/var/tmp/portage/ndiswrapper-0.11/work/ndiswrapper-0.11/driver' make: *** [all] Fehler 2 !!! ERROR: net-wireless/ndiswrapper-0.11 failed. !!! Function src_compile, Line 40, Exitcode 2 !!! Compile Failed! !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. 2. 3.
english? latexer: I'll take care of this one.
what english?
That's not english... What's that say in English? Makro
That's not english... What's that say in English? Makro »kthread_run« erfordert 5Argumente, aber nur 3 wurden angegeben Based on the fact that it says that kthread_run is not declared... which is an internal kernel function... It looks like your kernel is not built properly or hasn't been configured. Have you compiled a kernel from those sources and built one yet?
> Makro
> Makro »kthread_run« erfordert 5Argumente, aber nur 3 wurden angegeben The "kthread_run" macro requires 5 arguments but only 3 were given.
the kernel is configured, compiled and running.
0.12rc1 fixes this problem. this macro has changed in the last couple kernel updates, apparently.
Created attachment 44135 [details] ndiswrapper 0.12rc1 ebuild in case someone else needs this: ebuild for 0.12rc1. not sure if the ebuild follows gentoo naming convention 100% correctly.. anyone?
SMC2802W fails to load with ndiswrapper 0.12rc1 and kernel 2.6.10-rc2. "ndiswrapper: Unknown symbol task_nice". The inf file is accepted, and it says the hardware is fine. Worked perfectly with 0.11 and kernel 2.6.9.
Unfortunately contrarry to popular belief, the Mobile herd (and me especially) do not support RCs or PREs of the kernel as there are usually several show stopper bugs that need to get addressed by us on LKML prior to a stable kernel release. I already have one on there prior to 2.6.10. ndiswrapper is also another package that mobile won't support RCs for. As far as ndiswrapper support goes, all ndiswrapper bug reports need to include the following: # cat /proc/version # gcc --version # ls -l /usr/src/linux (no / at the end) # uname -a # grep 'CONFIG_4KSTACKS' /usr/src/linux/.config So basically, if you're having a problem with ndiswrapper... include those 5 things.
Please always include the output of 'emerge --info' when reporting a bug :)
Please test with the official ndiswrapper 0.12 ebuild and report back.
I'm getting the problem with 0.12, just building it off of a Knoppix LiveCD for the base system install (because otherwise, I won't have a network to get it). 45: macro "kthread_run" requires 5 arguments, but only 3 given /var/tmp/portage/ndiswrapper-0.12/work/ndiswrapper-0.12/driver/ntoskernel.c: In function `PsCreateSystemThread': emerge --info: Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8.1-kanotix-10 i686) ================================================================= System uname: 2.6.8.1-kanotix-10 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.6.7 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -mcpu=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -mcpu=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod mmx motif mpeg ncurses nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell sse ssl svga tcpd truetype userlocales x86 xml2 xmms xv zlib"
If I comment out the #ifdefs surrounding line 745 related to swsusp2, the driver compiles. However, I won't continue further because I have no idea what the consequences of this are.
Try the latest 0.12-r2 ebuild and please report back
This is looking to get closed out due to lack of response as I'm 100% sure that new revisions test for these cases. Please report back.
ndiswrapper-0.12-r3 is working perfectly for me. thx!
Great to hear.