Hi: I cannot seem to get Net-SSLeay-1.25 to compile on a Solaris machine. Everytime I run 'make test', the following error always rears its ugly head:

Can't load 'blib/arch/auto/Net/SSLeay/SSLeay.so' for module Net::SSLeay:
ld.so.1: /usr/local/bin/perl: fatal: relocation error: file blib/arch/auto/Net/SSLeay/SSLeay.so: symbol RAND_egd_bytes: referenced symbol not found
at /usr/local/lib/perl5/5.6.0/sun4-solaris/DynaLoader.pm line 200.
at test.pl line 25 Compilation failed in require at test.pl line 25. BEGIN failed--compilation aborted at test.pl line 25. *** Error code 255 make: Fatal error: Command failed for target `test_dynamic'

Here is the output of perl -V on the machine I am trying to compile on: Summary of my perl5 (revision 5.0 version 6 subversion 0)
configuration:
Platform:
osname=solaris, osvers=2.8, archname=sun4-solaris
uname='sunos sic64078 5.8 generic_108528-03 sun4u sparc
sunw,ultra-60 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef
uselongdouble=undef
usesocks=undef
Compiler:
cc='cc', optimize='-O', gccversion=
cppflags=''
ccflags =' -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'

stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8,
d_longdbl=define,
longdblsize=16
ivtype='long', ivsize=4, nvtype='double',
nvsize=8,
Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/opt/SUNWspro/SC5.0/lib '
libpth=/opt/SUNWspro/SC5.0/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=false,
libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef,
ccdlflags=' '
cccdlflags='-KPIC', lddlflags='-G -L/opt/SUNWspro/SC5.0/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under solaris
Compiled at Apr 2 2001 15:53:58
%ENV:
PERL5LIB="/ford/thishost/u/msmithso/perlib"
@INC:
/ford/thishost/u/msmithso/perlib/sun4-solaris
/ford/thishost/u/msmithso/perlib
/usr/local/lib/perl5/5.6.0/sun4-solaris
/usr/local/lib/perl5/5.6.0
/usr/local/lib/perl5/site_perl/5.6.0/sun4-solaris
/usr/local/lib/perl5/site_perl/5.6.0
/usr/local/lib/perl5/site_perl

BTW: I am compiling this module using gcc ver. 3.3.2, not the default (and clunky) C compiler that comes with Solaris.


In reply to Problems Compiling Net::SSLeay 1.25 on Solaris by Genghis_Khan

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.