Ndiswrapper compile failed
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,
include/asm/processor.h:87: error: array type has incomplete element type
In file included from include/asm/mpspec.h:5,
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,
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: *** [/home/matthew/ndiswrapper-1.17/driver/hal.o] Error 1
make: *** [_module_/home/matthew/ndiswrapper-1.17/driver] Error 2
make: *** [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.
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.
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?
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.
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.
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.
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?
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.
|All times are GMT -5. The time now is 06:12 AM.|