Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92925 - ndiswrapper does not build against 2.6.11.9 with swsusp2 patched in
Summary: ndiswrapper does not build against 2.6.11.9 with swsusp2 patched in
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Other
: High normal
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 95132 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-17 07:48 UTC by mark lybarger
Modified: 2005-06-06 22:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mark lybarger 2005-05-17 07:48:50 UTC
emerge of ndiswrapper fails with a 2.6.11.9 kernel patched with suspend2
(swsusp2) patches.  the patched kernel is from brix's portage overlay where a
suspend2-sources kernel is located.  this may be related to the swsusp2 patch,
i'm not certain.  

a patch to ndiswrapper is available here:
 http://www.eglug.org/node/1094

 * Found sources for kernel version:
 *     2.6.11.9-suspend2
 * Checking for suitable kernel configuration options
>>> Unpacking source...
>>> Unpacking ndiswrapper-1.1.tar.gz to /var/tmp/portage/ndiswrapper-1.1-r1/work
 * Converting ndiswrapper-1.1/driver/Makefile to use M= instead of SUBDIRS=... 
                                             [ ok ]
>>> Source unpacked.
gcc -Wall -g -DNDISWRAPPER_VERSION=\"1.1\"    -c -o loadndisdriver.o
loadndisdriver.c
gcc -o loadndisdriver loadndisdriver.o
 * Preparing ndiswrapper module
make -C //usr/src/linux
M=/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver \
        NDISWRAPPER_VERSION=1.1 \
        EXTRA_VERSION= modules
make[1]: Entering directory `/usr/src/linux-2.6.11.9-suspend2'
  CC [M]  /var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/hal.o
  CC [M]  /var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/iw_ndis.o
  CC [M]  /var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/loader.o
  CC [M] 
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/misc_funcs.o
  CC [M]  /var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/ndis.o
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/loader.c: In
function `register_devices':
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/loader.c:861:
warning: assignment from incompatible pointer type
  CC [M] 
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/ntoskernel.o
  CC [M] 
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/pe_linker.o
  CC [M]  /var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/proc.o
  CC [M]  /var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/wrapper.o
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/ntoskernel.c:1112:68:
macro "kthread_run" requires 5 arguments, but only 3 given
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/ntoskernel.c: In
function `PsCreateSystemThread':
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/ntoskernel.c:1112:
error: `kthread_run' undeclared (first use in this function)
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/ntoskernel.c:1112:
error: (Each undeclared identifier is reported only once
/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/ntoskernel.c:1112:
error: for each function it appears in.)
make[2]: ***
[/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver/ntoskernel.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: ***
[_module_/var/tmp/portage/ndiswrapper-1.1-r1/work/ndiswrapper-1.1/driver] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.11.9-suspend2'
make: *** [default] Error 2

!!! ERROR: net-wireless/ndiswrapper-1.1-r1 failed.
!!! Function linux-mod_src_compile, Line 473, Exitcode 2
!!! Unable to make                                  KSRC=//usr/src/linux
KVERS=26 all.
!!! If you need support, post the topmost build error, NOT this status message.

Reproducible: Always
Steps to Reproduce:
1. emerge suspend2-sources
2. emerge ndiswrapper
3.

Actual Results:  
error message shown above building ndiswrapper.

Expected Results:  
ndiswrapper should build and install.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2005-05-18 06:18:09 UTC
swsusp2 is not supported. Only official kernels from kernel.org and
gentoo-sources are supported. This is a known issue which is why there are
warnings about it in the build as well as the NDISWrapper website.
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2005-06-06 22:31:59 UTC
*** Bug 95132 has been marked as a duplicate of this bug. ***