Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Relocation errors in Crypt::SSLeay in Solaris 10

by hazylife (Monk)
on Mar 14, 2014 at 10:30 UTC ( #1078309=note: print w/ replies, xml ) Need Help??


in reply to Relocation errors in Crypt::SSLeay in Solaris 10

LD_PRELOAD_64=/usr/sfw/lib/64/libssl.so does work.
Sounds like libssl.so is not being linked in, so you might need to add "-lssl -lcrypto" to the LDLOADLIBS line in the Makefile:
LDLOADLIBS = -lz -L/usr/sfw/lib/64 -lssl -lcrypto


Comment on Re: Relocation errors in Crypt::SSLeay in Solaris 10
Download Code
Re^2: Relocation errors in Crypt::SSLeay in Solaris 10
by arielCo (Sexton) on Mar 15, 2014 at 01:48 UTC

    That works - thanks a bunch. For anyone else reading, it's easy to pass this through 'o conf':

       o conf makepl_arg 'LIBS="-lz -L/usr/sfw/lib/64 -lssl -lcrypto"'

    Long story: turns out that -lssl -lcrypto are being left out of EXTRALIBS and LDLOADLIBS in the Makefile (no idea why - Makefile.PL comes with LIBS => [q{-lz -lssl -lcrypto -lssl32 -lssleay32 -leay32}]). So putting them in the Makefile and building again from the shell works too:

    EXTRALIBS = -lz -lssl -lcrypto LDLOADLIBS = -lz -lssl -lcrypto
      Makefile.PL comes with LIBS => q{-lz -lssl -lcrypto -lssl32 -lssleay32 -leay32})

      If those libraries are not located at the 'perl Makefile.PL' step, they don't get written in to the generated Makefile.
      It would seem that /usr/sfw/lib/64 is not being searched - for which another fix would be to change the quoted entry in the Makefile.PL to:
      LIBS => [q{-lz -L/usr/sfw/lib/64 -lssl -lcrypto -lssl32 -lssleay32 -le +ay32}])
      Passing it through 'o conf' is probably a better solution - in that it doesn't involve manual editing of any files.
      Yet another option would be to add /usr/sfw/lib/64 to the LIBRARY_PATH environment variable:
      export LIBRARY_PATH=$LIBRARY_PATH:/usr/sfw/lib/64
      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1078309]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2015-07-04 01:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls