Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo for Mac OS X (Portage for Mac OS X)
  • Search

[solved] Undefined symbols when installing bash on leopard

Running Portage on Mac OS X and need help with a problem? Post here.
Locked
Advanced search
3 posts • Page 1 of 1
Author
Message
milothurston
Apprentice
Apprentice
User avatar
Posts: 231
Joined: Wed May 01, 2002 2:16 pm
Location: Oxford, England.
Contact:
Contact milothurston
Website

[solved] Undefined symbols when installing bash on leopard

  • Quote

Post by milothurston » Mon Dec 10, 2007 2:35 pm

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: Select all

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.
Top
rescbr
n00b
n00b
Posts: 1
Joined: Sun Dec 23, 2007 12:04 am
Location: Toronto, Canada
Contact:
Contact rescbr
Website

  • Quote

Post by rescbr » Sun Dec 23, 2007 12:09 am

I symlinked the leopard's bash to the prefixed environment[/code]

Code: Select all

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.
Top
milothurston
Apprentice
Apprentice
User avatar
Posts: 231
Joined: Wed May 01, 2002 2:16 pm
Location: Oxford, England.
Contact:
Contact milothurston
Website

  • Quote

Post by milothurston » Sun Dec 23, 2007 8:41 pm

I got past that by waiting for bash to halt the system emerge then doing:

Code: Select all

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-al ... -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.
Top
Locked

3 posts • Page 1 of 1

Return to “Gentoo for Mac OS X (Portage for Mac OS X)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy