Hey Tim, On Tue, 2003-05-27 at 23:25, [EMAIL PROTECTED] wrote: > Looking through the archives I seen people have come across VM > related Redhat 9 compilation errors before. Is there any way these could > be fixed? Could the driver be told the kernel version is 2.5? I gave up > running custom compiled kernels quite a while ago when I realised they > always casued me a lot of hassle and I always found another way round the > problem and went back to a stock kernel.
To be honest, I've never been able to actually get modules *running* on a stock kernel. I can compile them, but get different kernel symbols. My solution was always to use the default config (/boot/config-*) from the distro and remake a new custom kernel with that (so it does exactly the same as the distro kernel, just the symbols are different and match the symbols in /usr/src/linux-2.4/). OK, now on to RH9, it will mostly work, but remap_page_range() won't compile. The easiest way to fix this is edit line 4448-4452 of zoran_driver.c (current CVS, branch ZORAN_VIDEODEV_2): #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) #define zr_remap_page_range(a,b,c,d,e) remap_page_range(b,c,d,e) #else #define zr_remap_page_range(a,b,c,d,e) remap_page_range(a,b,c,d,e) #endif into: #if 0 //LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) #define zr_remap_page_range(a,b,c,d,e) remap_page_range(b,c,d,e) #else #define zr_remap_page_range(a,b,c,d,e) remap_page_range(a,b,c,d,e) #endif With that, it should compile. There might be some other issues that I'm not aware of, please do report them, I'll try to help. Just don't forget I'm not running a RH stock kernel, so I might not know all answers. Ronald -- Ronald Bultje <[EMAIL PROTECTED]> ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users