免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3541 | 回复: 1
打印 上一主题 下一主题

[FTP] CentOS6.4中源码安装vsftpd-3.0.2 make是出现隐式声明错误 [复制链接]

论坛徽章:
1
辰龙
日期:2014-12-17 15:54:35
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-04-25 22:51 |只看该作者 |倒序浏览
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 */

求高手指点迷津,小弟只搜索出有人说是软件版本与操作系统不一致引起,我使用都是最新版本,觉得不一致的可能性不是很大哦!
坐等大神解决!

论坛徽章:
2
拜羊年徽章
日期:2015-03-03 16:15:4315-16赛季CBA联赛之同曦
日期:2018-07-25 19:57:32
2 [报告]
发表于 2013-04-26 09:04 |只看该作者
不太懂,VSFTP我都是直接YUM的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP