[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU Readline Problem
From: |
Rob |
Subject: |
GNU Readline Problem |
Date: |
Tue, 29 Jan 2002 23:44:32 GMT |
I'm running Gcc 2.95.3 and Gnu ld 2.11.2 in a Solaris 8 x86 environment.
I'm building this because Amanda backup package requires it.
Gcc has successfully built shared libraries previously without problem.
Recently however I built readline and during the compile it complained
about the following:
gcc -shared -Wl,-i -Wl,-h,libreadline.so.4 -o libreadline.so.4
readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so
complete.so bind.so isearch.so display.so signals.so util.so kill.so
undo.so macro.so input.so callback.so terminal.so nls.so xmalloc.so
history.so histexpand.so histfile.so histsearch.so shell.so tilde.so
compat.so
/opt/langtools/bin/ld: -r and -shared may not be used together
collect2: ld returned 1 exit status
make[1]: *** [libreadline.so.4] Error 1
make[1]: Leaving directory
`/export/home/rowens/build/amanda.req/readline/shlib'
make: [shared] Error 2 (ignored)
It built successfully but with only the static libraries. No shared
libraries.
Amanda also complained during it's build that shared readline libraries
were unavailable and apparently deprecated some services:
*** Warning: This library needs some functionality provided by
-lreadline.
*** I have the capability to make that library automatically link in
when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
It's sort of obvious why readline will not build shared libraries but I
can't seem to find where the error is in the Makefile. Does anyone have
a clue about this?
Thanks in advance for any comments.
--
Rob
- GNU Readline Problem,
Rob <=