Re: Compilation problems in comedi-0.7.60

If you look in comedi-dir/include/linux/mm.h, you'll see a series of 
lines that say

#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
#define REMAP_PAGE_RANGE(a,b,c,d,e) remap_page_range(b,c,d,e)
#else
#define REMAP_PAGE_RANGE(a,b,c,d,e) remap_page_range(a,b,c,d,e)
#endif

You need to override the default so that it assumes the else case.

Mike Belisle

On Oct 4, 2004, at 05:18, Peter Dettori wrote:

> 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
>
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

Received on 2004-10-04Z12:23:07