Hi!

Which way is the true way, and what not?  "-lssleay32 -llibeay32" Way?  Or 
"-lssl -lcrypto" Way?

--

a) "-lssleay32 -llibeay32" Way:

 At this moment in strawberry-perl-5.12.3.0-64bit / 5.12.2.0 and in 
64bit_openssl-1.0.0d-bin_20110507.zip :
==
libeay32__.dll
ssleay32__.dll
libeay32.a
libssl32.a
libssleay32.a
==

In Makefile.PL  need use "-lssleay32 -llibeay32"

need fix in:
Crypt::OpenSSL::AES
Crypt::OpenSSL::RSA
Crypt::OpenSSL::Random

etc.


http://www.perlmonks.org/?node_id=815160
==
 by syphilis (Abbot)
on Jan 01, 2010 at 08:20 UTC  

I certainly didn't expect Strawberry to go with *that* naming convention for 
their openssl libraries. 
I expected they would stick with the more general '-lssl -lcrypto' nomenclature 
(which is what mingw builds for native win32 in the msys shell) .... but I was 
wrong. 
I guess they have good reason(s) for doing that. 
==



b)  "-lssl -lcrypto" Way:
HowTo: Strawberry Perl v5.12.3 x64 upgrade to OpenSSL v1.0.0d from "OpenSSL 
1.0.0-beta4"
http://vvm.blog.tut.by/2011/06/01/howto-strawberry-perl-v5-12-3-x64-upgrade-to-openssl-v1-0-0d-from-openssl-1-0-0-beta4/
==
. . .
MSYS-20110526.zip   
  from
http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/
 . . .
ftp://ftp.openssl.org/source/openssl-1.0.0d.tar.gz
 . . .
tar xfhz openssl-1.0.0d.tar.gz
 . . .
cd /openssl-1.0.0d

 Run:
./configure mingw64 shared no-asm no-hw --openssldir=/openssl
make
make test
make install
. . .
==

 The result of compilation:
==
libeay32.dll
ssleay32.dll
libcrypto.a
libcrypto.dll.a
libssl.a
libssl.dll.a
==

In Makefile.PL  need use "-lssl -lcrypto"

need fix in:
Crypt::SSLeay
Net::SSLeay

but not need fix in:
Crypt::OpenSSL::AES
Crypt::OpenSSL::RSA
Crypt::OpenSSL::Random


 I.e. fixed 
http://www.mail-archive.com/win32-vanilla@perl.org/msg00217.html
==
kmx
Sat, 10 Apr 2010 00:20:41 -0700
  . . .
I have created the following bug reports:
1/ http://rt.cpan.org/Public/Bug/Display.html?id=56454
2/ http://rt.cpan.org/Public/Bug/Display.html?id=56455
feel free to post some supportive comments to those RTs
==
Which way is the true way, and what not?  "-lssleay32 -llibeay32" Way?  Or 
"-lssl -lcrypto" Way?


Best regards, Victor Miasnikov
Blog:  http://vvm.blog.tut.by/

P.S.
  Full enviroment:
Mini How-To: practical method to install ASSP v2.X on Windows x64 using 
Strawberry Perl v5.12.X x64
http://vvm.blog.tut.by/2011/05/18/mini-how-to-practically-method-to-install-assp-v2-x-on-windows-x64-by-strawberry-perl-v5-12-2-x64/


Reply via email to