Hello,

I resolved the issue below for compiling the GPIO kernel modules.  In addition 
to having the kernel headers and kernel-devel package installed on CentOs, the 
actual kernel source needs to be installed as well.  


Following the links for this wiki page, I brought in the kernel source RPM and 
ran a compile without problem.

http://wiki.centos.org/HowTos/I_need_the_Kernel_Source


Brian



Making all in drv
make[1]: Entering directory `/usr/local/src/gpio-1.1.2/drv'
gcc -O -D__KERNEL__ -DMODULE -I/lib/modules/`uname -r`/build/include 
-DKERNEL_2_4 -o gpio.o -c gpio.c
In file included from 
/lib/modules/2.6.18-274.18.1.el5/build/include/asm/thread_info.h:16,
???????????????? from 
/lib/modules/2.6.18-274.18.1.el5/build/include/linux/thread_info.h:21,
???????????????? from 
/lib/modules/2.6.18-274.18.1.el5/build/include/linux/preempt.h:9,
???????????????? from 
/lib/modules/2.6.18-274.18.1.el5/build/include/linux/spinlock.h:49,
???????????????? from 
/lib/modules/2.6.18-274.18.1.el5/build/include/linux/capability.h:45,
???????????????? from 
/lib/modules/2.6.18-274.18.1.el5/build/include/linux/sched.h:44,
???????????????? from 
/lib/modules/2.6.18-274.18.1.el5/build/include/linux/module.h:9,
???????????????? from gpio.c:22:
/lib/modules/2.6.18-274.18.1.el5/build/include/asm/processor.h:87:
 error: ?CONFIG_X86_L1_CACHE_SHIFT? undeclared here (not in a function)
/lib/modules/2.6.18-274.18.1.el5/build/include/asm/processor.h:87: error: 
requested alignment is not a constant
In file included from 
/lib/modules/2.6.18-274.18.1.el5/build/include/linux/sched.h:49,
???????????????? from 
/lib/modules/2.6.18-274.18.1.el5/build/include/linux/module.h:9,
???????????????? from gpio.c:22:
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to