ubuntu下用dr.com联网的问题

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
清风炫
帖子: 3
注册时间: 2008-09-24 14:44

ubuntu下用dr.com联网的问题

#1

帖子 清风炫 » 2008-10-18 15:13

我用网上的方法做的,但是不行,不知道为什么,谁知道出来指导一下,谢谢了!

这是我做的:

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$

这些出了什么问题???
l8875652
帖子: 22
注册时间: 2008-10-16 18:32

Re: ubuntu下用dr.com联网的问题

#2

帖子 l8875652 » 2008-10-18 16:00

好象是说没有头文件,你要先装build essential.这个编译软件试下。。。
回复