按照同样的作法,进入到drcomsuite的目录,然后make
-----------------------
----------
但是除了这样的问题
[root@localhost root]# cd /mnt/conf/drcomsuite*
[root@localhost drcomsuite-0.1.12]# make
make -C include
make[1]: Entering directory `/mnt/conf/drcomsuite-0.1.12/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/conf/drcomsuite-0.1.12/include'
make -C drcomc
make[1]: Entering directory `/mnt/conf/drcomsuite-0.1.12/drcomc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/conf/drcomsuite-0.1.12/drcomc'
make -C drcomcd
make[1]: Entering directory `/mnt/conf/drcomsuite-0.1.12/drcomcd'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/conf/drcomsuite-0.1.12/drcomcd'
make -C module
make[1]: Entering directory `/mnt/conf/drcomsuite-0.1.12/module'
make -C Linux
make[2]: Entering directory `/mnt/conf/drcomsuite-0.1.12/module/Linux'
make -C 2.4.x
make[3]: Entering directory `/mnt/conf/drcomsuite-0.1.12/module/Linux/2.4.x'
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/mnt/conf/drcomsuite-0.1.12 -I/mnt/conf/drcomsuite-0.1.12/include -O2 -isystem /lib/modules/2.4.20-8/build/include -D__KERNEL__ -DMODULE -c -o proc.o proc.c
In file included from proc.c:4:
/usr/include/linux/proc_fs.h:47: parse error before "off_t"
/usr/include/linux/proc_fs.h:51: parse error before "off_t"
/usr/include/linux/proc_fs.h:57: parse error before "mode_t"
/usr/include/linux/proc_fs.h:58: ISO C forbids data definition with no type or storage class
/usr/include/linux/proc_fs.h:59: parse error before "uid"
/usr/include/linux/proc_fs.h:59: ISO C forbids data definition with no type or storage class
/usr/include/linux/proc_fs.h:60: parse error before "gid"
/usr/include/linux/proc_fs.h:60: ISO C forbids data definition with no type or storage class
/usr/include/linux/proc_fs.h:70: parse error before "count"
/usr/include/linux/proc_fs.h:70: ISO C forbids data definition with no type or storage class
/usr/include/linux/proc_fs.h:72: parse error before "rdev"
/usr/include/linux/proc_fs.h:72: ISO C forbids data definition with no type or storage class
/usr/include/linux/proc_fs.h:176: parse error before "mode_t"
/usr/include/linux/proc_fs.h: In function `proc_net_create':
/usr/include/linux/proc_fs.h:177: `NULL' undeclared (first use in this function)/usr/include/linux/proc_fs.h:177: (Each undeclared identifier is reported only once
/usr/include/linux/proc_fs.h:177: for each function it appears in.)
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:181: parse error before "mode_t"
/usr/include/linux/proc_fs.h: In function `create_proc_entry':
/usr/include/linux/proc_fs.h:181: `NULL' undeclared (first use in this function)/usr/include/linux/proc_fs.h: In function `proc_symlink':
/usr/include/linux/proc_fs.h:185: `NULL' undeclared (first use in this function)/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:186: parse error before "mode_t"
/usr/include/linux/proc_fs.h: In function `proc_mknod':
/usr/include/linux/proc_fs.h:187: `NULL' undeclared (first use in this function)/usr/include/linux/proc_fs.h: In function `proc_mkdir':
/usr/include/linux/proc_fs.h:189: `NULL' undeclared (first use in this function)/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:192: parse error before "mode_t"
/usr/include/linux/proc_fs.h:193: parse error before "off_t"
/usr/include/linux/proc_fs.h:193: `create_proc_read_entry' declared as function
returning a function
/usr/include/linux/proc_fs.h:196: parse error before "mode_t"
/usr/include/linux/proc_fs.h: In function `create_proc_info_entry':
/usr/include/linux/proc_fs.h:197: `NULL' undeclared (first use in this function)/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:203: `NULL' used prior to declaration
proc.c:6:25: asm/uaccess.h: 没有那个文件或目录
proc.c:16: warning: `struct file' declared inside parameter list
proc.c:18: warning: `struct file' declared inside parameter list
proc.c:20: warning: `struct file' declared inside parameter list
proc.c:22: warning: `struct file' declared inside parameter list
proc.c:76: warning: `struct file' declared inside parameter list
proc.c:77: conflicting types for `status_write'
proc.c:16: previous declaration of `status_write'
proc.c:90: warning: `struct file' declared inside parameter list
proc.c:91: conflicting types for `auth_write'
proc.c:18: previous declaration of `auth_write'
proc.c:104: warning: `struct file' declared inside parameter list
proc.c:105: conflicting types for `iface_write'
proc.c:20: previous declaration of `iface_write'
proc.c:118: warning: `struct file' declared inside parameter list
proc.c:119: conflicting types for `except_write'
proc.c:22: previous declaration of `except_write'
proc.c: In function `init_proc':
proc.c:134: dereferencing pointer to incomplete type
proc.c:135: dereferencing pointer to incomplete type
proc.c:136: dereferencing pointer to incomplete type
proc.c:137: dereferencing pointer to incomplete type
proc.c:138: dereferencing pointer to incomplete type
proc.c:139: dereferencing pointer to incomplete type
proc.c:140: dereferencing pointer to incomplete type
proc.c:141: dereferencing pointer to incomplete type
proc.c:142: dereferencing pointer to incomplete type
proc.c:143: dereferencing pointer to incomplete type
proc.c:144: dereferencing pointer to incomplete type
proc.c:145: dereferencing pointer to incomplete type
/usr/include/linux/prefetch.h: In function `prefetch':
/usr/include/linux/prefetch.h:43: warning: unused parameter `x'
/usr/include/linux/prefetch.h: In function `prefetchw':
/usr/include/linux/prefetch.h:48: warning: unused parameter `x'
/usr/include/linux/proc_fs.h: In function `proc_net_remove':
/usr/include/linux/proc_fs.h:178: warning: unused parameter `name'
/usr/include/linux/proc_fs.h: In function `remove_proc_entry':
/usr/include/linux/proc_fs.h:183: warning: unused parameter `name'
/usr/include/linux/proc_fs.h:183: warning: unused parameter `parent'
/usr/include/linux/proc_fs.h: In function `proc_symlink':
/usr/include/linux/proc_fs.h:184: warning: unused parameter `name'
/usr/include/linux/proc_fs.h:185: warning: unused parameter `parent'
/usr/include/linux/proc_fs.h:185: warning: unused parameter `dest'
/usr/include/linux/proc_fs.h: In function `proc_mkdir':
/usr/include/linux/proc_fs.h:188: warning: unused parameter `name'
/usr/include/linux/proc_fs.h:189: warning: unused parameter `parent'
/usr/include/linux/proc_fs.h: In function `proc_tty_register_driver':
/usr/include/linux/proc_fs.h:199: warning: unused parameter `driver'
/usr/include/linux/proc_fs.h: In function `proc_tty_unregister_driver':
/usr/include/linux/proc_fs.h:200: warning: unused parameter `driver'
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:193: warning: `create_proc_read_entry' declared `static' but never defined
make[3]: *** [proc.o] Error 1
make[3]: Leaving directory `/mnt/conf/drcomsuite-0.1.12/module/Linux/2.4.x'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/conf/drcomsuite-0.1.12/module/Linux'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/conf/drcomsuite-0.1.12/module'
make: *** [module] Error 2
[root@localhost drcomsuite-0.1.12]#