From: Nobuyuki Inaba Date: 2007-07-09T15:23:54+09:00 Subject: [ruby-list:43689] Re: rubyをソースからコンパイルしての質問 いなばです。 いろいろすみません。 ============================================================== have_library: checking for tgetnum() in -lncurses... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lruby-static -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'tgetnum' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))tgetnum; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lruby-static -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { tgetnum(); return 0; } /* end */ -------------------- have_header: checking for readline/readline.h... -------------------- yes "gcc -E -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -o conftest.i" checked program was: /* begin */ 1: #include /* end */ -------------------- have_header: checking for readline/history.h... -------------------- yes "gcc -E -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -o conftest.i" checked program was: /* begin */ 1: #include /* end */ -------------------- have_library: checking for readline() in -lreadline... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'readline' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))readline; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { readline(); return 0; } /* end */ -------------------- have_var: checking for rl_filename_completion_function in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_filename_completion_function; return 0; } /* end */ -------------------- have_var: checking for rl_username_completion_function in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_username_completion_function; return 0; } /* end */ -------------------- have_var: checking for rl_completion_matches in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_completion_matches; return 0; } /* end */ -------------------- have_var: checking for rl_deprep_term_function in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_deprep_term_function; return 0; } /* end */ -------------------- have_var: checking for rl_completion_append_character in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_completion_append_character; return 0; } /* end */ -------------------- have_var: checking for rl_basic_word_break_characters in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_basic_word_break_characters; return 0; } /* end */ -------------------- have_var: checking for rl_completer_word_break_characters in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_completer_word_break_characters; return 0; } /* end */ -------------------- have_var: checking for rl_basic_quote_characters in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_basic_quote_characters; return 0; } /* end */ -------------------- have_var: checking for rl_completer_quote_characters in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_completer_quote_characters; return 0; } /* end */ -------------------- have_var: checking for rl_filename_quote_characters in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_filename_quote_characters; return 0; } /* end */ -------------------- have_var: checking for rl_attempted_completion_over in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_attempted_completion_over; return 0; } /* end */ -------------------- have_var: checking for rl_library_version in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_library_version; return 0; } /* end */ -------------------- have_var: checking for rl_event_hook in stdio.h,readline/readline.h,readline/history.h... -------------------- yes "gcc -I../.. -I../../. -I../.././ext/readline -g -O2 -c conftest.c" checked program was: /* begin */ 1: #include 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { const volatile void *volatile p; p = (void *)&rl_event_hook; return 0; } /* end */ -------------------- have_func: checking for rl_cleanup_after_signal()... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'rl_cleanup_after_signal' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))rl_cleanup_after_signal; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { rl_cleanup_after_signal(); return 0; } /* end */ -------------------- have_func: checking for rl_clear_signals()... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'rl_clear_signals' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))rl_clear_signals; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { rl_clear_signals(); return 0; } /* end */ -------------------- have_func: checking for rl_vi_editing_mode()... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'rl_vi_editing_mode' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))rl_vi_editing_mode; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { rl_vi_editing_mode(); return 0; } /* end */ -------------------- have_func: checking for rl_emacs_editing_mode()... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'rl_emacs_editing_mode' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))rl_emacs_editing_mode; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { rl_emacs_editing_mode(); return 0; } /* end */ -------------------- have_func: checking for rl_clear_signals()... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'rl_clear_signals' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))rl_clear_signals; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { rl_clear_signals(); return 0; } /* end */ -------------------- have_func: checking for replace_history_entry()... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'replace_history_entry' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))replace_history_entry; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { replace_history_entry(); return 0; } /* end */ -------------------- have_func: checking for remove_history()... -------------------- yes "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" conftest.c: In function 't': conftest.c:3: error: 'remove_history' undeclared (first use in this function) conftest.c:3: error: (Each undeclared identifier is reported only once conftest.c:3: error: for each function it appears in.) checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { void ((*volatile p)()); p = (void ((*)()))remove_history; return 0; } /* end */ "gcc -o conftest -I../.. -I../../. -I../.././ext/readline -g -O2 conftest.c -L'../..' -rdynamic -Wl,-export-dynamic -lreadline -lncurses -lruby-static -lreadline -lncurses -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { remove_history(); return 0; } /* end */ -------------------- ============================================================== 以上のようになっています。