bug-readline
[Top][All Lists]
Advanced

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

[Bug-readline] [PATCH] building libreadline.so on Solaris 10/Sparc (64-b


From: Fabian Groffen
Subject: [Bug-readline] [PATCH] building libreadline.so on Solaris 10/Sparc (64-bits)
Date: Wed, 2 Apr 2008 21:42:30 +0200
User-agent: Mutt/1.5.17 (Darwin 8.11.0, VIM - Vi IMproved 7.1)

Hi,

I observed the following build failure on Solaris 10/Sparc with a
64-bits GCC compiler and GNU binutils ld:

( cd shlib ; make  all )
make[1]: Entering directory 
`/var/tmp/portage/portage/sys-libs/readline-5.2_p12-r1/work/readline-5.2/shlib'
rm -f libreadline.so.5
sparcv9-sun-solaris2.10-gcc -shared -Wl,-h,libreadline.so.5  -o 
libreadline.so.5 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 text.so nls.so 
misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so 
mbutil.so tilde.so compat.so -lncurses
readline.so: In function `rl_set_prompt':
readline.c:(.text+0x24): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_prompt' defined in .bss section in readline.so
readline.c:(.text+0x34): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_prompt' defined in .bss section in readline.so
readline.c:(.text+0x9c): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_prompt' defined in .bss section in readline.so
readline.c:(.text+0xa8): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_prompt' defined in .bss section in readline.so
readline.c:(.text+0xb8): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_prompt' defined in .bss section in readline.so
readline.c:(.text+0xe0): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_prompt' defined in .bss section in readline.so
readline.c:(.text+0xfc): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_visible_prompt_length' defined in .bss section in readline.so
readline.so: In function `readline_internal_setup':
readline.c:(.text+0x228): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_startup_hook' defined in .bss section in readline.so
readline.c:(.text+0x238): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_startup_hook' defined in .bss section in readline.so
readline.c:(.text+0x274): relocation truncated to fit: R_SPARC_GOT13 against 
symbol `rl_prompt' defined in .bss section in readline.so
readline.c:(.text+0x298): additional relocation overflows omitted from the 
output
collect2: ld returned 1 exit status
make[1]: *** [libreadline.so.5] Error 1
make[1]: Leaving directory 
`/var/tmp/portage/portage/sys-libs/readline-5.2_p12-r1/work/readline-5.2/shlib'
make: [shared] Error 2 (ignored)

The problem appears only on sparcv9 (64-bits), x86_64, x86 and sparc
compilations on Solaris 10 go fine.

I attached the patch that works for me, and doesn't break any of the
other Solaris targets.


-- 
Fabian Groffen
Gentoo on a different level

Attachment: readline-5.2-solaris-fPIC.patch
Description: Text document


reply via email to

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