Greetings Monks and Monkettes,
I have on many occasions installed Net::SSLeay on Solaris boxes and this includes Solaris 10. For reasons I don't understand I can't get it to work this time.

Here's the setup:
Operating SystemSolaris 10
Perl Version5.8.8
OpenSSL Version0.9.7b
gcc version3.3.2

The first indication that I see that somthing might be a tad wrong is when I run the Makefile.PL I see the following:

*** /usr/local/ssl/bin/openssl appears to be compiled with gcc (gcc -B +/usr/ccs/bin/ -DOPENSSL_SYSNAME_ULTRASPARC -DOPENSSL_THREADS -D_REENT +RANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_ASM -m +64 -mcpu=ultrasparc -O3 -Wall -DB_ENDIAN ) while perl is compiled with gcc -B/usr/ccs/bin. Both must be compile +d with the same compiler and flags. Mixing and matching compilers is +not supported. at ./Makefile.PL line 137.
This didn't worry me too badly so I plunged on. I'm not sure what in the compiler string it sees that it don't like other than the fact they don't match 100% so I plunged on.

I ran the make and the only thing that struck me as odd there is:

gcc -B/usr/ccs/bin -G -L/usr/local/lib SSLeay.o -o blib/arch/auto/Ne +t/SSLeay/SSLeay.so \ -L/usr/local/ssl -L/usr/local/ssl/lib -lssl -lcrypto \ ld: warning: file /usr/local/lib/libssl.a(s2_meth.o): wrong ELF class: + ELFCLASS64 ld: warning: file /usr/local/lib/libcrypto.a(md5_one.o): wrong ELF cla +ss: ELFCLASS64
Now.. that worried me a bit. I'm not sure why that is happening since gcc was used for both Perl and OpenSSL in their compiles. In fact, they were compiled on the same machine!

Predictably (at least to me) when I ran a make test it failed. The error wasn't quite what I expected, but here it is as well:

Can't load 'blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLea +y: ld.so.1: perl: fatal: relocation error: file blib/arch/auto/Net/SS +Leay/SSLeay.so: symbol SSLv23_method: referenced symbol not found at +/usr/local/software/perl-5.8.8/lib/5.8.8/sun4-solaris/DynaLoader.pm l +ine 230. at test.pl line 25 Compilation failed in require at test.pl line 25. BEGIN failed--compilation aborted at test.pl line 25. not ok 1

Anybody out there know what magic incantations I sould be inoking at this point? I'm at my wits end with this one.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

In reply to Net::SSLeay + Solaris 10 + OpenSSL v0.9.7b == frustration by blue_cowdawg

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.