From: <wi...@so...> - 2000-03-04 17:55:59
|
This still refuses to work on my machine. I am have kernel headers for 2.3.49 (most previous versions have had problems too, I keep upgrading in the vain hope there will be a fix). If I try and compile the module with make -f Makefile.linux I get loads of errors relating to undefined types etc. This is with /usr/include/asm and /usr/include/linux symlinked in to /usr/src/linux/ include/asm-i386/ and /usr/src/linux/include/linux respectively. Modifying the makefile so CFLAGS = -I/usr/src/linux/include fixes these errors. Unfortunately the compile still dies thus: /usr/src/linux/include/asm/spinlock.h: At top level: /usr/src/linux/include/asm/spinlock.h:26: conflicting types for `spinlock_t' /usr/src/linux/include/linux/spinlock.h:50: previous declaration of `spinlock_t'/usr/src/linux/include/asm/spinlock.h:73: parse error before `void' /usr/src/linux/include/asm/spinlock.h:88: parse error before `do' /usr/src/linux/include/asm/spinlock.h:118: conflicting types for `rwlock_t' /usr/src/linux/include/linux/spinlock.h:113: previous declaration of `rwlock_t' /usr/src/linux/include/asm/spinlock.h:141: parse error before `void' /usr/src/linux/include/asm/spinlock.h:150: parse error before `void' Anyone else seeing this problem with the latest kernels? I can't find any mention in the archives or on any other sites out there. Surely this must be a simnple one to fix either in the kernel or by fooling with the build system? |