errors while attempting to run "make"
Dan Finn <[email protected]>
| Newsgroups | gmane.linux.linux-wlan.user |
|---|---|
| Message-ID | <[email protected]> |
I am trying to build the latest version of wlan-ng (0.2.2) on a debian
sarge system running kernel 2.6.8-2. after running "make config"
(accepting all of the defaults) I get the following errors when I run
"make" :
make[3]: Entering directory `/usr/src/kernel-source-2.6.8'
CC [M] /home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.o
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/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:62:
include/asm/processor.h:87: error: array type has incomplete element type
In file included from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/linux/skbuff.h: In function 'skb_add_data':
include/linux/skbuff.h:1020: warning: pointer targets in passing
argument 2 of 'csum_and_copy_from_user' differ in signedness
In file included from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:73:
/home/dfinn/linux-wlan-ng-0.2.2/src//include/wlan/wlan_compat.h:231:29:
error: linux/hardirq.h: No such file or directory
make[4]: *** [/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.o]
Error 1
make[3]: *** [_module_/home/dfinn/linux-wlan-ng-0.2.2/src/p80211] Error 2
make[3]: Leaving directory `/usr/src/kernel-source-2.6.8'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/dfinn/linux-wlan-ng-0.2.2/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dfinn/linux-wlan-ng-0.2.2/src'
make: *** [all] Error 2
so it appears to be having problems including linux/hardirq.h. A locate
on my system shows it in two locations:
/usr/include/asm/hardirq.h
/usr/include/linux/hardirq.h
so I edit src/include/wlan/wlan_compat.h and change the following line from:
# include <linux/hardirq.h>
to:
# include </usr/include/linux/hardirq.h>
and re-run "make" and I get the following errors:
make[3]: Entering directory `/usr/src/kernel-source-2.6.8'
CC [M] /home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.o
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/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:62:
include/asm/processor.h:87: error: array type has incomplete element type
In file included from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/linux/skbuff.h: In function 'skb_add_data':
include/linux/skbuff.h:1020: warning: pointer targets in passing
argument 2 of 'csum_and_copy_from_user' differ in signedness
In file included from
/home/dfinn/linux-wlan-ng-0.2.2/src//include/wlan/wlan_compat.h:231,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:73:
/usr/include/linux/hardirq.h:46:1: warning: "PREEMPT_MASK" redefined
In file included from include/linux/interrupt.h:12,
from include/asm/highmem.h:24,
from include/linux/highmem.h:14,
from include/linux/skbuff.h:27,
from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/asm/hardirq.h:42:1: warning: this is the location of the
previous definition
In file included from
/home/dfinn/linux-wlan-ng-0.2.2/src//include/wlan/wlan_compat.h:231,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:73:
/usr/include/linux/hardirq.h:47:1: warning: "SOFTIRQ_MASK" redefined
In file included from include/linux/interrupt.h:12,
from include/asm/highmem.h:24,
from include/linux/highmem.h:14,
from include/linux/skbuff.h:27,
from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/asm/hardirq.h:44:1: warning: this is the location of the
previous definition
In file included from
/home/dfinn/linux-wlan-ng-0.2.2/src//include/wlan/wlan_compat.h:231,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:73:
/usr/include/linux/hardirq.h:48:1: warning: "HARDIRQ_MASK" redefined
In file included from include/linux/interrupt.h:12,
from include/asm/highmem.h:24,
from include/linux/highmem.h:14,
from include/linux/skbuff.h:27,
from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/asm/hardirq.h:43:1: warning: this is the location of the
previous definition
In file included from
/home/dfinn/linux-wlan-ng-0.2.2/src//include/wlan/wlan_compat.h:231,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:73:
/usr/include/linux/hardirq.h:90:1: warning: "nmi_enter" redefined
In file included from include/linux/interrupt.h:12,
from include/asm/highmem.h:24,
from include/linux/highmem.h:14,
from include/linux/skbuff.h:27,
from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/asm/hardirq.h:76:1: warning: this is the location of the
previous definition
In file included from
/home/dfinn/linux-wlan-ng-0.2.2/src//include/wlan/wlan_compat.h:231,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:73:
/usr/include/linux/hardirq.h:91:1: warning: "nmi_exit" redefined
In file included from include/linux/interrupt.h:12,
from include/asm/highmem.h:24,
from include/linux/highmem.h:14,
from include/linux/skbuff.h:27,
from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/asm/hardirq.h:77:1: warning: this is the location of the
previous definition
In file included from
/home/dfinn/linux-wlan-ng-0.2.2/src//include/wlan/wlan_compat.h:231,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:73:
/usr/include/linux/hardirq.h:103:1: warning: "irq_enter" redefined
In file included from include/linux/interrupt.h:12,
from include/asm/highmem.h:24,
from include/linux/highmem.h:14,
from include/linux/skbuff.h:27,
from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/asm/hardirq.h:75:1: warning: this is the location of the
previous definition
In file included from
/home/dfinn/linux-wlan-ng-0.2.2/src//include/wlan/wlan_compat.h:231,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:73:
/usr/include/linux/hardirq.h:109:26: error: macro "irq_exit" passed 1
arguments, but takes just 0
make[4]: *** [/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.o]
Error 1
make[3]: *** [_module_/home/dfinn/linux-wlan-ng-0.2.2/src/p80211] Error 2
make[3]: Leaving directory `/usr/src/kernel-source-2.6.8'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/dfinn/linux-wlan-ng-0.2.2/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dfinn/linux-wlan-ng-0.2.2/src'
make: *** [all] Error 2
so I change the include statement to point to /usr/include/asm/hardirq.h
and I get the following error when running "make" :
make[3]: Entering directory `/usr/src/kernel-source-2.6.8'
CC [M] /home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.o
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/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:62:
include/asm/processor.h:87: error: array type has incomplete element type
In file included from include/linux/netdevice.h:151,
from
/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.c:71:
include/linux/skbuff.h: In function 'skb_add_data':
include/linux/skbuff.h:1020: warning: pointer targets in passing
argument 2 of 'csum_and_copy_from_user' differ in signedness
make[4]: *** [/home/dfinn/linux-wlan-ng-0.2.2/src/p80211/p80211mod.o]
Error 1
make[3]: *** [_module_/home/dfinn/linux-wlan-ng-0.2.2/src/p80211] Error 2
make[3]: Leaving directory `/usr/src/kernel-source-2.6.8'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/home/dfinn/linux-wlan-ng-0.2.2/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dfinn/linux-wlan-ng-0.2.2/src'
make: *** [all] Error 2
Any help to get me past this hurdle would be extremely appreciated. I
am trying to build this so that I can get support for my D-Link DWL-650,
which seems to work great using the auditor live cd and the wlan-ng modules.
Thanks
Dan