Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69586 - ndiswrapper 0.11 does not compile
Summary: ndiswrapper 0.11 does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-31 02:07 UTC by Christian Bartels
Modified: 2004-12-30 21:33 UTC (History)
1 user (show)

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


Attachments
ndiswrapper 0.12rc1 ebuild (ndiswrapper-0.12_rc1.ebuild,2.80 KB, application/octet-stream)
2004-11-16 21:05 UTC, Jordan Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Bartels 2004-10-31 02:07:03 UTC
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
Comment 1 Christian Bartels 2004-10-31 02:07:03 UTC
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.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2004-10-31 07:50:49 UTC
english?

latexer: I'll take care of this one.
Comment 3 Christian Bartels 2004-10-31 08:00:52 UTC
what english?
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2004-10-31 09:42:35 UTC
That's not english... What's that say in English?

Makro 
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2004-10-31 09:42:35 UTC
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?
Comment 6 Henrik Brix Andersen 2004-10-31 09:45:02 UTC
> Makro 
Comment 7 Henrik Brix Andersen 2004-10-31 09:45:02 UTC
> Makro »kthread_run« erfordert 5Argumente, aber nur 3 wurden angegeben

The "kthread_run" macro requires 5 arguments but only 3 were given.
Comment 8 Christian Bartels 2004-10-31 13:51:52 UTC
the kernel is configured, compiled and running.
Comment 9 Jordan Baker 2004-11-15 18:40:54 UTC
0.12rc1 fixes this problem.  this macro has changed in the last couple kernel updates, apparently.
Comment 10 Jordan Baker 2004-11-16 21:05:07 UTC
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?
Comment 11 Gard Spreemann 2004-11-17 12:32:32 UTC
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.
Comment 12 Doug Goldstein (RETIRED) gentoo-dev 2004-11-19 23:51:20 UTC
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.
Comment 13 Henrik Brix Andersen 2004-11-20 02:04:33 UTC
Please always include the output of 'emerge --info' when reporting a bug :)
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2004-12-07 11:38:32 UTC
Please test with the official ndiswrapper 0.12 ebuild and report back.
Comment 15 Jeff Davidson 2004-12-11 19:18:44 UTC
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"
Comment 16 Jeff Davidson 2004-12-11 19:24:11 UTC
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.
Comment 17 Doug Goldstein (RETIRED) gentoo-dev 2004-12-26 23:49:28 UTC
Try the latest 0.12-r2 ebuild and please report back
Comment 18 Doug Goldstein (RETIRED) gentoo-dev 2004-12-29 15:57:06 UTC
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.
Comment 19 Christian Bartels 2004-12-30 02:31:26 UTC
ndiswrapper-0.12-r3 is working perfectly for me. thx!
Comment 20 Doug Goldstein (RETIRED) gentoo-dev 2004-12-30 21:33:30 UTC
Great to hear.