View previous topic :: View next topic |
Author |
Message |
milothurston Apprentice
Joined: 01 May 2002 Posts: 231 Location: Oxford, England.
|
Posted: Mon Dec 10, 2007 2:35 pm Post subject: [solved] Undefined symbols when installing bash on leopard |
|
|
I've tried bootstrapping on two machines both running leopard, one a G4 and the other a Core2 Duo. The process grinds to a halt when it gets to emerging bash, which dies with a whole load of undefined symbols, thus:
Code: |
gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde -L./lib/sh -march=prescott -o bash shell.o eval.o y.tab.o general.o make_cmd.o print_cmd.o dispose_cmd.o execute_cmd.o variables.o copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o alias.o array.o arrayfunc.o braces.o bracecomp.o bashhist.o bashline.o list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lsh -lreadline -lhistory -lcurses -lglob -ltilde -ldl
Undefined symbols:
"_rl_completion_found_quote", referenced from:
_rl_completion_found_quote$non_lazy_ptr in bashline.o
"_rl_vi_bWord", referenced from:
_bash_vi_complete in bashline.o
"_rl_unbind_function_in_map", referenced from:
_unbind_command in libbuiltins.a(bind.o)
"_rl_dispatching", referenced from:
_rl_dispatching$non_lazy_ptr in bashhist.o
_rl_dispatching$non_lazy_ptr in bashline.o
_rl_dispatching$non_lazy_ptr in pcomplete.o
"_rl_completion_quote_character", referenced from:
_rl_completion_quote_character$non_lazy_ptr in bashline.o
_rl_completion_quote_character$non_lazy_ptr in pcomplete.o
"_rl_char_is_quoted_p", referenced from:
_rl_char_is_quoted_p$non_lazy_ptr in bashline.o
"_rl_forced_update_display", referenced from:
_edit_and_execute_command in bashline.o
_cleanup_expansion_error in bashline.o
_bash_execute_unix_command in bashline.o
_bash_execute_unix_command in bashline.o
"_rl_unbind_key_in_map", referenced from:
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
"_rl_function_of_keyseq", referenced from:
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
"_rl_delete_text", referenced from:
_maybe_make_readline_line in bashline.o
"_rl_forward_word", referenced from:
_set_up_new_line in bashline.o
_shell_expand_line in bashline.o
"_emacs_standard_keymap", referenced from:
_emacs_standard_keymap$non_lazy_ptr in bashline.o
"_rl_tab_insert", referenced from:
_rl_tab_insert$non_lazy_ptr in bashline.o
"_rl_get_keymap", referenced from:
_bash_execute_unix_command in bashline.o
_bind_keyseq_to_unix_command in bashline.o
_set_eol_delim in libbuiltins.a(read.o)
_reset_eol_delim in libbuiltins.a(read.o)
_bind_builtin in libbuiltins.a(bind.o)
_bind_builtin in libbuiltins.a(bind.o)
_unbind_command in libbuiltins.a(bind.o)
"_rl_completion_matches", referenced from:
_attempt_shell_completion in bashline.o
_attempt_shell_completion in bashline.o
_bash_default_completion in bashline.o
_bash_default_completion in bashline.o
_bash_default_completion in bashline.o
_bash_default_completion in bashline.o
_bash_default_completion in bashline.o
_bash_default_completion in bashline.o
_command_subst_completion_function in bashline.o
_command_subst_completion_function in bashline.o
_command_subst_completion_function in bashline.o
_bash_directory_completion_matches in bashline.o
_gen_action_completions in pcomplete.o
_gen_action_completions in pcomplete.o
_gen_action_completions in pcomplete.o
_gen_action_completions in pcomplete.o
_gen_action_completions in pcomplete.o
_compgen_builtin in libbuiltins.a(complete.o)
"_rl_filename_dequoting_function", referenced from:
_rl_filename_dequoting_function$non_lazy_ptr in bashline.o
_rl_filename_dequoting_function$non_lazy_ptr in pcomplete.o
"_rl_named_function", referenced from:
_query_bindings in libbuiltins.a(bind.o)
_unbind_command in libbuiltins.a(bind.o)
"_emacs_ctlx_keymap", referenced from:
_emacs_ctlx_keymap$non_lazy_ptr in bashline.o
"_rl_make_bare_keymap", referenced from:
_init_unix_command_map in bashline.o
"_rl_ding", referenced from:
_bash_execute_unix_command in bashline.o
_gen_shell_function_matches in pcomplete.o
"_rl_tilde_expand", referenced from:
_rl_tilde_expand$non_lazy_ptr in bashline.o
"_rl_num_chars_to_read", referenced from:
_rl_num_chars_to_read$non_lazy_ptr in libbuiltins.a(read.o)
"_rl_crlf", referenced from:
_display_shell_version in bashline.o
_bash_execute_unix_command in bashline.o
_bash_execute_unix_command in bashline.o
"_rl_editing_mode", referenced from:
_rl_editing_mode$non_lazy_ptr in bashline.o
_rl_editing_mode$non_lazy_ptr in libbuiltins.a(set.o)
"_rl_directory_rewrite_hook", referenced from:
_rl_directory_rewrite_hook$non_lazy_ptr in bashline.o
"_rl_directory_completion_hook", referenced from:
_rl_directory_completion_hook$non_lazy_ptr in bashline.o
"_rl_funmap_names", referenced from:
_it_init_bindings in pcomplete.o
"_rl_add_undo", referenced from:
_maybe_make_readline_line in bashline.o
_maybe_make_readline_line in bashline.o
"_rl_mark", referenced from:
_rl_mark$non_lazy_ptr in bashline.o
"_rl_bind_key_if_unbound_in_map", referenced from:
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
_initialize_readline in bashline.o
"_rl_filename_quote_characters", referenced from:
_rl_filename_quote_characters$non_lazy_ptr in bashline.o
"_rl_filename_quoting_function", referenced from:
_rl_filename_quoting_function$non_lazy_ptr in bracecomp.o
_rl_filename_quoting_function$non_lazy_ptr in bashline.o
"_rl_get_keymap_by_name", referenced from:
_bind_builtin in libbuiltins.a(bind.o)
"_rl_vi_start_inserting", referenced from:
_bash_vi_complete in bashline.o
"_rl_list_funmap_names", referenced from:
_bind_builtin in libbuiltins.a(bind.o)
"_rl_username_completion_function", referenced from:
_rl_username_completion_function$non_lazy_ptr in bashline.o
_rl_username_completion_function$non_lazy_ptr in pcomplete.o
"_vi_movement_keymap", referenced from:
_vi_movement_keymap$non_lazy_ptr in bashline.o
"_rl_set_keymap", referenced from:
_bind_builtin in libbuiltins.a(bind.o)
_bind_builtin in libbuiltins.a(bind.o)
"_rl_variable_dumper", referenced from:
_bind_builtin in libbuiltins.a(bind.o)
_bind_builtin in libbuiltins.a(bind.o)
"_rl_variable_value", referenced from:
_command_word_completion_function in bashline.o
"_vi_insertion_keymap", referenced from:
_vi_insertion_keymap$non_lazy_ptr in bashline.o
"_rl_push_macro_input", referenced from:
_posix_edit_macros in bashline.o
"_rl_completion_mark_symlink_dirs", referenced from:
_rl_completion_mark_symlink_dirs$non_lazy_ptr in pcomplete.o
"_rl_filename_quoting_desired", referenced from:
_rl_filename_quoting_desired$non_lazy_ptr in bracecomp.o
_rl_filename_quoting_desired$non_lazy_ptr in bashline.o
"_rl_completion_mode", referenced from:
_bash_complete_username in bashline.o
_bash_complete_filename in bashline.o
_bash_complete_hostname in bashline.o
_bash_complete_variable in bashline.o
_bash_complete_command in bashline.o
_bash_glob_complete_word in bashline.o
"_rl_function_dumper", referenced from:
_bind_builtin in libbuiltins.a(bind.o)
_bind_builtin in libbuiltins.a(bind.o)
"_rl_on_new_line", referenced from:
_display_shell_version in bashline.o
_gen_shell_function_matches in pcomplete.o
"_rl_completion_suppress_quote", referenced from:
_rl_completion_suppress_quote$non_lazy_ptr in bashline.o
"_rl_vi_end_word", referenced from:
_bash_vi_complete in bashline.o
"_rl_vi_editing_mode", referenced from:
_rl_vi_editing_mode$non_lazy_ptr in bashline.o
"_rl_filename_completion_function", referenced from:
_rl_filename_completion_function$non_lazy_ptr in bracecomp.o
_command_word_completion_function in bashline.o
_rl_filename_completion_function$non_lazy_ptr in bashline.o
_pcomp_filename_completion_function in pcomplete.o
_rl_filename_completion_function$non_lazy_ptr in libbuiltins.a(complete.o)
"_rl_explicit_arg", referenced from:
_rl_explicit_arg$non_lazy_ptr in bashline.o
"_rl_complete_internal", referenced from:
_bash_brace_completion in bracecomp.o
_dynamic_complete_history in bashline.o
_dynamic_complete_history in bashline.o
_bash_complete_filename_internal in bashline.o
_bash_specific_completion in bashline.o
"_rl_readline_state", referenced from:
_rl_readline_state$non_lazy_ptr in bashline.o
"_rl_executing_keymap", referenced from:
_rl_executing_keymap$non_lazy_ptr in bashline.o
"_rl_generic_bind", referenced from:
_bind_keyseq_to_unix_command in bashline.o
"_rl_completion_suppress_append", referenced from:
_rl_completion_suppress_append$non_lazy_ptr in bashline.o
"_rl_set_screen_size", referenced from:
_get_new_window_size in libsh.a(winsize.o)
"_rl_yank_last_arg", referenced from:
_rl_yank_last_arg$non_lazy_ptr in bashline.o
"_rl_set_key", referenced from:
_bind_builtin in libbuiltins.a(bind.o)
"_rl_macro_dumper", referenced from:
_bind_builtin in libbuiltins.a(bind.o)
_bind_builtin in libbuiltins.a(bind.o)
"_rl_ignore_some_completions_function", referenced from:
_rl_ignore_some_completions_function$non_lazy_ptr in bracecomp.o
_rl_ignore_some_completions_function$non_lazy_ptr in bashline.o
"_rl_invoking_keyseqs", referenced from:
_query_bindings in libbuiltins.a(bind.o)
"_rl_bind_keyseq_in_map", referenced from:
_initialize_readline in bashline.o
_bind_keyseq_to_unix_command in bashline.o
"_rl_last_func", referenced from:
_rl_last_func$non_lazy_ptr in bashline.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [bash] Error 1
ERROR: app-shells/bash-3.2_p17-r1 failed.
Call stack:
ebuild.sh, line 1604: Called dyn_compile
ebuild.sh, line 942: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
bash-3.2_p17-r1.ebuild, line 130: Called die
The specific snippet of code:
emake ${mymake} || die "make failed"
The die message:
make failed
If you need support, post the topmost build error, and the call stack if relevant.
A complete build log is located at '/Volumes/home/opt/gentoo/var/tmp/portage/app-shells/bash-3.2_p17-r1/temp/build.log'.
|
Has anyone else encountered this, and is there a way around it?
Last edited by milothurston on Sun Dec 23, 2007 10:22 pm; edited 1 time in total |
|
Back to top |
|
|
rescbr n00b
Joined: 23 Dec 2007 Posts: 1 Location: Toronto, Canada
|
Posted: Sun Dec 23, 2007 12:09 am Post subject: |
|
|
I symlinked the leopard's bash to the prefixed environment[/code]
Code: | ln -s /bin/bash ~/Gentoo/bin/bash |
but the problem is in the emerge -e system step. it tries to build bash, but I'm still getting undefined symbols. |
|
Back to top |
|
|
milothurston Apprentice
Joined: 01 May 2002 Posts: 231 Location: Oxford, England.
|
Posted: Sun Dec 23, 2007 8:41 pm Post subject: |
|
|
I got past that by waiting for bash to halt the system emerge then doing:
Code: |
emerge --resume --skipfirst
|
It's a pity that the --inject option to emerge has been removed, as this combined with the symlink would be one way to avoid the problem.
EDIT: I was able to get to the end of this document - http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-macos.xml. Following that, it was possible to compile bash by enabling COLLISION_IGNORE="/opt/gentoo/bin/bash" in my make.conf, and re-compiling bash with CFLAGS suitable for a G4. I keep the gentoo installtion in /opt, which is a separate case sensitive partition on my Mac. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|