当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : drcom安装问题
帖子发表于 : 2007-12-03 12:35 

注册: 2007-12-01 23:45
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
在安装时报错
怎么回事?
tianyu@tianyu-laptop:/tmp/drcom-1.3.7$ make
make -C drcomc
make[1]: Entering directory `/tmp/drcom-1.3.7/drcomc'
gcc -Wall -W -Wstrict-prototypes -Wmissing-prototypes -pedantic -I/tmp/drcom-1.3.7/include -O2 -c -o drcomc.o drcomc.c
drcomc.c:1:19: error: stdio.h: No such file or directory
drcomc.c:2:20: error: string.h: No such file or directory
drcomc.c:3:20: error: stdlib.h: No such file or directory
drcomc.c:4:20: error: stdint.h: No such file or directory
drcomc.c:5:20: error: unistd.h: No such file or directory
drcomc.c:6:23: error: sys/types.h: No such file or directory
drcomc.c:7:24: error: sys/socket.h: No such file or directory
drcomc.c:8:20: error: sys/un.h: No such file or directory
In file included from drcomc.c:11:
/tmp/drcom-1.3.7/include/client_daemon.h:5:18: error: time.h: No such file or directory
In file included from drcomc.c:11:
/tmp/drcom-1.3.7/include/client_daemon.h:15: error: expected specifier-qualifier-list before ‘uint16_t’
/tmp/drcom-1.3.7/include/client_daemon.h:17: warning: struct has no members
drcomc.c: In function ‘main’:
drcomc.c:27: error: storage size of ‘un_daemon’ isn’t known
drcomc.c:33: warning: implicit declaration of function ‘strcmp’
drcomc.c:44: warning: implicit declaration of function ‘memset’
drcomc.c:44: warning: incompatible implicit declaration of built-in function ‘memset’
drcomc.c:44: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
drcomc.c:45: error: ‘AF_UNIX’ undeclared (first use in this function)
drcomc.c:45: error: (Each undeclared identifier is reported only once
drcomc.c:45: error: for each function it appears in.)
drcomc.c:47: warning: implicit declaration of function ‘strncpy’
drcomc.c:47: warning: incompatible implicit declaration of built-in function ‘strncpy’
drcomc.c:52: warning: implicit declaration of function ‘socket’
drcomc.c:52: error: ‘PF_UNIX’ undeclared (first use in this function)
drcomc.c:52: error: ‘SOCK_STREAM’ undeclared (first use in this function)
drcomc.c:55: warning: implicit declaration of function ‘perror’
drcomc.c:56: warning: implicit declaration of function ‘exit’
drcomc.c:56: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:56: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
drcomc.c:61: warning: implicit declaration of function ‘connect’
drcomc.c:65: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:75: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:76: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:80: warning: implicit declaration of function ‘memcpy’
drcomc.c:80: warning: incompatible implicit declaration of built-in function ‘memcpy’
drcomc.c:85: warning: implicit declaration of function ‘send’
drcomc.c:96: warning: implicit declaration of function ‘recv’
drcomc.c:99: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:104: warning: implicit declaration of function ‘printf’
drcomc.c:104: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:112: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:113: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:135: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:140: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:148: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:149: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:173: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:178: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:186: warning: implicit declaration of function ‘close’
drcomc.c:27: warning: unused variable ‘un_daemon’
drcomc.c: In function ‘usage’:
drcomc.c:193: warning: implicit declaration of function ‘puts’
drcomc.c:201: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:201: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
drcomc.c: In function ‘print_result’:
drcomc.c:211: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:213: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:214: error: ‘EXIT_SUCCESS’ undeclared (first use in this function)
drcomc.c:218: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:220: error: ‘EXIT_FAILURE’ undeclared (first use in this function)
make[1]: *** [drcomc.o] Error 1
make[1]: Leaving directory `/tmp/drcom-1.3.7/drcomc'
make: *** [drcomc] Error 2


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-12-03 12:45 
头像

注册: 2007-10-19 14:51
帖子: 4953
地址: 深圳
送出感谢: 0 次
接收感谢: 2
编译环境问题,没找到include目录

执行
代码:
 sudo apt-get install build-essential


_________________
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-12-08 13:17 

注册: 2007-12-01 23:45
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
sudo apt-get install build-essential

安装时报错
说无法找到 软件包

我是安装的7.04
由于学校上网必须安装drcom
所以我没发上网

请问怎样获取 build-essential 软件包呢?



谢谢


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译