QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1168|回复: 1

请教——————救命----安装drcomsuite出了问题

[复制链接]
发表于 2006-3-14 21:38:04 | 显示全部楼层 |阅读模式
我按照网上发的帖子这么装了。
--------------------------------
-----------
首先从drcom-client的项目主页http://sourceforge.net/projects/drcom-client上下载libdrcom-0.0-20050423-2.tar.bz2和drcomsuite-0.1.12.tar.bz2两个文件, 记得要先安装libdrcom,解压缩:

tar -xjvf libdrcom*.bz2

tar -xjvf drcomsuite*.bz2

转换到root用户完成编译和安装:

su

#输入你的root用户密码

#进入libdrcom的目录

cd libdrcom*

#redhat9会由于默认的gcc版本的原因,需要稍微修改Makefile文件,用你喜欢的编辑器打开Makefile

vi Makefile

#注意到其中有这样的一行,第三行 WARN = -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -pedantic

#把-Wextra改成 -W

#然后运行make和make install编译

make

#等待,你应该可以编译成功,然后安装

make install

按照同样的作法,进入到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]#


请哪个大虾帮助我一下哈。
发表于 2006-3-20 17:04:37 | 显示全部楼层
我也有相似的问题,希望高手能解决!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 04:47 , Processed in 0.041526 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表