LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-12-2005, 02:53 AM   #1
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
Arrow ndiswrapper compile problems


I'm having trouble getting ndiswrapper to compile. I'm using stable Debian Sarge, downloaded and installed today.

I follow the directions here, but I get errors on the "make install" when compiling the ndiswrapper. Here is what I get:

Code:
marcus:/home/matt/ndiswrapper-1.2# make install
make -C driver install
make[1]: Entering directory `/home/matt/ndiswrapper-1.2/driver'
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o hal.o hal.c
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o iw_ndis.o iw_ndis.c
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o loader.o loader.c
loader.c: In function `ndiswrapper_add_pci_device':
loader.c:211: warning: implicit declaration of function `pci_set_consistent_dma_mask'
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o misc_funcs.o misc_funcs.c
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o ndis.o ndis.c
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o ntoskernel.o ntoskernel.c
ntoskernel.c: In function `wakeup_event':
ntoskernel.c:826: error: `task_t' undeclared (first use in this function)
ntoskernel.c:826: error: (Each undeclared identifier is reported only once
ntoskernel.c:826: error: for each function it appears in.)
ntoskernel.c:826: error: syntax error before ')' token
make[1]: *** [ntoskernel.o] Error 1
make[1]: Leaving directory `/home/matt/ndiswrapper-1.2/driver'
make: *** [install] Error 2
I am unsure if I did the correct steps for getting kernel headers. I was confused as to if I should get the "headers" or "source" package, so I got both, in that order.

I have this ln setup:
Code:
ln -s /usr/src/kernel-headers-2.4.27-2-386 /lib/modules/2.4.27-2-386/build
I've tried compiling with this pointing at various things (the source, the headers), but I always get the same deal. The error above.

Here is my uname -a
Code:
Linux marcus 2.4.27-2-386 #1 Mon May 16 16:47:51 JST 2005 i686 GNU/Linux
My system hardware is as seen in my signature.

This is really stumping me. This is my first Debian install (well, I tried it a long time ago, but I wasn't linux-smart enough to get it working at all then) and this is the first snag I've hit. I'm loving the Debian so far, save for this.

I appreciate your help.
 
Old 06-14-2005, 09:38 AM   #2
Socketeer
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
Unhappy

MikeZila

I had the same problem when compiling ndiswrapper 1.2 in my Slackware 10.1 (Kernel 2.4.29). I did a bit of investigation and found that sources for kernel 2.4.29 (at least the ones that come the distribution) do not have the struct task_t definition. Yours being 2.4.27 will have same problem for sure.

I worked around it by adding it myself 'typedef struct task_struct task_t;' on the ntoskernel.h file, and it compiled without any problem.

After that, when attempting to modprobe it, found that function pci_set_consistent_dma_mask was an unrecognized symbol (It was the only warning it gave when compiling). It would not work.

Solution, I upgraded to kernel 2.6.11 and everything worked perferctly without any problem. - BTW more stable than windows XP once working, even with WPA -

I do not why it mentions in the wiki it works with kernels 2.4.26 and above. Version 1.2 will not activate on a 2.4.xx system.

Hope this helps.

Socketeer.
 
Old 06-14-2005, 10:33 AM   #3
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Original Poster
Rep: Reputation: 30
It sure would have. It wouldn't have helped me get it to work, but it would have given me even more reason to do what I did here, an settle the matter once and for all.

http://www.linuxquestions.org/questi...hreadid=333141
 
  


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
Cant compile ndiswrapper (tried everything already) Giant01 Linux - Software 12 06-30-2005 08:26 AM
NDISWrapper Compile Problems! ragingtarrasque Linux - Software 14 01-10-2005 10:23 PM
Ndiswrapper Compile Errors ne2007ber Linux - Software 1 01-09-2005 02:33 PM
ndiswrapper failed to compile r_squared Linux - Wireless Networking 3 11-08-2004 07:50 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 - Distributions > Debian

All times are GMT -5. The time now is 06:58 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