[问题]编译nano-2.0.7的问题,错误。

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
yagerrr123
帖子: 66
注册时间: 2008-01-16 20:49

[问题]编译nano-2.0.7的问题,错误。

#1

帖子 yagerrr123 » 2008-01-21 17:51

试了好多次了,不知道为什么出错。
上网上也没找到解决方法。求助!!

代码: 全选

make  all-recursive
make[1]: Entering directory `/usr/local/nano-2.0.7'
Making all in doc
make[2]: Entering directory `/usr/local/nano-2.0.7/doc'
Making all in man
make[3]: Entering directory `/usr/local/nano-2.0.7/doc/man'
make  all-recursive
make[4]: Entering directory `/usr/local/nano-2.0.7/doc/man'
Making all in fr
make[5]: Entering directory `/usr/local/nano-2.0.7/doc/man/fr'
make  all-am
make[6]: Entering directory `/usr/local/nano-2.0.7/doc/man/fr'
make[6]: Nothing to be done for `all-am'.
make[6]: Leaving directory `/usr/local/nano-2.0.7/doc/man/fr'
make[5]: Leaving directory `/usr/local/nano-2.0.7/doc/man/fr'
make[5]: Entering directory `/usr/local/nano-2.0.7/doc/man'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/usr/local/nano-2.0.7/doc/man'
make[4]: Leaving directory `/usr/local/nano-2.0.7/doc/man'
make[3]: Leaving directory `/usr/local/nano-2.0.7/doc/man'
Making all in texinfo
make[3]: Entering directory `/usr/local/nano-2.0.7/doc/texinfo'
make  all-am
make[4]: Entering directory `/usr/local/nano-2.0.7/doc/texinfo'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/usr/local/nano-2.0.7/doc/texinfo'
make[3]: Leaving directory `/usr/local/nano-2.0.7/doc/texinfo'
make[3]: Entering directory `/usr/local/nano-2.0.7/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/nano-2.0.7/doc'
make[2]: Leaving directory `/usr/local/nano-2.0.7/doc'
Making all in m4
make[2]: Entering directory `/usr/local/nano-2.0.7/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/nano-2.0.7/m4'
Making all in po
make[2]: Entering directory `/usr/local/nano-2.0.7/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/nano-2.0.7/po'
Making all in src
make[2]: Entering directory `/usr/local/nano-2.0.7/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\"    -g -O2 -MT browser.o -MD -MP -MF ".deps/browser.Tpo" -c -o browser.o browser.c; \
        then mv -f ".deps/browser.Tpo" ".deps/browser.Po"; else rm -f ".deps/browser.Tpo"; exit 1; fi
在包含自 proto.h:27 的文件中,
                 从 browser.c:24:
nano.h:76:20: 错误: curses.h:No such file or directory
In file included from proto.h:27,
                 from browser.c:24:
nano.h:263: 错误: expected specifier-qualifier-list before ‘bool’
nano.h:294: 错误: expected specifier-qualifier-list before ‘bool’
nano.h:325: 错误: expected specifier-qualifier-list before ‘bool’
In file included from browser.c:24:
proto.h:32: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘jump_buf_main’
proto.h:44: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
proto.h:45: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
proto.h:46: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
proto.h:149: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:149: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:151: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘browser_select_filename’
proto.h:153: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘findnextfile’
proto.h:174: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_byte’
proto.h:175: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_alnum_mbchar’
proto.h:176: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_blank_mbchar’
proto.h:177: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_ascii_cntrl_char’
proto.h:178: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_cntrl_char’
proto.h:182: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_cntrl_mbchar’
proto.h:183: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_punct_mbchar’
proto.h:184: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_word_mbchar’
proto.h:262: 错误: expected ‘)’ before ‘copy_text’
proto.h:289: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:291: 错误: expected ‘)’ before ‘*’ token
proto.h:292: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:292: 错误: expected declaration specifiers or ‘...’ before ‘FILE’
proto.h:296: 错误: expected ‘)’ before ‘execute’
proto.h:304: 错误: expected ‘)’ before ‘*’ token
proto.h:307: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘check_operating_dir’
proto.h:312: 错误: expected ‘)’ before ‘*’ token
proto.h:313: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘write_file’
proto.h:316: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘write_marked_file’
proto.h:319: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘do_writeout’
proto.h:327: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_dir’
proto.h:330: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:332: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:332: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:333: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:348: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:355: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:357: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:359: 错误: expected ‘)’ before ‘unjustify’
proto.h:373: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:373: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:383: 错误: expected ‘)’ before ‘allow_update’
proto.h:385: 错误: expected ‘)’ before ‘allow_update’
proto.h:389: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘do_next_word’
proto.h:391: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘do_prev_word’
proto.h:398: 错误: expected ‘)’ before ‘scroll_only’
proto.h:409: 错误: expected ‘)’ before ‘scroll_only’
proto.h:472: 错误: expected ‘)’ before ‘allow’
proto.h:487: 错误: expected ‘)’ before ‘*’ token
proto.h:492: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:495: 错误: expected ‘)’ before ‘*’ token
proto.h:501: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:502: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:511: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘do_statusbar_next_word’
proto.h:512: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘do_statusbar_prev_word’
proto.h:514: 错误: expected ‘)’ before ‘*’ token
proto.h:516: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘find_statusbar_bracket_match’
proto.h:524: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘need_statusbar_horizontal_update’
proto.h:526: 错误: expected ‘)’ before ‘allow_tabs’
proto.h:539: 错误: expected ‘)’ before ‘allow_tabs’
proto.h:549: 错误: expected ‘)’ before ‘all’
proto.h:574: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘regexp_init’
proto.h:580: 错误: expected ‘)’ before ‘replacing’
proto.h:581: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘findnextstr’
proto.h:593: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:598: 错误: expected ‘)’ before ‘whole_word’
proto.h:603: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:604: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:604: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:604: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:611: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘find_bracket_match’
proto.h:643: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘execute_command’
proto.h:647: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘do_wrap’
proto.h:652: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:662: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘quotes_match’
proto.h:664: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘indents_match’
proto.h:666: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘begpar’
proto.h:667: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘inpar’
proto.h:669: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘find_paragraph’
proto.h:670: 错误: expected ‘)’ before ‘full_justify’
proto.h:675: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘do_int_spell_fix’
proto.h:688: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parse_num’
proto.h:689: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘parse_line_column’
proto.h:703: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘regexp_bol_or_eol’
proto.h:706: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘is_whole_word’
proto.h:725: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:734: 错误: expected ‘)’ before ‘*’ token
proto.h:737: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:737: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:738: 错误: expected ‘)’ before ‘*’ token
proto.h:739: 错误: expected ‘)’ before ‘*’ token
proto.h:740: 错误: expected ‘)’ before ‘*’ token
proto.h:743: 错误: expected ‘)’ before ‘*’ token
proto.h:751: 错误: expected ‘)’ before ‘*’ token
proto.h:752: 错误: expected ‘)’ before ‘*’ token
proto.h:756: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:757: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:759: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:761: 错误: expected ‘)’ before ‘*’ token
proto.h:768: 错误: expected declaration specifiers or ‘...’ before ‘bool’
proto.h:779: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘need_horizontal_update’
proto.h:780: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘need_vertical_update’
proto.h:788: 错误: expected ‘)’ before ‘constant’
proto.h:790: 错误: expected ‘)’ before ‘highlight’
browser.c:44: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘search_last_file’
browser.c: 在函数 ‘do_browser’ 中:
browser.c:53: 错误: ‘bool’ 未声明 (在此函数内第一次使用)
browser.c:53: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
browser.c:53: 错误: 所在的函数内只报告一次。)
browser.c:53: 错误: expected ‘;’ before ‘meta_key’
browser.c:54: 错误: expected ‘;’ before ‘abort’
browser.c:70: 错误: ‘bottomwin’ 未声明 (在此函数内第一次使用)
browser.c:80: 错误: ‘ERR’ 未声明 (在此函数内第一次使用)
browser.c:109: 警告: ‘abort’ 的地址总是等价为 ‘true’
browser.c:125: 错误: ‘edit’ 未声明 (在此函数内第一次使用)
browser.c:125: 错误: ‘meta_key’ 未声明 (在此函数内第一次使用)
browser.c:125: 错误: ‘func_key’ 未声明 (在此函数内第一次使用)
browser.c:126: 错误: 提供给函数 ‘parse_browser_input’ 的实参太多
browser.c:212: 错误: ‘TRUE’ 未声明 (在此函数内第一次使用)
browser.c:214: 错误: ‘FALSE’ 未声明 (在此函数内第一次使用)
browser.c:241: 错误: 提供给函数 ‘unget_kbinput’ 的实参太多
browser.c:371: 错误: ‘old_const_update’ 未声明 (在此函数内第一次使用)
browser.c: 在函数 ‘do_browse_from’ 中:
browser.c:421: 错误: ‘FALSE’ 未声明 (在此函数内第一次使用)
browser.c: 在函数 ‘browser_init’ 中:
browser.c:473: 错误: ‘COLS’ 未声明 (在此函数内第一次使用)
browser.c: 在顶层:
browser.c:553: 错误: expected declaration specifiers or ‘...’ before ‘bool’
browser.c:553: 错误: expected declaration specifiers or ‘...’ before ‘bool’
browser.c: 在函数 ‘parse_browser_input’ 中:
browser.c:555: 错误: ‘meta_key’ 未声明 (在此函数内第一次使用)
browser.c:555: 错误: ‘func_key’ 未声明 (在此函数内第一次使用)
browser.c:555: 错误: 提供给函数 ‘get_shortcut’ 的实参太多
browser.c: 在函数 ‘browser_refresh’ 中:
browser.c:611: 错误: ‘edit’ 未声明 (在此函数内第一次使用)
browser.c:627: 错误: ‘bool’ 未声明 (在此函数内第一次使用)
browser.c:627: 错误: expected ‘;’ before ‘dots’
browser.c:633: 错误: ‘dots’ 未声明 (在此函数内第一次使用)
browser.c:634: 错误: ‘FALSE’ 未声明 (在此函数内第一次使用)
browser.c:634: 错误: 提供给函数 ‘display_string’ 的实参太多
browser.c:727: 错误: ‘COLS’ 未声明 (在此函数内第一次使用)
browser.c: 在顶层:
browser.c:741: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘browser_select_filename’
browser.c: 在函数 ‘filesearch_init’ 中:
browser.c:783: 错误: ‘COLS’ 未声明 (在此函数内第一次使用)
browser.c:783: 错误: ‘FALSE’ 未声明 (在此函数内第一次使用)
browser.c:783: 错误: 提供给函数 ‘display_string’ 的实参太多
browser.c:797: 错误: ‘TRUE’ 未声明 (在此函数内第一次使用)
browser.c: 在顶层:
browser.c:874: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘findnextfile’
browser.c: 在函数 ‘findnextfile_wrap_reset’ 中:
browser.c:949: 错误: ‘search_last_file’ 未声明 (在此函数内第一次使用)
browser.c:949: 错误: ‘FALSE’ 未声明 (在此函数内第一次使用)
browser.c: 在函数 ‘do_filesearch’ 中:
browser.c:970: 错误: ‘bool’ 未声明 (在此函数内第一次使用)
browser.c:970: 错误: expected ‘;’ before ‘didfind’
browser.c:999: 错误: ‘didfind’ 未声明 (在此函数内第一次使用)
browser.c:999: 错误: ‘FALSE’ 未声明 (在此函数内第一次使用)
browser.c:1007: 错误: ‘TRUE’ 未声明 (在此函数内第一次使用)
browser.c: 在函数 ‘do_fileresearch’ 中:
browser.c:1019: 错误: ‘bool’ 未声明 (在此函数内第一次使用)
browser.c:1019: 错误: expected ‘;’ before ‘didfind’
browser.c:1031: 错误: ‘didfind’ 未声明 (在此函数内第一次使用)
browser.c:1031: 错误: ‘FALSE’ 未声明 (在此函数内第一次使用)
browser.c:1040: 错误: ‘TRUE’ 未声明 (在此函数内第一次使用)
make[2]: *** [browser.o] 错误 1
make[2]: Leaving directory `/usr/local/nano-2.0.7/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/nano-2.0.7'
make: *** [all] 错误 2
头像
天浩
帖子: 146
注册时间: 2007-04-14 0:41
来自: 武汉
联系:

#2

帖子 天浩 » 2008-06-14 5:57

兄弟,我跟你一样遇到这样的问题啊,所以找到这来了,这帖子这么就没人回答,看来还得再找找了
回复