[问题]装drcom,一到make,make install这一步就挂了,救命啊……
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 5
- 注册时间: 2008-08-23 9:03
[问题]装drcom,一到make,make install这一步就挂了,救命啊……
我用的是Ubuntu 8.04的,在装某些tar.gz包时到后面有什么make,make install命令,由于是才学两三天,所以安装时都是照着网上和书上一步一步做的。可真怎么仔细到后面的,make什么的就出问题了。
就比如我要装drcom,在没上网的情况下试验的(因为到了学校可没有网给装,除非能登录drcom)。装好build-essential了,解压得了。一到make && sudo make install 就错误了。
其实不只是装drcom,学着装些什么xmms什么的也是在make这方面出问题。都是照着一步一步做的。也在网上查过,但还是没什么用……
救命啊……明天就要去学校了,再装不好drcom就上不了网了……
glinux@glinux-desktop:~/drcom-1.4.7$ make && sudo make install
make[1]: Entering directory `/home/glinux/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 warning: implicit declaration of function ‘malloc’
drcomc.c warning: incompatible implicit declaration of built-in function ‘malloc’
drcomc.c 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/glinux/drcom-1.4.7/drcomc'
make: *** [all] Error 1
就比如我要装drcom,在没上网的情况下试验的(因为到了学校可没有网给装,除非能登录drcom)。装好build-essential了,解压得了。一到make && sudo make install 就错误了。
其实不只是装drcom,学着装些什么xmms什么的也是在make这方面出问题。都是照着一步一步做的。也在网上查过,但还是没什么用……
救命啊……明天就要去学校了,再装不好drcom就上不了网了……
glinux@glinux-desktop:~/drcom-1.4.7$ make && sudo make install
make[1]: Entering directory `/home/glinux/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 warning: implicit declaration of function ‘malloc’
drcomc.c warning: incompatible implicit declaration of built-in function ‘malloc’
drcomc.c 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/glinux/drcom-1.4.7/drcomc'
make: *** [all] Error 1
上次由 cs7294 在 2008-08-23 9:22,总共编辑 1 次。
-
- 帖子: 5
- 注册时间: 2008-08-23 9:03
- luojie-dune
- 帖子: 22033
- 注册时间: 2007-07-30 18:28
- 系统: Linux
- 来自: 空气中
-
- 帖子: 5
- 注册时间: 2008-08-23 9:03
- syrano
- 帖子: 4313
- 注册时间: 2007-10-06 18:40
-
- 帖子: 5
- 注册时间: 2008-08-23 9:03
说白了,我参考的资料和 viewtopic.php?t=113065 上的一模一样,但就是在Make出错,明明全都一样的做法都不行,要不我也不会在这里喊救命了……
我就从Ubuntu上下了个Ubuntu 8.04.1 Desktop下来就装,没升级过内核,我也没听说什么头文件,再说了,那些资料里也没说到这方面的…………
我就从Ubuntu上下了个Ubuntu 8.04.1 Desktop下来就装,没升级过内核,我也没听说什么头文件,再说了,那些资料里也没说到这方面的…………
上次由 cs7294 在 2008-08-23 11:33,总共编辑 1 次。
- syrano
- 帖子: 4313
- 注册时间: 2007-10-06 18:40
重装?cs7294 写了:说白了,我参考的资料和 viewtopic.php?t=113065 上的一模一样,但就是在Make出错,明明全都一样的做法都不行,要不我也不会在这里喊救命了……
E=m c^2
- luojie-dune
- 帖子: 22033
- 注册时间: 2007-07-30 18:28
- 系统: Linux
- 来自: 空气中