_ssl.so build problems on Solaris 8 for 2.3

Discussion in 'Python' started by Skip Montanaro, Sep 15, 2003.

  1. 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
     
    Skip Montanaro, Sep 15, 2003
    #1
    1. Advertising

  2. Skip Montanaro <> 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
     
    Martin v. =?iso-8859-15?q?L=F6wis?=, Sep 15, 2003
    #2
    1. Advertising

  3. Martin> Skip Montanaro <> 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
     
    Skip Montanaro, Sep 16, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fuzzyman

    _ssl.pyd in py2exe ???

    Fuzzyman, Feb 21, 2004, in forum: Python
    Replies:
    5
    Views:
    541
    Fuzzyman
    Feb 23, 2004
  2. Larry Bates
    Replies:
    1
    Views:
    440
    Larry Bates
    Jul 7, 2005
  3. Replies:
    11
    Views:
    606
  4. Laszlo Nagy

    _ssl.pyd is buggy?

    Laszlo Nagy, Feb 13, 2007, in forum: Python
    Replies:
    8
    Views:
    358
    Giles Brown
    Feb 14, 2007
  5. Alan Mackenzie
    Replies:
    1
    Views:
    526
    Anssi Saari
    Mar 6, 2010
Loading...

Share This Page