[root@sm12296 zaptel]# gmake gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I /usr/src/linux/include -I/usr/src/linux/include/net -DSTANDALONE_ZAPATA -c zaptel.c In file included from /usr/include/linux/module.h:20, from zaptel.c:44: /usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers, /usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package. /usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to /usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include /usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel. In file included from zaptel.c:45: /usr/include/linux/proc_fs.h:47: error: syntax error before "off_t" /usr/include/linux/proc_fs.h:51: error: syntax error before "off_t" /usr/include/linux/proc_fs.h:57: error: syntax error before "mode_t" /usr/include/linux/proc_fs.h:59: error: syntax error before "uid" /usr/include/linux/proc_fs.h:60: error: syntax error before "gid" /usr/include/linux/proc_fs.h:70: error: syntax error before "count" /usr/include/linux/proc_fs.h:72: error: syntax error before "rdev" /usr/include/linux/proc_fs.h:176: error: syntax error before "mode_t" /usr/include/linux/proc_fs.h: In function `proc_net_create': /usr/include/linux/proc_fs.h:177: error: `NULL' undeclared (first use in this function) /usr/include/linux/proc_fs.h:177: error: (Each undeclared identifier is reported only once /usr/include/linux/proc_fs.h:177: error: for each function it appears in.) /usr/include/linux/proc_fs.h: At top level: /usr/include/linux/proc_fs.h:181: error: syntax error before "mode_t" /usr/include/linux/proc_fs.h: In function `create_proc_entry': /usr/include/linux/proc_fs.h:181: error: `NULL' undeclared (first use in this function) /usr/include/linux/proc_fs.h: In function `proc_symlink': /usr/include/linux/proc_fs.h:185: error: `NULL' undeclared (first use in this function) /usr/include/linux/proc_fs.h: At top level: /usr/include/linux/proc_fs.h:186: error: syntax error before "mode_t" /usr/include/linux/proc_fs.h: In function `proc_mknod': /usr/include/linux/proc_fs.h:187: error: `NULL' undeclared (first use in this function) /usr/include/linux/proc_fs.h: In function `proc_mkdir': /usr/include/linux/proc_fs.h:189: error: `NULL' undeclared (first use in this function) /usr/include/linux/proc_fs.h: At top level: /usr/include/linux/proc_fs.h:192: error: syntax error before "mode_t" /usr/include/linux/proc_fs.h:193: error: syntax error before "off_t" /usr/include/linux/proc_fs.h:193: error: `create_proc_read_entry' declared as function returning a function /usr/include/linux/proc_fs.h:196: error: syntax error before "mode_t" /usr/include/linux/proc_fs.h: In function `create_proc_info_entry': /usr/include/linux/proc_fs.h:197: error: `NULL' undeclared (first use in this function) /usr/include/linux/proc_fs.h: At top level: /usr/include/linux/proc_fs.h:203: error: `NULL' used prior to declaration In file included from zaptel.c:56: /usr/include/linux/ppp_defs.h:173: error: syntax error before "time_t" In file included from zaptel.h:51, from zaptel.c:82: ecdis.h: In function `echo_can_disable_detector_update': ecdis.h:80: warning: implicit declaration of function `abs' In file included from zaptel.h:157, from zaptel.c:82: mec2.h: In function `echo_can_free': mec2.h:174: warning: implicit declaration of function `kfree' In file included from zaptel.h:157, from zaptel.c:82: mec2.h: In function `echo_can_create': mec2.h:373: warning: implicit declaration of function `kmalloc' mec2.h:373: error: `GFP_KERNEL' undeclared (first use in this function) mec2.h:382: warning: implicit declaration of function `memset' In file included from zaptel.c:82: zaptel.h: At top level: zaptel.h:949: error: syntax error before "spinlock_t" zaptel.h:949: warning: no semicolon at end of struct or union zaptel.h:998: error: syntax error before "readbufq" zaptel.h:998: warning: type defaults to `int' in declaration of `readbufq' zaptel.h:998: warning: data definition has no type or storage class zaptel.h:1003: error: syntax error before "writebufq" zaptel.h:1003: warning: type defaults to `int' in declaration of `writebufq' zaptel.h:1003: warning: data definition has no type or storage class zaptel.h:1010: error: syntax error before "eventbufq" zaptel.h:1010: warning: type defaults to `int' in declaration of `eventbufq' zaptel.h:1010: warning: data definition has no type or storage class zaptel.h:1012: error: syntax error before "txstateq" zaptel.h:1012: warning: type defaults to `int' in declaration of `txstateq' zaptel.h:1012: warning: data definition has no type or storage class zaptel.h:1049: error: syntax error before "sel" zaptel.h:1049: warning: type defaults to `int' in declaration of `sel' zaptel.h:1049: warning: data definition has no type or storage class zaptel.h:1143: error: syntax error before '}' token zaptel.h:1187: error: syntax error before "spinlock_t" zaptel.h:1187: warning: no semicolon at end of struct or union zaptel.h:1208: error: syntax error before "maintq" zaptel.h:1208: warning: type defaults to `int' in declaration of `maintq' zaptel.h:1208: warning: data definition has no type or storage class zaptel.h:1280: error: syntax error before '}' token zaptel.h: In function `zt_txtone_nextsample': zaptel.h:1428: error: dereferencing pointer to incomplete type zaptel.h:1428: error: dereferencing pointer to incomplete type zaptel.h:1429: error: dereferencing pointer to incomplete type zaptel.h:1429: error: dereferencing pointer to incomplete type zaptel.h:1430: error: dereferencing pointer to incomplete type zaptel.h:1430: error: dereferencing pointer to incomplete type zaptel.h:1430: error: dereferencing pointer to incomplete type zaptel.h:1430: error: dereferencing pointer to incomplete type zaptel.h:1431: error: dereferencing pointer to incomplete type zaptel.c: At top level: zaptel.c:116: error: syntax error before "config_must_be_included_before_module" zaptel.c:116: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:116: warning: data definition has no type or storage class zaptel.c:117: error: syntax error before "config_must_be_included_before_module" zaptel.c:117: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:117: warning: data definition has no type or storage class zaptel.c:118: error: syntax error before "config_must_be_included_before_module" zaptel.c:118: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:118: warning: data definition has no type or storage class