Solaris Weirdness with 2.1

Robert Roy rjroy at takingcontrol.com
Tue May 15 21:46:57 EDT 2001


On Tue, 15 May 2001 11:05:37 -0400, Michael P Collins
<mc7f+ at andrew.cmu.edu> wrote:

>
>I've been trying to install Python 2.1 on a Solaris box and have run
>into the following error messages during the make, any thoughts?
>
>skipping 'timing' extension (up-to-date)
>skipping 'audioop' extension (up-to-date)
>skipping 'imageop' extension (up-to-date)
>skipping 'rgbimg' extension (up-to-date)
>building 'readline' extension
>skipping /usr2/mcollins_dev/Python-2.1/Modules/readline.c
>(build/temp.solaris-2.7-sun4u-2.1/readline.o up-to-date)
>gcc -shared build/temp.solaris-2.7-sun4u-2.1/readline.o
>-L/usr/lib/termcap -L/usr/local/lib -lreadline -ltermcap -o
>build/lib.solaris-2.7-sun4u-2.1/readline.so
>Text relocation remains                         referenced
>    against symbol                  offset      in file
><unknown>                           0x38
>/usr/local/lib/libreadline.a(xmalloc.o)
><unknown>                           0x3c
>/usr/local/lib/libreadline.a(xmalloc.o)
><unknown>                           0xe0
>/usr/local/lib/libreadline.a(xmalloc.o)
>
>
>It goes on (and on, and on) from there - I've never seen this kind of
>compile error before, and it specifically only happening on our
>solaris boxes.  Any sugestions?
>
>Here's the Uname: SunOS nan.ndim.edrc.cmu.edu 5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-2
>
>

I had similar problems. I ended up modifying Modules/Setup to link
readline (and a couple of other modules) statically. 

Since I did not have write access to the system dirs, this also let me
link against more recent versions of these libraries than were
available in the usual places (/usr/local .... etc). 

For some of the extension modules I built, I had to add the flag
-mimpure-text to the compile string.

Bob



More information about the Python-list mailing list