Hi guys,
someone please help me out here. I am trying to recompile my orinoco and hermes modules after patching the source with orinoco-2.6.9-rfmon-dragorn-1.diff from kismetwirless.net. Apparentley this is neccessary to be able to put the card into monitor mode. According to the info I need to use this patch with Mandrake as opposed to the patch for the 2.6.8 kernels as Mandrake backported the 2.6.9 module to the 2.6.8 kernel. (I am using 2.6.8 kernel).
So never having done this before I have managed to get as far as patching the source files located in /usr/src/linux-2.6.8.1-12mdk/drivers/net/wireless. I am not to sure of how to proceed next but read I had to do the make, make install. However when I give the command 'make orinoco' I get a huge list of errors ......
cc orinoco.c -o orinoco
In file included from /usr/include/linux/sched.h:11,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/jiffies.h:16: error: syntax error before "jiffies_64"
/usr/include/linux/jiffies.h:20: error: syntax error before "get_jiffies_64"
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/cpumask.h:80: error: syntax error before "aDECLARE_BITMAP"
/usr/include/linux/cpumask.h:81: error: syntax error before "_unused_cpumask_arg_"
/usr/include/linux/cpumask.h:84: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function `__cpu_set':
/usr/include/linux/cpumask.h:86: error: `cpu' undeclared (first use in this function)
/usr/include/linux/cpumask.h:86: error: (Each undeclared identifier is reported only once
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:117: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function `__cpus_and':
/usr/include/linux/cpumask.h:120: error: `dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:120: error: `src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:160: error: syntax error before '*' token
/usr/include/linux/cpumask.h:343: error: syntax error before "cpu_possible_map"
/usr/include/linux/cpumask.h:344: error: syntax error before "cpu_online_map"
/usr/include/linux/cpumask.h:345: error: syntax error before "cpu_present_map"
/usr/include/linux/cpumask.h:347:5: missing binary operator before token "("
In file included from /usr/include/linux/sched.h:20,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/asm/mmu.h:13: error: field `sem' has incomplete type
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:24,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/list.h:685:2: warning: #warning "don't include kernel headers in userspace"
In file included from /usr/include/asm/siginfo.h:4,
from /usr/include/linux/signal.h:7,
from /usr/include/linux/sched.h:24,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/asm-generic/siginfo.h:58: error: size of array `_pad' is too large
In file included from /usr/include/linux/sched.h:26,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/fs_struct.h:9: error: syntax error before "rwlock_t"
/usr/include/linux/fs_struct.h:13: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:28,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/completion.h:15: error: syntax error before "wait_queue_head_t"
/usr/include/linux/completion.h: In function `init_completion':
/usr/include/linux/completion.h:26: error: dereferencing pointer to incomplete type
/usr/include/linux/completion.h:27: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/sched.h:29,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/pid.h: At top level:
/usr/include/linux/pid.h:18: error: field `task_list' has incomplete type
/usr/include/linux/pid.h:19: error: field `hash_chain' has incomplete type
/usr/include/linux/pid.h:24: error: field `pid_chain' has incomplete type
In file included from /usr/include/linux/sched.h:30,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/percpu.h: In function `__alloc_percpu':
/usr/include/linux/percpu.h:45: error: `GFP_KERNEL' undeclared (first use in this function)
In file included from /usr/include/linux/sched.h:101,
from /usr/include/linux/module.h:9,
from orinoco.c:431:
/usr/include/linux/timer.h: At top level:
/usr/include/linux/timer.h:11: error: field `entry' has incomplete type
In file included from orinoco.c:444:
/usr/include/asm/uaccess.h: In function `verify_area':
/usr/include/asm/uaccess.h:104: error: invalid type argument of `->'
/usr/include/asm/uaccess.h: In function `__copy_to_user':
/usr/include/asm/uaccess.h:409: error: `u8' undeclared (first use in this function)
/usr/include/asm/uaccess.h:409: error: syntax error before ')' token
/usr/include/asm/uaccess.h:409: error: syntax error before ')' token
hermes.h:246: error: syntax error before "u16"
hermes.h:246: warning: no semicolon at end of struct or union
orinoco.c:2135: error: `KERN_DEBUG' undeclared (first use in this function)
orinoco.c:2273: error: `KERN_DEBUG' undeclared (first use in this function)
orinoco.c:2273: error: syntax error before string constant
orinoco.c:2273: error: dereferencing pointer to incomplete type
orinoco.c:2273: error: syntax error before ')' token
orinoco.c:2274: error: dereferencing pointer to incomplete type
orinoco.c:2772: error: dereferencing pointer to incomplete type
orinoco.c:2773: error: `u16' undeclared (first use in this function)
orinoco.c:2773: error: syntax error before "xlen"
orinoco.c:2798: error: dereferencing pointer to incomplete type
orinoco.c:2864: warning: initialization makes pointer from integer without a cast
orinoco.c:2866: error: `u16' undeclared (first use in this function)
orinoco.c:2866: error: syntax error before "xlen"
orinoco.c:2876: error: dereferencing pointer to incomplete type
orinoco.c:4288: warning: (near initialization for `record_table[94]')
orinoco.c: In function `init_orinoco':
orinoco.c:4641: error: `KERN_DEBUG' undeclared (first use in this function)
orinoco.c:4641: error: syntax error before string constant
orinoco.c: At top level:
orinoco.h:243: error: storage size of `keys' isn't known
make: *** [orinoco] Error 1
JUST A SAMPLE
So its pretty obvious I'm missing something here. Could you please tell me what I SHOULD be doing to get this to make and then what I need to do to install it. Is it just a matter of subsitution?
I am running Mandrake 10.1 and my WIFI card is an Orinoco Gold PC24E, Agere.
Any help greatly appreciated, BashTin.