Re: Error trying to compile Comedi under RedHat

Anyway, to answer my own question.
Redhat screwed up the update of the remap_page_range() function.
It was supposed to change from having 4 arguments to 5 after ver 2.5.
But Redhat reverse ported the mods to revision 2.4.20.

The fix is to go into (comedidir)/include/linux/mm.h and change line
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
to 
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,20)

Also, when changing the Makefile Extraversion setting on a multiprocessor system,
make sure the smp suffix is there to match the uname -r suffix
i.e.
EXTRAVERSIOIN = -28.7smp


over and out.

----- Original Message ----- 
  From: james altizer 
  To: comedi_at_comedi.org 
  Sent: Tuesday, September 21, 2004 4:59 PM
  Subject: Error trying to compile Comedi under RedHat


  Hi,
  I'm trying to install Comedi on my RedHat System and I get compile
  errors during the make. Here is the tail end of the build report.

  Anyone have any idea what I might be doing wrong?

  Thanks,
  -James Altizer


  ../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

Received on 2004-09-23Z19:24:31