LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-27-2006, 06:50 PM   #1
ACE91
LQ Newbie
 
Registered: Jul 2006
Location: Maine
Distribution: Slackware 10.2
Posts: 4

Rep: Reputation: 0
Thumbs down NdisWrapper and GCC compilation trouble on Slackware


Recently I have been trying to install a Belkin 802.11g Wireless G USB Adapter to my Slackware Linux 10.2 computer, but I cannot seem to get NdisWrapper (which is required to make the Belkin drivers work with Linux) to work. I have tried many versions of both NdisWrapper and GCC, but nothing that I try works. I will describe my experiences with each attempt to make NdisWrapper work below, and hopefully this will be enough information for someone to fix my problem.

My first attempt was simply downloading NdisWrapper 1.21 and compiling it. Right away this didn't work, as NdisWrapper 1.21 would not compile with a GCC version below 3.4, and Slackware comes with 3.3.6 pre-installed. So, I decided to download the latest GCC and install it. I downloaded GCC 4.0.2 from GNU and, many hours of compiling later, got it installed and working. However, while GCC 3.3.6 was too old for NdisWrapper, apparently 4.0.2 was too new. After running "make", an error occured that stopped the compilation; the output of the "make" command is shown below:

Code:
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.21/driver'
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.31/build/include/linux/modversions.h -DUSB_DRIVER_OWNER -freg-struct-return -DDRIVER_VERSION=\"1.21\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.31/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2    -c -o hal.o hal.c
In file included from /lib/modules/2.4.31/build/include/linux/kernel.h:15,
                 from /lib/modules/2.4.31/build/include/asm/system.h:5,
                 from /lib/modules/2.4.31/build/include/linux/spinlock.h:6,
                 from /lib/modules/2.4.31/build/include/linux/module.h:12,
                 from hal.c:17:
/lib/modules/2.4.31/build/include/asm/byteorder.h:14: warning: type qualifiers ignored on function return type
/lib/modules/2.4.31/build/include/asm/byteorder.h:30: warning: type qualifiers ignored on function return type
In file included from /lib/modules/2.4.31/build/include/linux/byteorder/little_endian.h:11,
                 from /lib/modules/2.4.31/build/include/asm/byteorder.h:65,
                 from /lib/modules/2.4.31/build/include/linux/kernel.h:15,
                 from /lib/modules/2.4.31/build/include/asm/system.h:5,
                 from /lib/modules/2.4.31/build/include/linux/spinlock.h:6,
                 from /lib/modules/2.4.31/build/include/linux/module.h:12,
                 from hal.c:17:
/lib/modules/2.4.31/build/include/linux/byteorder/swab.h:160: warning: type qualifiers ignored on function return type
/lib/modules/2.4.31/build/include/linux/byteorder/swab.h:173: warning: type qualifiers ignored on function return type
/lib/modules/2.4.31/build/include/linux/byteorder/swab.h:186: warning: type qualifiers ignored on function return type
/lib/modules/2.4.31/build/include/linux/byteorder/swab.h:200: warning: type qualifiers ignored on function return type
In file included from /lib/modules/2.4.31/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.31/build/include/linux/list.h:6,
                 from /lib/modules/2.4.31/build/include/linux/module.h:13,
                 from hal.c:17:
/lib/modules/2.4.31/build/include/asm/processor.h:75: error: array type has incomplete element type
In file included from /lib/modules/2.4.31/build/include/linux/netdevice.h:154,
                 from hal.c:18:
/lib/modules/2.4.31/build/include/linux/skbuff.h: In function '__skb_pull':
/lib/modules/2.4.31/build/include/linux/skbuff.h:828: warning: pointer targets in return differ in signedness
/lib/modules/2.4.31/build/include/linux/skbuff.h: In function 'skb_pull':
/lib/modules/2.4.31/build/include/linux/skbuff.h:846: warning: pointer targets in return differ in signedness
/lib/modules/2.4.31/build/include/linux/skbuff.h: In function '__pskb_pull':
/lib/modules/2.4.31/build/include/linux/skbuff.h:857: warning: pointer targets in return differ in signedness
/lib/modules/2.4.31/build/include/linux/skbuff.h: In function 'pskb_pull':
/lib/modules/2.4.31/build/include/linux/skbuff.h:864: warning: pointer targets in return differ in signedness
make[1]: *** [hal.o] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.21/driver'
make: *** [all] Error 2
Frustrated, I decided to download GCC 3.4.6 and compile it, hoping that it would work this time. However, compiling GCC 3.4.6 gave me more compilation errors. Something in the Java section didn't compile (and therefore stopped the rest of GCC from compiling); the error was apparently in the code rather than my system setup, and it occured both when I compiled it with 3.3.6 and when I compiled it with 4.0.2. I don't have the name of the exact error to post, because I don't want to go through an hour of compilation again right now to get it. Anyway, with me being unable to compile GCC 3.4.6 or NdisWrapper 1.21, I resorted to using an older NdisWrapper instead of a newer GCC. I downloaded NdisWrapper 1.12 and NdisWrapper 1.1, and tried to compile them each. 1.12 gave me the exact same errors as 1.21, but 1.1 would compile under GCC 3.3.6 (but not 4.0.2). However, after installing NdisWrapper 1.1 and using NdisWrapper to install the Belkin drivers from the CD, typing "modprobe ndiswrapper" froze my computer. I have no way to determine what caused the freeze.

As you can tell, my computer is giving me no end of trouble. If anyone could help with getting any of the attempts listed above to work, I would be extremely grateful.

Last edited by ACE91; 07-27-2006 at 09:06 PM.
 
Old 07-28-2006, 12:32 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,939

Rep: Reputation: 129Reputation: 129
Perhaps get your system back to Slackware-10.2 and follow Eric's
Using ndiswrapper for unsupported wireless card guide.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel compilation with old GCC rangalo Slackware 3 12-14-2005 03:35 PM
im runnig slackware 10.2 haveing trouble with ndiswrapper kadimkris Linux - Newbie 3 11-21-2005 11:12 AM
GCC Compilation Trouble Permaximus Linux - Software 3 11-03-2004 02:17 AM
should I use gcc-2.95.3 for kernel compilation shanenin Linux From Scratch 9 07-25-2004 10:24 PM
GCC 3.4.0 Compilation Crashes derryp Linux From Scratch 3 06-11-2004 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

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