2008年9月17日星期三

安装vsftp出错:make: *** [sysdeputil.o] Error 1

gcc -c sysdeputil.c -O2 -Wall -W -Wshadow -idirafter dummyincsysdeputil.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 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 initializedsysdeputil.c:188: error: storage class specified for parameter 's_proctitle_inited'sysdeputil.c:188: error: parameter 's_proctitle_inited' is initializedsysdeputil.c:189: error: storage class specified for parameter 's_p_proctitle'sysdeputil.c:189: error: parameter 's_p_proctitle' is initializedsysdeputil.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:278: error: storage class specified for parameter 's_pamh'sysdeputil.c:279: error: storage class specified for parameter 's_pword_str'sysdeputil.c:281: error: storage class specified for parameter 'pam_conv_func'sysdeputil.c:282: error: storage class specified for parameter 'vsf_auth_shutdown'sysdeputil.c:288: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:383: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:398: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:436: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:474: error: storage class specified for parameter 'do_checkcap'sysdeputil.c:478: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:497: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:514: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:527: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:604: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:641: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:796: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:803: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:809: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:856: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:889: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:930: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:935: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:976: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:1012: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:1128: error: storage class specified for parameter 's_uwtmp_inserted'sysdeputil.c:1129: error: storage class specified for parameter 's_utent'sysdeputil.c:1134: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:1173: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' tokensysdeputil.c:1189: error: old-style parameter declarations in prototyped function definitionsysdeputil.c:162: error: parameter name omittedsysdeputil.c:162: error: parameter name omittedsysdeputil.c:162: error: parameter name omittedsysdeputil.c:1189: error: expected '{' at end of inputmake: *** [sysdeputil.o] Error 1这几个包可能不是REDHAT的,这个问题的原因是sysdeputil.c 文件出错,真正解决方法是给其打补丁:

# patch sysdeputil.c attachment.bin

# makeattachment.bin 的位置在:

http://linuxfromscratch.org/pipermail/lfs-dev/attachments/20061019/fd9b9f56/attachment.bin

没有评论: