- 论坛徽章:
- 1
|
CentOS 6.4中源码安装vsftpd-3.0.2 make编译是出现以下错误
gcc -c tcpwrap.c -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wall -W -Wshadow -Werror -Wformat-security -D_FORTIFY_SOURCE=2 -idirafter dummyinc
tcpwrap.c:16:20: 错误:tcpd.h:没有那个文件或目录
tcpwrap.c: 在函数‘vsf_tcp_wrapper_ok’中:
tcpwrap.c:29: 错误:‘req’的存储大小未知
cc1: warnings being treated as errors
tcpwrap.c:31: 错误:隐式声明函数‘request_init’
tcpwrap.c:31: 错误:‘RQ_DAEMON’未声明(在此函数内第一次使用)
tcpwrap.c:31: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
tcpwrap.c:31: 错误:所在的函数内也只报告一次。)
tcpwrap.c:31: 错误:‘RQ_FILE’未声明(在此函数内第一次使用)
tcpwrap.c:32: 错误:隐式声明函数‘fromhost’
tcpwrap.c:33: 错误:隐式声明函数‘hosts_access’
tcpwrap.c:29: 错误:未使用的变量‘req’
make: *** [tcpwrap.o] 错误 1
tcpwarp.o配置如下
/*
* Part of Very Secure FTPd
* Licence: GPL v2
* Author: Chris Evans
* tcpwrap.c
*
* Routines to encapsulate the usage of tcp_wrappers.
*/
#include "tcpwrap.h"
#include "builddefs.h"
#include "utility.h"
#include "sysutil.h"
#ifdef VSF_BUILD_TCPWRAPPERS
#include <tcpd.h>
#endif
#ifdef VSF_BUILD_TCPWRAPPERS
#include <sys/syslog.h>
int deny_severity = LOG_WARNING;
int allow_severity = LOG_INFO;
int
vsf_tcp_wrapper_ok(int remote_fd)
{
struct request_info req;
vsf_sysutil_openlog(0);
request_init(&req, RQ_DAEMON, "vsftpd", RQ_FILE, remote_fd, 0);
fromhost(&req);
if (!hosts_access(&req))
{
vsf_sysutil_closelog();
return 0;
}
vsf_sysutil_closelog();
return 1;
}
#else /* VSF_BUILD_TCPWRAPPERS */
int
vsf_tcp_wrapper_ok(int remote_fd)
{
(void) remote_fd;
die("tcp_wrappers is set to YES but no tcp wrapper support compiled in");
return 0;
}
#endif /* VSF_BUILD_TCPWRAPPERS */
求高手指点迷津,小弟只搜索出有人说是软件版本与操作系统不一致引起,我使用都是最新版本,觉得不一致的可能性不是很大哦!
坐等大神解决! |
|