LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-26-2006, 07:03 PM   #1
matazar42
Member
 
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Rep: Reputation: 15
Ndiswrapper compile failed


Hey guys,
I've done some web searching and messing around and still get this not-so-descriptive error when compiling ndiswrapper-1.17.

make spitts out this

In file included from include/asm/thread_info.h:16,
from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /home/matthew/ndiswrapper-1.17/driver/hal.c:17:
include/asm/processor.h:87: error: array type has incomplete element type
In file included from include/asm/mpspec.h:5,
from include/asm/smp.h:18,
from include/linux/smp.h:17,
from include/linux/sched.h:23,
from include/linux/module.h:10,
from /home/matthew/ndiswrapper-1.17/driver/hal.c:17:
include/asm/mpspec_def.h:78: warning: 'packed' attribute ignored for field of type 'unsigned char[5u]'
In file included from include/linux/netdevice.h:151,
from /home/matthew/ndiswrapper-1.17/driver/hal.c:18:
include/linux/skbuff.h: In function 'skb_add_data':
include/linux/skbuff.h:1018: warning: pointer targets in passing argument 2 of 'csum_and_copy_from_user' differ in signedness
make[3]: *** [/home/matthew/ndiswrapper-1.17/driver/hal.o] Error 1
make[2]: *** [_module_/home/matthew/ndiswrapper-1.17/driver] Error 2
make[1]: *** [default] Error 2
make: *** [all] Error 2



Can anyone make sense of that?
I'm running slackware 10 on a very old IBM thinkpad 600.
I compiled as root becuse as a user I ran into some Permission Denied error.

Help is appreciated.

Thanks

-Matt
 
Old 06-26-2006, 07:55 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Is this Redhat 9 distro as in your ID tag?
If so which kernel?
Do you have the kernel source installed if custom kernel or the kernel-devel if using precompile rpm kernels?

Check on ndiswrapper with possiable issues with 2.4 kernels and latest version.

Brian1
 
Old 06-26-2006, 09:01 PM   #3
matazar42
Member
 
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Original Poster
Rep: Reputation: 15
Sorry, This is a different machine than the one in my profile.

I am using Slackware and just installed a 2.6.8 kernel because it was one of the prerequisites.
I have all the sources in /usr/src/linux-2.6.8 and a link to that directory in /lib/modules/2.6.8

I'm not sure what this error is even trying to tell me.
Can it not find some header file skbuff.h?

thanks
 
Old 06-26-2006, 09:14 PM   #4
matazar42
Member
 
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Original Poster
Rep: Reputation: 15
Hmm, you know now that I'm thinking about it, this might be a problem with gcc.
I just upgraded to gcc-4.1.1 as it was another prerequisite. And this is the first thing I have tried to compile with it. Maybe I should try compiling something else and see if I get a similar error.
 
Old 06-26-2006, 10:03 PM   #5
matazar42
Member
 
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Original Poster
Rep: Reputation: 15
Ok, I just succesfully compiled nano, this little command line text editor. The build went fine. That dosn't mean that it's not a compiler issue though. There may still be some library out of place. I don't know. I don't even know what the error is.
 
Old 06-27-2006, 07:11 AM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
The latest versions of ndiswrapper require a newer gcc than is in Slackware 10.2. The easiest way around this is to use an older ndiswrapper (I think 1.15 or older). I'm not sure if Slackware current has a newer version of gcc or not (you can check a mirror), but if it does, you could upgrade to -current. Personally, I would try an older ndiswrapper first as I don't really like running boxes off of -current.
 
Old 06-27-2006, 12:35 PM   #7
matazar42
Member
 
Registered: Dec 2004
Location: California
Distribution: Red Hat 9
Posts: 51

Original Poster
Rep: Reputation: 15
What is "-current"?
I already upgraded to gcc-4.1.1 It seems to work well as far as I can tell.
Do you recognize or even understand the error?
 
Old 06-27-2006, 01:46 PM   #8
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,785
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Quote:
What is "-current"?
Slackware has two branches. The numbered branches (like 10.2) are very stable and the packages are usually only updated for bug fixes and security patches. On the other hand, the current branch is the testing ground for the next release of Slackware. It has the latest and greatest, but because of that, it is also frequently changing and sometimes those changes break your install unless you're paying attention to the changelogs.

One of the problems with upgrading gcc is that stuff compiled with newer versions of gcc aren't always compatible with stuff compiled with older gcc versions. I know you said nano compilied cleanly, but nano doesn't have any kernel dependencies like ndiswrapper does. In your first post, you say you're on Slackware 10. Is that 10 or 10.x? If you are still on 10, then I would believe that upgrading just gcc is causing all sorts of problems.

The errors you've got look like broken code, but I haven't seen any reports that ndiswrapper 1.17 is that broken. If this were generally happening, there would be a lot more fuss going on. That leads me to suspect that upgrading gcc to 4.1.1, while running on a machine largely compiled with earlier versions, is leading to trouble. If I were in your shoes, I'd roll back the gcc upgrade and try an earlier ndiswrapper version. Either that or update your entire box to be on the current branch, including the kernel.
 
  


Reply

Tags
ndiswrapper


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
[Gentoo] Ndiswrapper Problem - Failed to configure wireless for wlan0 freek sanders Linux - Software 8 11-11-2005 02:12 AM
Ndiswrapper working but Wlan failed to setup electropizza Suse/Novell 1 09-17-2005 03:21 AM
Cant compile ndiswrapper (tried everything already) Giant01 Linux - Software 12 06-30-2005 08:26 AM
Broadcom 54g - ndiswrapper failed ayers Linux - Hardware 1 06-26-2005 04:03 PM
ndiswrapper failed to compile r_squared Linux - Wireless Networking 3 11-08-2004 07:50 AM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration