编译vsftp sysdeputil.c出错的解决办法

原文链接:http://linux.chinaunix.net/techdoc/net/2008/09/19/1033290.shtml


sysdeputil.c:162: error: expected declaration specifiers or '…' before 'capset'
sysdeputil.c:162: error: expected declaration specifiers or '…' before 'header'
sysdeputil.c:162: error: expected declaration specifiers or '…' before 'data'
In file included from sysdeputil.c:170:
/usr/include/sys/sendfile.h: In function '_syscall2':
/usr/include/sys/sendfile.h:35: error: storage class specified for parameter 'sendfile'
sysdeputil.c:186: error: storage class specified for parameter 'environ'
sysdeputil.c:187: error: storage class specified for parameter 's_proctitle_space'
sysdeputil.c:187: error: parameter 's_proctitle_space' is initialized
sysdeputil.c:188: error: storage class specified for parameter 's_proctitle_inited'
sysdeputil.c:188: error: parameter 's_proctitle_inited' is initialized
sysdeputil.c:189: error: storage class specified for parameter 's_p_proctitle'
sysdeputil.c:189: error: parameter 's_p_proctitle' is initialized
sysdeputil.c:201: error: storage class specified for parameter 'do_sendfile'
sysdeputil.c:202: error: storage class specified for parameter 'vsf_sysutil_setproctitle_internal'
sysdeputil.c:203: error: storage class specified for parameter 's_proctitle_prefix_str'
sysdeputil.c:215: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:436: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:474: error: storage class specified for parameter 'do_checkcap'
sysdeputil.c:478: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:497: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:514: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:527: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:604: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:641: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:796: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:803: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:809: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:856: error: expected '=', ',', ';', 'asm' or 'attribute' before '{' token
sysdeputil.c:889: error: expected '=', ',', ';', 'asm' or 'attribute' before


这几个包可能不是REDHAT的,这个问题的原因是sysdeputil.c 文件出错,真正解决方法是给其打补丁:
# patch sysdeputil.c attachment.bin
  # make
attachment.bin 的位置在:
http://linuxfromscratch.org/pipe ... 9f56/attachment.bin
注明: 当前目录为vsftp**/


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值