Opened 12 years ago

Closed 12 years ago

#32299 closed defect (fixed)

bash: /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: multiple definitions of symbol _sh_single_quote

Reported by: rudloff@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: tiger Cc:
Port: bash

Description

/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

Attachments (2)

main.log (103.6 KB) - added by rudloff@… 12 years ago.
bash-internal-readline.diff (1.1 KB) - added by raimue (Rainer Müller) 12 years ago.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by rudloff@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: raimue@… removed
Owner: changed from macports-tickets@… to raimue@…

comment:2 Changed 12 years ago by raimue (Rainer Müller)

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.

Changed 12 years ago by raimue (Rainer Müller)

Attachment: bash-internal-readline.diff added

comment:3 Changed 12 years ago by rudloff@…

It works.

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

Committed in r87677.

comment:5 Changed 12 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.