Errors building ndiswrapper under 2.6 kernel

Kaj J. Niemi mail.sw.rh.rhl.devel at spam.fi.basen.net
Sun Jan 4 16:04:51 UTC 2004


> If I build with my user account there is a problem with the version.h
> file. Some kind of permission denied problem. If I build as root there
> is a syntax error before "__atribute__" in desc.h.

You need to take a closer look at the ndiswrapper-general archives. :)

The first issue is easiest fixed by copying (rsyncing for example)
/lib/modules/`uname -r`/build to another location. Next you need to change
the line starting "KSRC = ..." in ndiswrapper/driver/Makefile to point
to the location you copied the build directory structure to.

Your second problem is fixed by moving #include "ndis.h" _below_ the
include for #include <asm/pgalloc.h> in driver/loader.c. ndis.h redefines
__attribute__ to something which asm/pgalloc.h isn't expecting.



// kaj





More information about the fedora-devel-list mailing list