当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu下用dr.com联网的问题
帖子发表于 : 2008-10-18 15:13 

注册: 2008-09-24 14:44
帖子: 3
送出感谢: 0 次
接收感谢: 0 次
我用网上的方法做的,但是不行,不知道为什么,谁知道出来指导一下,谢谢了!

这是我做的:

ubuntu@ubuntu-desktop:~$ cd /home/ubuntu/桌面/drcom-1.4.7
ubuntu@ubuntu-desktop:~/桌面/drcom-1.4.7$ make&&sudo make install
make[1]: Entering directory `/home/ubuntu/桌面/drcom-1.4.7/drcomc'
CC 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: unistd.h: No such file or directory
drcomc.c:5:23: error: sys/types.h: No such file or directory
drcomc.c:6:24: error: sys/socket.h: No such file or directory
drcomc.c:7:20: error: sys/un.h: No such file or directory
In file included from drcomc.c:9:
../include/client_daemon.h:4:20: error: stdint.h: No such file or directory
In file included from drcomc.c:9:
../include/client_daemon.h:13: error: expected specifier-qualifier-list before ‘uint16_t’
../include/client_daemon.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘safe_recv’
../include/client_daemon.h:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘safe_send’
In file included from drcomc.c:10:
../include/utils.h:4: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘safe_send’
../include/utils.h:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘safe_recv’
../include/utils.h:6: error: expected declaration specifiers or ‘...’ before ‘u_int32_t’
drcomc.c: In function ‘usage’:
drcomc.c:17: warning: implicit declaration of function ‘puts’
drcomc.c: At top level:
drcomc.c:21: error: expected declaration specifiers or ‘...’ before ‘uint16_t’
drcomc.c: In function ‘send_command’:
drcomc.c:31: error: ‘ssize_t’ undeclared (first use in this function)
drcomc.c:31: error: (Each undeclared identifier is reported only once
drcomc.c:31: error: for each function it appears in.)
drcomc.c:31: error: expected ‘;’ before ‘r’
drcomc.c:33: error: ‘command’ undeclared (first use in this function)
drcomc.c:48: warning: implicit declaration of function ‘strlen’
drcomc.c:48: warning: incompatible implicit declaration of built-in function ‘strlen’
drcomc.c:51: warning: implicit declaration of function ‘printf’
drcomc.c:51: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:55: warning: implicit declaration of function ‘memset’
drcomc.c:55: warning: incompatible implicit declaration of built-in function ‘memset’
drcomc.c:56: warning: implicit declaration of function ‘strncpy’
drcomc.c:56: warning: incompatible implicit declaration of built-in function ‘strncpy’
drcomc.c:63: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:67: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:68: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c:70: error: ‘r’ undeclared (first use in this function)
drcomc.c:70: warning: implicit declaration of function ‘safe_send’
drcomc.c: In function ‘recv_acknowledge’:
drcomc.c:84: error: ‘ssize_t’ undeclared (first use in this function)
drcomc.c:84: error: expected ‘;’ before ‘r’
drcomc.c:88: error: ‘r’ undeclared (first use in this function)
drcomc.c:88: warning: implicit declaration of function ‘safe_recv’
drcomc.c:92: error: ‘struct drcomcd_hdr’ has no member named ‘signature’
drcomc.c:93: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:97: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:100: warning: implicit declaration of function ‘malloc’
drcomc.c:100: warning: incompatible implicit declaration of built-in function ‘malloc’
drcomc.c:100: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:101: error: ‘NULL’ undeclared (first use in this function)
drcomc.c:102: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:106: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:107: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:108: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:112: error: ‘struct drcomcd_hdr’ has no member named ‘msg_len’
drcomc.c:114: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:116: warning: implicit declaration of function ‘free’
drcomc.c:117: error: ‘struct drcomcd_hdr’ has no member named ‘is_end’
drcomc.c:120: error: ‘struct drcomcd_hdr’ has no member named ‘type’
drcomc.c: In function ‘init_socket’:
drcomc.c:129: error: storage size of ‘un_daemon’ isn’t known
drcomc.c:131: warning: incompatible implicit declaration of built-in function ‘memset’
drcomc.c:131: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
drcomc.c:132: error: ‘AF_UNIX’ undeclared (first use in this function)
drcomc.c:134: warning: incompatible implicit declaration of built-in function ‘strncpy’
drcomc.c:136: warning: implicit declaration of function ‘socket’
drcomc.c:136: error: ‘PF_UNIX’ undeclared (first use in this function)
drcomc.c:136: error: ‘SOCK_STREAM’ undeclared (first use in this function)
drcomc.c:138: warning: implicit declaration of function ‘perror’
drcomc.c:142: warning: implicit declaration of function ‘connect’
drcomc.c:129: warning: unused variable ‘un_daemon’
drcomc.c: In function ‘main’:
drcomc.c:154: error: ‘uint16_t’ undeclared (first use in this function)
drcomc.c:154: error: expected ‘;’ before ‘command’
drcomc.c:155: error: ‘NULL’ undeclared (first use in this function)
drcomc.c:161: warning: implicit declaration of function ‘strcmp’
drcomc.c:162: error: ‘command’ undeclared (first use in this function)
drcomc.c:170: warning: implicit declaration of function ‘exit’
drcomc.c:170: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:175: warning: incompatible implicit declaration of built-in function ‘exit’
drcomc.c:177: error: too many arguments to function ‘send_command’
drcomc.c:181: warning: incompatible implicit declaration of built-in function ‘printf’
drcomc.c:186: warning: implicit declaration of function ‘close’
make[1]: *** [drcomc.o] Error 1
make[1]: Leaving directory `/home/ubuntu/桌面/drcom-1.4.7/drcomc'
make: *** [all] Error 1
ubuntu@ubuntu-desktop:~/桌面/drcom-1.4.7$ sudo gedit /etc/drcom.conf
[sudo] password for ubuntu:
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7

GTK Panel of SCIM 1.4.7

ubuntu@ubuntu-desktop:~/桌面/drcom-1.4.7$ sudo drcomd
sudo: drcomd: command not found
ubuntu@ubuntu-desktop:~/桌面/drcom-1.4.7$ drcomc login
bash: drcomc: command not found
ubuntu@ubuntu-desktop:~/桌面/drcom-1.4.7$

这些出了什么问题???


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu下用dr.com联网的问题
帖子发表于 : 2008-10-18 16:00 

注册: 2008-10-16 18:32
帖子: 22
送出感谢: 0 次
接收感谢: 0 次
好象是说没有头文件,你要先装build essential.这个编译软件试下。。。


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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