Problems compiling driver to Linux

Hello.
 
I am trying to use the Comedi driver to board PCI1730 from Advantech.
I have Linux Red Hat 9.0 (Shrike), kernel 2.4.20-8 on an i686 processor.
Please take a look at what I did and, if possible, give a clue on what
is wrong.
 
Many thanks,
 
What I did:
 
1. Downloaded files
-comedi-0.7.60.tar.gz
-comedilib-0.7.19.tgz
 
2. Logged in Linux as root, and unpacked files into /usr/local with
command
#/usr/local tar xzvf comedi-0.7.60.tar.gz
 
3. Followed the procedure in
comedi-0.7.60/Documentation/comedi/redhat-notes. 
3.1 When running make config in /usr/local/comedi-0.7.59 directory,
chose the options:
### Verbose Debugging (CONFIG_COMEDI_DEBUG) [Y/n/?] - 'y'
### Kernel Comedilib (CONFIG_COMEDI_KLIB) [M/n/?] - 'm'
### Generic 8255 support (CONFIG_COMEDI_8255) [M/n/?] - 'm'
### Generic parallel port support (CONFIG_COMEDI_PARPORT) [M/n/?] -'m'
### PCI-1730 (CONFIG_COMEDI_PCI1730) [M/n/?] - 'm' 
the other parameters were set with 'n'.
 
3.2 The make command finished with error and the log is shown below:
 
### command make resulted in the following log
###
########################################################################
mkdir modules
mkdir: cannot create directory `modules': File exists
make: [_mod_comedi] Error 1 (ignored)
make -C  comedi CFLAGS="-Wall -Wstrict-prototypes -O2
-fomit-frame-pointer  -fno-strict-aliasing -D__KERNEL__ -I
/usr/local/comedi-0.7.60/include -I /usr/src/linux/include -I .
-D__MODBUILD__ -DMODULE -DMODVERSIONS -include
/usr/src/linux/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/local/comedi-0.7.60/comedi'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -D__KERNEL__ -I /usr/local/comedi-0.7.60/include -I
/usr/src/linux/include -I . -D__MODBUILD__ -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I .  -c -o
comedi_fops.o comedi_fops.c
In file included from comedi_fops.c:46:
kvmem.h: In function `uvirt_to_kva':
kvmem.h:66: warning: implicit declaration of function `pte_offset'
kvmem.h:66: warning: assignment makes pointer from integer without a
cast
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -D__KERNEL__ -I /usr/local/comedi-0.7.60/include -I
/usr/src/linux/include -I . -D__MODBUILD__ -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I .  -c -o proc.o
proc.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -D__KERNEL__ -I /usr/local/comedi-0.7.60/include -I
/usr/src/linux/include -I . -D__MODBUILD__ -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I .  -c -o range.o
range.c
range.c:30: warning: excess elements in array initializer
range.c:30: warning: (near initialization for `range_bipolar10.range')
range.c:31: warning: excess elements in array initializer
range.c:31: warning: (near initialization for `range_bipolar5.range')
range.c:32: warning: excess elements in array initializer
range.c:32: warning: (near initialization for `range_bipolar2_5.range')
range.c:33: warning: excess elements in array initializer
range.c:33: warning: (near initialization for `range_unipolar10.range')
range.c:34: warning: excess elements in array initializer
range.c:34: warning: (near initialization for `range_unipolar5.range')
range.c:35: warning: excess elements in array initializer
range.c:35: warning: (near initialization for `range_unknown.range')
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -D__KERNEL__ -I /usr/local/comedi-0.7.60/include -I
/usr/src/linux/include -I . -D__MODBUILD__ -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I .  -c -o
drivers.o drivers.c
In file included from drivers.c:25:
kvmem.h: In function `uvirt_to_kva':
kvmem.h:66: warning: implicit declaration of function `pte_offset'
kvmem.h:66: warning: assignment makes pointer from integer without a
cast
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -D__KERNEL__ -I /usr/local/comedi-0.7.60/include -I
/usr/src/linux/include -I . -D__MODBUILD__ -DMODULE -DMODVERSIONS
-include /usr/src/linux/include/linux/modversions.h -I .  -c -o kvmem.o
kvmem.c
In file included from kvmem.c:5:
kvmem.h: In function `uvirt_to_kva':
kvmem.h:66: warning: implicit declaration of function `pte_offset'
kvmem.h:66: warning: assignment makes pointer from integer without a
cast
kvmem.c: In function `rvmmap':
kvmem.c:90: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes
pointer from integer without a cast
kvmem.c:90: incompatible type for argument 4 of
`remap_page_range_R2baf18f2'
kvmem.c:90: too few arguments to function `remap_page_range_R2baf18f2'
make[1]: *** [kvmem.o] Error 1
make[1]: Leaving directory `/usr/local/comedi-0.7.60/comedi'
make: *** [_mod_comedi] Error 2
 
########################################################################
 
 
 
 
 
Mauricio Micoski
mauricio.micoski_at_compsisnet.com.br
12-2139-3966
 

Received on 2007-08-08Z11:50:42