By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,771 Members | 1,685 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,771 IT Pros & Developers. It's quick & easy.

_ssl.so build problems on Solaris 8 for 2.3

P: n/a

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

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Skip Montanaro <sk**@pobox.com> writes:
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
Jul 18 '05 #2

P: n/a

Martin> Skip Montanaro <sk**@pobox.com> writes:
Is distutils missing some libraries or have I hosed the OpenSSL
installation somehow?


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

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.