Re: Compilation problems in comedi-0.7.60

Hi,

I believe this is because Redhat has backported some 2.5/2.6 changes 
into their 2.4 kernels.  You could either use a standard 2.4 kernel from 
kernel.org, which i guess is the recommended way.  Otherwise you'll need 
to fix the compile errors, the remap_page_range call requires the vma 
structure passed first.  from memory pte_offset becomes 
pte_offset_map/unmap or something like that.

,
pete


madhuker mythri wrote:
>   
> Hello all,
>             Im using RedHat-9. and i had compiled as per installation Notes (by doind "make config")..
> but im getting following Error's when i compile...
> -------------------
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer  -fno-strict-aliasing -D__KERNEL__ -I /home/madhu/projectmaterial/PCI/comedi-0.7.60/include -I /usr/src/linux-2.4//include -I . -D__MODBUILD__ -D__SMP__ -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.4//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_Rsmp_f926b573' makes pointer from integer without a cast
> kvmem.c:90: incompatible type for argument 4 of `remap_page_range_Rsmp_f926b573'kvmem.c:90: too few arguments to function `remap_page_range_Rsmp_f926b573'
> make[1]: *** [kvmem.o] Error 1
> make[1]: Leaving directory `/home/madhu/projectmaterial/PCI/comedi-0.7.60/comedi'
> make: *** [_mod_comedi] Error 2
> [root_at_localhost comedi-0.7.60]#
> ---------------------------------
>            should we install comedilib before  comedi-0.7.60...
> but, when i compile comedilib also im getting Error's...
>                        Please give suggetion..
>                                  Regards
>                                  Madhukar.M

Received on 2004-10-04Z11:18:41