newbie: error in "make" for comedi

hi
  I am new to linux and am trying to install comedi for NI PCI 6052E. I am 
running Red Hat 9.0 with kernel version 2.4.20-18.9 and gcc version 3.2.3.
The comedi version i downloaded and was trying to install is comedi-0.7.68

I did the following steps:
cd /usr/src/linux2.4.20-18.9/
make mrproper
cp /configs/kernel-2.4.20-i686.config .config
make oldconfig
make dep

Then in the comedi-0.7.68 directory i run "./configure" which generates 
the Makefile. 

there is no rule for 'make config' so i directly ran "make"

and i get an error , I am posting the last part of the build log here for 
reference.




In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_mio_cs.c:44:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: 
"pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_mio_cs.c:44:
../../include/asm/pgtable.h:26:1: warning: this is the location of the 
previous definition
../../modtool --link -o ni_mio_cs.ko  ni_mio_cs.o 
ld -m elf_i386 -e stext -r -o ni_mio_cs.ko ni_mio_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ 
-DKBUILD_MODNAME=ni_labpc_cs -D__KERNEL__ 
-I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer 
-pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS 
-include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE 
-DMODVERSIONS -include 
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h 
-D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 
-D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0 
-g -O2 -MT ni_labpc_cs.o -MD -MP -MF ".deps/ni_labpc_cs.Tpo" \
  -c -o ni_labpc_cs.o `test -f 'ni_labpc_cs.c' || echo './'`ni_labpc_cs.c; 
\
then mv -f ".deps/ni_labpc_cs.Tpo" ".deps/ni_labpc_cs.Po"; \
else rm -f ".deps/ni_labpc_cs.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_labpc_cs.c:64:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: 
"pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_labpc_cs.c:64:
../../include/asm/pgtable.h:26:1: warning: this is the location of the 
previous definition
../../modtool --link -o ni_labpc_cs.ko  ni_labpc_cs.o 
ld -m elf_i386 -e stext -r -o ni_labpc_cs.ko ni_labpc_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ 
-DKBUILD_MODNAME=quatech_daqp_cs -D__KERNEL__ 
-I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes 
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer 
-pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS 
-include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE 
-DMODVERSIONS -include 
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h 
-D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 
-D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0 
-g -O2 -MT quatech_daqp_cs.o -MD -MP -MF ".deps/quatech_daqp_cs.Tpo" \
  -c -o quatech_daqp_cs.o `test -f 'quatech_daqp_cs.c' || echo 
'./'`quatech_daqp_cs.c; \
then mv -f ".deps/quatech_daqp_cs.Tpo" ".deps/quatech_daqp_cs.Po"; \
else rm -f ".deps/quatech_daqp_cs.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from quatech_daqp_cs.c:50:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: 
"pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from quatech_daqp_cs.c:50:
../../include/asm/pgtable.h:26:1: warning: this is the location of the 
previous definition
../../modtool --link -o quatech_daqp_cs.ko  quatech_daqp_cs.o 
ld -m elf_i386 -e stext -r -o quatech_daqp_cs.ko quatech_daqp_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ 
-DKBUILD_MODNAME=usbdux -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include 
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 
-march=i686 -DMODULE -DMODVERSIONS -include 
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE 
-DMODVERSIONS -include 
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h 
-D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 
-D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0 
-g -O2 -MT usbdux.o -MD -MP -MF ".deps/usbdux.Tpo" \
  -c -o usbdux.o `test -f 'usbdux.c' || echo './'`usbdux.c; \
then mv -f ".deps/usbdux.Tpo" ".deps/usbdux.Po"; \
else rm -f ".deps/usbdux.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from usbdux.c:74:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: 
"pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from usbdux.c:74:
../../include/asm/pgtable.h:26:1: warning: this is the location of the 
previous definition
../../modtool --link -o usbdux.ko  usbdux.o 
ld -m elf_i386 -e stext -r -o usbdux.ko usbdux.o
make[3]: Leaving directory 
`/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi/drivers'
make[3]: Entering directory 
`/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I../include/ 
-DKBUILD_MODNAME=comedi -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include 
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing 
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 
-march=i686 -DMODULE -DMODVERSIONS -include 
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE 
-DMODVERSIONS -include 
/usr/src/linux-2.4.20-18.9/include/linux/modversions.h 
-D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 
-D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0 
-g -O2 -MT comedi_ko-comedi_fops.o -MD -MP -MF 
".deps/comedi_ko-comedi_fops.Tpo" \
  -c -o comedi_ko-comedi_fops.o `test -f 'comedi_fops.c' || echo 
'./'`comedi_fops.c; \
then mv -f ".deps/comedi_ko-comedi_fops.Tpo" 
".deps/comedi_ko-comedi_fops.Po"; \
else rm -f ".deps/comedi_ko-comedi_fops.Tpo"; exit 1; \
fi
In file included from ../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../include/linux/mm.h:23,
                 from comedi_fops.c:34:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: 
"pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../include/linux/mm.h:23,
                 from comedi_fops.c:34:
../include/asm/pgtable.h:26:1: warning: this is the location of the 
previous definition
comedi_fops.c: In function `comedi_mmap_v22':
comedi_fops.c:1300: warning: passing arg 1 of `remap_page_range_R492427ce' 
makes pointer from integer without a cast
comedi_fops.c:1300: incompatible type for argument 4 of 
`remap_page_range_R492427ce'
comedi_fops.c:1300: too few arguments to function 
`remap_page_range_R492427ce'
make[3]: *** [comedi_ko-comedi_fops.o] Error 1
make[3]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68'
make: *** [all] Error 2


If needed I can attach the complete 'make log'.

I would really appreciate some help in solving this problem..

Thanks in advance
Regards
Rajeshwary

Received on 2004-08-02Z14:33:01