I am working in a corporate environment where production servers are not allowed to have C compiler installed. I need to install Crypt::SSLeay for LWP SSL support.

I am using a version of Crypt::SSLeay that was built on a Solaris 9 development server with OpenSSL 0.9.7e installed. This dev server has gcc and a Perl distribution from Sun. I have moved the built modules and libraries to the production server which is a Solaris 8 server with OpenSSL 0.9.7c installed and an ActiveState Perl 5.8.7 distribution.

When I try and load the module using perl -MCrypt::SSLeay I get:

Can't load '/opt/support/verity/iscripts/lib/auto/Crypt/SSLeay/SSLeay. +so' for module Crypt::SSLeay: ld.so.1: perl: fatal: relocation error: + file /opt/support/verity/iscripts/lib/auto/Crypt/SSLeay/SSLeay.so: s +ymbol PL_markstack_ptr: referenced symbol not found at /opt/ActivePer +l-5.8/lib/5.8.7/sun4-solaris-thread-multi/DynaLoader.pm line 230. at - line 0 Compilation failed in require. BEGIN failed--compilation aborted.

I suspect that this indicates a binary incompatibility, the source of which could be any of the components that are different. My choices with respect to fixing the problem appear to be :

  1. Upgrade the OpenSSL version.
  2. Match the Perl installations.
  3. Install gcc and rebuild the module. I can then save the built files and have the server re-built.

Can anyone comment on the problem and suggest solutions?


In reply to Crypt::SSLeay binary version problem on Solaris by inman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.