Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18621 closed defect (invalid)

Error with bash 4.0 build

Reported by: srinath@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc:
Port: bash readline

Description (last modified by mf2k (Frank Schima))

~$ sudo port install -d bash
--->  Building bash
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_shells_bash/work/bash-4.0" && make all " returned error 2
Command output: rm -f bash
/usr/bin/gcc-4.0 -L./builtins -L/opt/local/lib -L/opt/local/lib -L./lib/glob -L./lib/tilde  -L./lib/sh -L/opt/local/lib -Wl,-search_paths_first -lncurses    -O2 -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 assoc.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  -lglob -ltilde  -lintl -liconv -lc   -ldl 
Undefined symbols:
  "_rl_completion_invoking_key", referenced from:
      _rl_completion_invoking_key$non_lazy_ptr in pcomplete.o
  "_rl_menu_completion_entry_function", referenced from:
      _rl_menu_completion_entry_function$non_lazy_ptr in bashline.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [bash] Error 1

Error: Status 1 encountered during processing.

Change History (5)

comment:1 Changed 16 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: bash removed
Owner: changed from macports-tickets@… to raimue@…
Port: bash added

comment:2 Changed 16 years ago by blb@…

Keywords: readline added

I believe that is a symbol which is new in readline 6.0, so make sure your readline port is up to date.

comment:3 Changed 16 years ago by alakazam@…

I second the outdated readline issue, I had the same problem. What's strange is that readline was only updated after bash, which means that it couldn't compile ; should readline be a build dependency, or should library dependencies be upgraded before ports (which I think macports doesn't guarantee yet) ?

comment:4 Changed 16 years ago by raimue (Rainer Müller)

Keywords: readline removed
Port: readline added
Resolution: invalid
Status: newclosed

You need to upgrade readline before bash.

As readline is in depends_lib for bash, this will automatically happen when using sudo port upgrade bash.

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.