_ssl.so build problems on Solaris 8 for 2.3

S

Skip Montanaro

I'm trying to build the released version of Python 2.3 on Solaris 8 for the
first time.

It has problems when building _ssl.so. The command generated
is

gcc -shared build/temp.solaris-2.8-sun4u-2.3/_ssl.o \
-L/usr/local/ssl/lib -L/usr/local/lib -lssl -lcrypto \
-o build/lib.solaris-2.8-sun4u-2.3/_ssl.so

It generates an enormous table which begins with:

Text relocation remains referenced
against symbol offset in file
<unknown> 0x4 /usr/local/ssl/lib/libssl.a(ssl_ciph.o)
<unknown> 0x2c /usr/local/ssl/lib/libssl.a(ssl_ciph.o)
<unknown> 0x54 /usr/local/ssl/lib/libssl.a(ssl_ciph.o)
<unknown> 0x7c /usr/local/ssl/lib/libssl.a(ssl_ciph.o)
<unknown> 0xa4 /usr/local/ssl/lib/libssl.a(ssl_ciph.o)
...

That goes on and on and on (it must print several hundred lines), finally
finishing up with

...
v2i_GENERAL_NAME 0xa1c /usr/local/ssl/lib/libcrypto.a(v3_alt.o)
v2i_GENERAL_NAME 0x15c /usr/local/ssl/lib/libcrypto.a(v3_crld.o)
v2i_GENERAL_NAME 0x2e8 /usr/local/ssl/lib/libcrypto.a(v3_info.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status

Is distutils missing some libraries or have I hosed the OpenSSL installation
somehow? 2.3b2 installed fine back in early July (including _ssl.so),
though the OpenSSL install has been updated since then (end of July).

Googling for "python solaris ssl" and checking the top-level
README for "ssl" didn't turn up anything promising.

Thanks,

Skip
 
M

Martin v. =?iso-8859-15?q?L=F6wis?=

Skip Montanaro said:
Is distutils missing some libraries or have I hosed the OpenSSL installation
somehow?

The latter. You must make sure that the library you link with is
position-independent, or else you must build _ssl as a builtin module
(i.e. through Modules/Setup, as non-shared).

Regards,
Martin
 
S

Skip Montanaro

Martin> The latter. You must make sure that the library you link with is
Martin> position-independent, or else you must build _ssl as a builtin
Martin> module (i.e. through Modules/Setup, as non-shared).

Thanks Martin. That took care of it...

Skip
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top