LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-02-2005, 07:00 PM   #1
SlackwareInAZ
Member
 
Registered: Apr 2005
Posts: 55

Rep: Reputation: 15
Unable to compile ndiswrapper with 2.6.13 kernel


Anyone have any luck compiling ndiswrapper using the 2.6.13 kernel?

Have had no problems compiling ndiswrapper 1.2 in either Slackware, Vector, Zenwalk, or Arch using 2.6.12.5 kernel or earlier 2.6 kernels.

Get the following errors during the "make" portion of compiling ndiswrapper 1.2:

/root/ndiswrapper-1.2/driver/wrapper.c:287:47: error: macro "halt" passed 1 arguments, but takes just 0
/root/ndiswrapper-1.2/driver/wrapper.c: In function 'miniport_halt':
/root/ndiswrapper-1.2/driver/wrapper.c:287: warning: statement with no effect
/root/ndiswrapper-1.2/driver/wrapper.c:293: warning: ignoring return value of 'pci_set_power_state', declared with attribute warn_unused_result
/root/ndiswrapper-1.2/driver/wrapper.c: In function 'ndiswrapper_suspend_pci':
/root/ndiswrapper-1.2/driver/wrapper.c:737: warning: ignoring return value of 'pci_set_power_state', declared with attribute warn_unused_result
/root/ndiswrapper-1.2/driver/wrapper.c: In function 'ndiswrapper_resume_pci':
/root/ndiswrapper-1.2/driver/wrapper.c:759: warning: ignoring return value of 'pci_enable_device', declared with attribute warn_unused_result
make[3]: *** [/root/ndiswrapper-1.2/driver/wrapper.o] Error 1
make[2]: *** [_module_/root/ndiswrapper-1.2/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.13'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-1.2/driver'
make: *** [all] Error 2

Have scrutinized my .config file that I used to compile the 2.6.13 kernel without seeing anything obvious that I neglected. Everything in the network support and device driver areas are identical.

Gary

P.S. For a test, I had just did a quick compile of ndiswrapper 1.2, when booted using the 2.6.12.5 kernel, then restarted on 2.6.13 kernel, tried another compile of ndiswrapper, and duplicated the same errors, so I know everything in my system is fine.
Have tried this in Slackware 10.1 current & Arch 0.7. Both have the 2.6.13-mm1 kernel running reiser4. Same error in both OS's during the compile.
 
Old 09-02-2005, 10:49 PM   #2
lwfinger
LQ Newbie
 
Registered: Sep 2003
Distribution: SuSE 9.1, 9.2, 9.3
Posts: 26

Rep: Reputation: 15
I have built and run ndiswrapper 1.1 on 2.6.13. I have not tried 1.2 since 2.6.12 as it hangs my laptop on shutdown.

Do the links /lib/modules/2.6.13/build and /lib/modules/2.6.13/source point to your Linux 2.6.13 source tree? Did you run "make modules_install" after building the kernel?

Larry
 
Old 09-18-2005, 08:30 AM   #3
Anders.H
LQ Newbie
 
Registered: Sep 2005
Location: SWE
Posts: 9

Rep: Reputation: 0
Hey there! Come over and join forces in this thread (same problem).

http://www.linuxquestions.org/questi...postid=1852829
 
Old 09-18-2005, 09:30 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
The 2.6.13 kernel has a new version of wireless tools that isn't supported by the rest of the system. I could get ndiswrapper to compile against a 2.6.13 kernel, but it didn't work. Personally, I'm going to stick with a 2.6.11 kernel until things get a bit more sorted out.
 
Old 09-18-2005, 09:33 AM   #5
lwfinger
LQ Newbie
 
Registered: Sep 2003
Distribution: SuSE 9.1, 9.2, 9.3
Posts: 26

Rep: Reputation: 15
When I tried to test kernel version 2.6.14-rc1, that same error bit me. I posted on the only ndiswrapper forum I could find, but no one answers. I downloaded the CVS version of ndiswrapper (1.3rc1) and it compiled OK. It works on 2.6.13, but no connection on the new kernel; however, I think that is a bug in the kernel.

For 2.6.13, I recommend ndiswrapper 1.3rc1.

Larry
 
Old 09-18-2005, 05:01 PM   #6
lwfinger
LQ Newbie
 
Registered: Sep 2003
Distribution: SuSE 9.1, 9.2, 9.3
Posts: 26

Rep: Reputation: 15
Fix for macro "halt" compile error in ndiswrapper

The following patch fixes the "halt" takes 0 arguments error and lets ndiswrapper-1.3rc1 compile on 2.6.14-rc1:

diff -aur ndiswrapper-1.3rc1/driver/ndis.h ndiswrapper-1.3mod/driver/ndis.h
--- ndiswrapper-1.3rc1/driver/ndis.h 2005-08-20 07:16:05.000000000 -0500
+++ ndiswrapper-1.3mod/driver/ndis.h 2005-09-18 16:37:03.000000000 -0500
@@ -242,7 +242,7 @@
void (*enable_interrupts)(void *ctx) STDCALL;

/* Stop miniport */
- void (*halt)(void *ctx) STDCALL;
+ void (*ohalt)(void *ctx) STDCALL;e

/* Interrupt BH */
ndis_interrupt_handler handle_interrupt;
diff -aur ndiswrapper-1.3rc1/driver/wrapper.c ndiswrapper-1.3mod/driver/wrapper.c
--- ndiswrapper-1.3rc1/driver/wrapper.c 2005-08-20 07:16:05.000000000 -0500
+++ ndiswrapper-1.3mod/driver/wrapper.c 2005-09-18 16:37:04.000000000 -0500
@@ -386,9 +385,9 @@
void miniport_halt(struct wrapper_dev *wd)
{
struct miniport_char *miniport = &wd->driver->miniport;
- DBGTRACE1("driver halt is at %p", miniport->halt);
+ DBGTRACE1("driver halt is at %p", miniport->ohalt);

- LIN2WIN1(miniport->halt, wd->nmb->adapter_ctx);
+ LIN2WIN1(miniport->ohalt, wd->nmb->adapter_ctx);

ndis_exit_device(wd);
misc_funcs_exit_device(wd);
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ndiswrapper won't compile in 2.6.13 kernel shadowsnipes Linux - Wireless Networking 3 10-29-2005 06:04 PM
Unable to compile kernel-2.6.x on Slackware 10.1 Basel Slackware 21 09-01-2005 11:02 AM
Unable to compile Reiser4 Support into 2.6.12 kernel SlackwareInAZ Slackware 11 07-19-2005 01:12 PM
unable to compile new modules in the kernel Menestrel Slackware 1 01-09-2005 05:41 AM
Would I be able to compile NDiswrapper into a new kernel? Kyral Retsam Slackware 3 07-20-2004 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration