in reply to https on OSX 10.3 crypto failure

I'll provide you as much info as I can.. Please excuse my lack of info as ignorance and not indifference.. I'm still a perl newbie. We match in some areas, but not others..
[ninja2:~/code/perl] guru% strings /usr/lib/libssl.0.9.7.dylib | egrep + OpenSSL SSLv2 part of OpenSSL 0.9.7b 10 Apr 2003 SSLv3 part of OpenSSL 0.9.7b 10 Apr 2003 SSLv2/3 compatibility part of OpenSSL 0.9.7b 10 Apr 2003 TLSv1 part of OpenSSL 0.9.7b 10 Apr 2003 OpenSSL 0.9.7b 10 Apr 2003 <br> [ninja2:~/code/perl] guru% grep -i add_all_algorithms /usr/lib/*ssl* [ninja2:~/code/perl] guru% find /usr/lib -name *ssl* tcsh: find: No match. <br>
I uninstalled my Crypt module, and went to Cpan to reinstall. I get this during the install:
<br> /usr/local/lib does not seem to contain the SSLeay library files Found the following OpenSSL installations: OpenSSL 0.9.6 /usr/local/ssl OpenSSL 0.9.6 /usr/local OpenSSL 0.9.7 /usr Which OpenSSL build path do you want to link against? [/usr/local/ssl]

I chose /usr/local/ssl, and then get the following at the end of the script.
/Users/guru/.cpan/build/Crypt-SSLeay-0.51/blib/arch/auto/Crypt/SSLeay/ +SSLeay.bundle undefined reference to _OpenSSL_add_all_algorithms expe +cted to be defined in a dynamic image t/net_ssl........dubious + Test returned status 0 (wstat 5, 0x5) t/ssl_context....dyld: /usr/bin/perl Undefined symbols: /Users/guru/.cpan/build/Crypt-SSLeay-0.51/blib/arch/auto/Crypt/SSLeay/ +SSLeay.bundle undefined reference to _OpenSSL_add_all_algorithms expe +cted to be defined in a dynamic image t/ssl_context....dubious + Test returned status 0 (wstat 5, 0x5) FAILED--2 test scripts could be run, alas--no output ever seen make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
Then, if I rerun with Force, it claims to install cleanly. But I get the error I presented earlier in the code. Ask me for any information and I'll provide it.
Also, I came across this website, but can't tell if it means anything.. many many thanks.. tim

Replies are listed 'Best First'.
Re: Re: https on OSX 10.3 crypto failure
by ecuguru (Monk) on Jan 02, 2004 at 13:30 UTC
    That worked!! The Library! Maybe that was it.. I did: sudo cpan then cpan> install Crypt::SSLeay
    the Encryption.SSL text document included only says Crypt.SSLeay, not Net::SSLeay. I guess I should have known that?
    Anyhow, perhaps that was the problem, I was going after the wrong library?
    Your method of installing the module, being the lamer newbie I am I haven't seen it before, but it appears to be similar to what Cpan does. Is that a correct assumption, and is your way a better way to install modules?
    Thank you, So much!
    Tim
      That worked!!

      I'm glad it worked for you. I see that your install is looking for OpenSSL under /usr/local/lib. Perhaps you could succeed by telling the installer to look under /usr/lib instead.

      The look command from the CPAN module, allows you to manually look into a distribution. It is useful for complex installations. Indeed, I wanted to take a look at Net::SSLeay since I've never installed it and I assumed you followed the standard recipe. 99% of the time, you can issue the more standard install command.

      Best regards

      -lem, but some call me fokat

        For anyone who runs into the same problem I did.. Loading the below libraries will enable you to load the bottom code.. You'll need LWP also, but that's not shown here. You need to install IO::Socket::SSL and Net::SSLeay. Examples of how to install here <credits to fokat above>.
        sudo perl -MCPAN -e shell look Net::SSLeay perl Makefile.PL -t make install
        Example test code:
        #!/usr/bin/perl use LWP::Simple; my $url ='https://www.paypal.com'; #Notice the s in httpS my $content = get $url; print $content;