bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] installing rlfe on OS X 10.4.11


From: Peter Michaux
Subject: Re: [Bug-readline] installing rlfe on OS X 10.4.11
Date: Mon, 28 Apr 2008 13:26:41 -0700

On Sun, Apr 27, 2008 at 1:59 PM, Chet Ramey <address@hidden> wrote:
>
> Peter Michaux wrote:
>
> > Hi,
> >
> > I've been trying to install the rlfe program on my Mac OS X 10.4.11
> > and am running into an error when I run make.
> >
> > mkdir ~/Desktop/src
> > cd ~/Desktop/src
> > curl -O ftp://ftp.cwru.edu/pub/bash/readline-5.2.tar.gz
> > tar xvzf readline-5.2.tar.gz
> > cd readline-5.2
> > ./configure
> > make
> > sudo make install
> >
> > It seems at this stage that readline is installed but the "sudo make
> > install" ends with the following
> >
> > make[1]: Entering directory `/Users/peter/Desktop/src/readline-5.2/shlib'
> > /bin/sh ../support/mkdirs /usr/local/lib
> > /bin/sh ../support/shlib-install -O darwin8.11.1 -d /usr/local/lib -b
> > /usr/local/bin -i "/usr/bin/install -c -m 644" libhistory.5.2.dylib
> > /bin/sh ../support/shlib-install -O darwin8.11.1 -d /usr/local/lib -b
> > /usr/local/bin -i "/usr/bin/install -c -m 644" libreadline.5.2.dylib
> > install: you may need to run ldconfig
> > make[1]: Leaving directory `/Users/peter/Desktop/src/readline-5.2/shlib'
> >
> > -------------------------------
> >
> > Then I try to install the rlfe example
> >
> > cd ~/Desktop/src/readline-5.2/examples/rlfe
> > ./configure
> > make
> >
> > The output from the "make" command ends with
> >
> > /usr/bin/ld: warning multiple definitions of symbol _history_search
> >
> /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
> > definition of _history_search
> > /usr/local/lib/libhistory.dylib(histsearch.so) definition of
> _history_search
> > /usr/bin/ld: Undefined symbols:
> > _readline_echoing_p
> > _rl_getc
> > _rl_variable_bind
> > collect2: ld returned 1 exit status
> > make: *** [rlfe] Error 1
> >
> >
> > Any ideas what I can do to make this work?
> >
>
>  Compile it and link against the static libreadline.a in the build
>  directory.  You could try adding "LDFLAGS='-L /usr/local/lib' to the
>  `make' command, but that's not guaranteed to work, since Mac OS X
>  insists on linking against its own incomplete readline "emulation" in
>  /usr/lib in many circumstances.  I've had to change the bash and
>  readline makefiles to link against absolute pathnames on Mac OS X
>  because of the linker behavior.

Thanks for the reply.  I did try the above and that didn't solve my problem.

I should have posted the entire error message I'm seeing when I run
make for rlfe.


$ make
gcc -c -I. -I.    -g -O2 rlfe.c
gcc -c -I. -I.    -g -O2 pty.c
gcc  -o rlfe rlfe.o pty.o -lreadline -lhistory -lncurses -lcurses
/usr/bin/ld: warning multiple definitions of symbol _write_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _write_history
/usr/local/lib/libhistory.dylib(histfile.so) definition of _write_history
/usr/bin/ld: warning multiple definitions of symbol _read_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _read_history
/usr/local/lib/libhistory.dylib(histfile.so) definition of _read_history
/usr/bin/ld: warning multiple definitions of symbol _where_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _where_history
/usr/local/lib/libhistory.dylib(history.so) definition of _where_history
/usr/bin/ld: warning multiple definitions of symbol _add_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _add_history
/usr/local/lib/libhistory.dylib(history.so) definition of _add_history
/usr/bin/ld: warning multiple definitions of symbol _clear_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _clear_history
/usr/local/lib/libhistory.dylib(history.so) definition of _clear_history
/usr/bin/ld: warning multiple definitions of symbol _current_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _current_history
/usr/local/lib/libhistory.dylib(history.so) definition of _current_history
/usr/bin/ld: warning multiple definitions of symbol _history_base
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_base
/usr/local/lib/libhistory.dylib(history.so) definition of _history_base
/usr/bin/ld: warning multiple definitions of symbol _history_get
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_get
/usr/local/lib/libhistory.dylib(history.so) definition of _history_get
/usr/bin/ld: warning multiple definitions of symbol _history_is_stifled
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_is_stifled
/usr/local/lib/libhistory.dylib(history.so) definition of _history_is_stifled
/usr/bin/ld: warning multiple definitions of symbol _history_length
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_length
/usr/local/lib/libhistory.dylib(history.so) definition of _history_length
/usr/bin/ld: warning multiple definitions of symbol _history_set_pos
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_set_pos
/usr/local/lib/libhistory.dylib(history.so) definition of _history_set_pos
/usr/bin/ld: warning multiple definitions of symbol _history_total_bytes
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_total_bytes
/usr/local/lib/libhistory.dylib(history.so) definition of _history_total_bytes
/usr/bin/ld: warning multiple definitions of symbol _max_input_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _max_input_history
/usr/local/lib/libhistory.dylib(history.so) definition of _max_input_history
/usr/bin/ld: warning multiple definitions of symbol _next_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _next_history
/usr/local/lib/libhistory.dylib(history.so) definition of _next_history
/usr/bin/ld: warning multiple definitions of symbol _previous_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _previous_history
/usr/local/lib/libhistory.dylib(history.so) definition of _previous_history
/usr/bin/ld: warning multiple definitions of symbol _stifle_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _stifle_history
/usr/local/lib/libhistory.dylib(history.so) definition of _stifle_history
/usr/bin/ld: warning multiple definitions of symbol _unstifle_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _unstifle_history
/usr/local/lib/libhistory.dylib(history.so) definition of _unstifle_history
/usr/bin/ld: warning multiple definitions of symbol _using_history
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _using_history
/usr/local/lib/libhistory.dylib(history.so) definition of _using_history
/usr/bin/ld: warning multiple definitions of symbol _get_history_event
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _get_history_event
/usr/local/lib/libhistory.dylib(histexpand.so) definition of _get_history_event
/usr/bin/ld: warning multiple definitions of symbol _history_arg_extract
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_arg_extract
/usr/local/lib/libhistory.dylib(histexpand.so) definition of
_history_arg_extract
/usr/bin/ld: warning multiple definitions of symbol _history_expand
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_expand
/usr/local/lib/libhistory.dylib(histexpand.so) definition of _history_expand
/usr/bin/ld: warning multiple definitions of symbol _history_expansion_char
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_expansion_char
/usr/local/lib/libhistory.dylib(histexpand.so) definition of
_history_expansion_char
/usr/bin/ld: warning multiple definitions of symbol
_history_inhibit_expansion_function
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_inhibit_expansion_function
/usr/local/lib/libhistory.dylib(histexpand.so) definition of
_history_inhibit_expansion_function
/usr/bin/ld: warning multiple definitions of symbol _history_no_expand_chars
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_no_expand_chars
/usr/local/lib/libhistory.dylib(histexpand.so) definition of
_history_no_expand_chars
/usr/bin/ld: warning multiple definitions of symbol _history_subst_char
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_subst_char
/usr/local/lib/libhistory.dylib(histexpand.so) definition of _history_subst_char
/usr/bin/ld: warning multiple definitions of symbol _history_tokenize
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_tokenize
/usr/local/lib/libhistory.dylib(histexpand.so) definition of _history_tokenize
/usr/bin/ld: warning multiple definitions of symbol _history_search_prefix
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_search_prefix
/usr/local/lib/libhistory.dylib(histsearch.so) definition of
_history_search_prefix
/usr/bin/ld: warning multiple definitions of symbol _history_search_pos
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_search_pos
/usr/local/lib/libhistory.dylib(histsearch.so) definition of _history_search_pos
/usr/bin/ld: warning multiple definitions of symbol _history_search
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libreadline.dylib(readline.o_s)
definition of _history_search
/usr/local/lib/libhistory.dylib(histsearch.so) definition of _history_search
/usr/bin/ld: Undefined symbols:
_readline_echoing_p
_rl_getc
_rl_variable_bind
collect2: ld returned 1 exit status
make: *** [rlfe] Error 1

Any other ideas?

Thanks again

Peter (currently feeling shamefully deficient in the C world)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]