Building python on solaris
Martin von Loewis
loewis at informatik.hu-berlin.de
Thu Jan 24 07:09:58 EST 2002
spaks at hotmail.com (Ramilio) writes:
> Text relocation remains referenced
> against symbol offset in file
> <unknown> 0x6fc
> /usr/local/lib/libreadline.a(bind.o)
[...]
> Thats when things go a little pear shaped...and i get hundreds of
> these messages
>
> any insight would be greatly appreciated, cheers
This means that libreadline.a is not position-independent, but the
compiler demands that it is. You have a number of options:
- statically link the readline module into the python interpreter, by
modifying Modules/Setup (recommended)
- recompiling libreadline with -fPIC, still creating libreadline.a
(works well)
- recompiling libreadline as a shared library (works, provided you can
get the installation directory of libreadline.so into the search
path of ld.so.1)
- using binutils ld instead of /usr/ccs/bin/ld, since binutils ld will
not complain (ugly and not recommended)
- adding -mimpure-text into the gcc LDSHARED (also ugly)
- replacing -shared with -G in LDSHARED (totall broken)
Regards,
Martin
More information about the Python-list
mailing list