Apologies in advance if this is a stupid question -- I'm pretty sure I'm dealing with a very simple problem, but I can't figure out how to fix.
I've written a kernel module which builds cleanly on a stock RH 7.0 system, but when I try to build it on my 2.2 Debian box, I get a *host* of errors, all to do with header parsing (I'll keep the output brief here). The Debian box has libc6-dev installed, kernel-headers-2.2.12-4, and kernel-source 2.2.12. On the RH box, I'm building against kernel 2.2.16 with gcc 2.96, and on the Debian box, 2.2.12 and gcc 2.95.2. Does anyone have any ideas or suggestions? I'm going buggy over this. Sample output follows. What am I doing wrong? cd /home/mike/src/bangrep/changedfiles/ make -k gcc -Wall -DMODULE -D__KERNEL__ -DLINUX -c changedfiles.c In file included from /usr/include/linux/fs.h:262, from changedfiles.c:4: /usr/include/linux/hpfs_fs_i.h:5: parse error before `ino_t' /usr/include/linux/hpfs_fs_i.h:5: warning: no semicolon at end of struct or union /usr/include/linux/hpfs_fs_i.h:12: parse error before `:' In file included from /usr/include/linux/fs.h:264, from changedfiles.c:4: /usr/include/linux/msdos_fs_i.h:36: parse error before `off_t' /usr/include/linux/msdos_fs_i.h:36: warning: no semicolon at end of struct or union In file included from /usr/include/linux/fs.h:265, from changedfiles.c:4: /usr/include/linux/umsdos_fs_i.h:62: field `msdos_info' has incomplete type /usr/include/linux/umsdos_fs_i.h:69: parse error before `off_t' /usr/include/linux/umsdos_fs_i.h:69: warning: no semicolon at end of struct or union /usr/include/linux/umsdos_fs_i.h:73: parse error before `}' In file included from /usr/include/linux/fs.h:266, from changedfiles.c:4: /usr/include/linux/iso_fs_i.h:11: parse error before `off_t' /usr/include/linux/iso_fs_i.h:11: warning: no semicolon at end of struct or union In file included from /usr/include/linux/affs_fs_i.h:5, from /usr/include/linux/fs.h:269, from changedfiles.c:4: /usr/include/linux/time.h:10: parse error before `time_t' /usr/include/linux/time.h:10: warning: no semicolon at end of struct or union /usr/include/linux/time.h:12: parse error before `}' /usr/include/linux/time.h: In function `timespec_to_jiffies': /usr/include/linux/time.h:32: dereferencing pointer to incomplete type /usr/include/linux/time.h:33: dereferencing pointer to incomplete type [SNIP] etc... etc... -------------------------------------------------- M. L. Welles [EMAIL PROTECTED] Senior Developer Managing Partner Bangstate, Inc. http://bangstate.com/ --------------------------------------------------