On Tue, 29 Jul 2003, riza theresa batista wrote: >In file included from mgagrab.c:43: >/usr/src/linux-2.4.20-8/inlcude/linux/malloc.h:4:2 #error linux/malloc.h is >deprecated,use linux/slab.h instead. >In file included from mgagrab.c:53: >mgacore.h: In function 'uvirt_to_kva': >mgacore.h:501:warning: implicit declaration of function 'pte_offset' >mgacore.h:501:warning: assignment makes pointer from integer without a cast >make: *** [mgagrab.o] Error 1 Red Hat has modified their kernel to something unrecognizable. Do something like #ifndef HAVE_VMA #if LINUX_VERSION_CODE>=KERNEL_VERSION(2,5,3) || defined(pte_offset_map) #define HAVE_VMA 1 #else #define HAVE_VMA 0 #endif #endif #if HAVE_VMA #define pte_offset(pmd,adr) pte_offset_map(pmd,adr) /* Emulation for a kernel using the new rmap-vm */ #endif /* Fix by Michele Balistreri <brain87@xxxxxxx> */ You may also need to make more modifications, look qc-usb driver for example http://www.ee.oulu.fi/~tuukkat/quickcam/quickcam.html, especially qc-memory.c.