bash: /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: multiple definitions of symbol _sh_single_quote
/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 -arch i386 -pipe -O2 -arch i386 -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 -lglob -lsh -lreadline -lhistory -ltilde -lintl -liconv -lc -liconv -ldl
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _sh_get_env_value
variables.o definition of _sh_get_env_value in section (__TEXT,__text)
/opt/local/lib/libreadline.dylib(single module) definition of _sh_get_env_value
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _sh_get_home_dir
variables.o definition of _sh_get_home_dir in section (__TEXT,__text)
/opt/local/lib/libreadline.dylib(single module) definition of _sh_get_home_dir
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _sh_set_lines_and_columns
variables.o definition of _sh_set_lines_and_columns in section (__TEXT,__text)
/opt/local/lib/libreadline.dylib(single module) definition of _sh_set_lines_and_columns
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _sh_unset_nodelay_mode
general.o definition of _sh_unset_nodelay_mode in section (__TEXT,__text)
/opt/local/lib/libreadline.dylib(single module) definition of _sh_unset_nodelay_mode
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _xfree
xmalloc.o definition of _xfree in section (__TEXT,__text)
/opt/local/lib/libreadline.dylib(single module) definition of _xfree
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _xmalloc
xmalloc.o definition of _xmalloc in section (__TEXT,__text)
/opt/local/lib/libreadline.dylib(single module) definition of _xmalloc
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _xrealloc
xmalloc.o definition of _xrealloc in section (__TEXT,__text)
/opt/local/lib/libreadline.dylib(single module) definition of _xrealloc
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: multiple definitions of symbol _sh_single_quote
/opt/local/lib/libreadline.dylib(single module) definition of _sh_single_quote
./lib/sh/libsh.a(shquote.o) definition of _sh_single_quote in section (__TEXT,__text)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _getenv
./lib/sh/libsh.a(getenv.o) definition of _getenv in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(getenv.So) definition of _getenv
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _unsetenv
./lib/sh/libsh.a(getenv.o) definition of _unsetenv in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(setenv.So) definition of _unsetenv
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning multiple definitions of symbol _setenv
./lib/sh/libsh.a(getenv.o) definition of _setenv in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(setenv.So) definition of _setenv
collect2: ld returned 1 exit status
make: *** [bash] Error 1
Change History (7)
Cc: |
raimue@… removed
|
Owner: |
changed from macports-tickets@… to raimue@…
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
I do not have a system with Tiger to test this. From the error message it looks like linking the external libreadline is the problem.
Could you please try the attached Portfile? From what I resaerched, switching to the internal libreadline might be more desirable in general.