AVanover5 has asked for the wisdom of the Perl Monks concerning the following question:

I've installed OpenSSL in the directory "C:\OpenSSL-Win32" with the binaries in "C:\OpenSSL-Win32\bin" rather than "C:\Windows\System32". The environment variable "OPENSSL_CONF" is set to "C:\OpenSSL-Win32\bin\openssl.cfg", while "OPENSSL_PREFIX" is set to "C:\OpenSSL-Win32".

Anyways, I keep trying to install Net::SSLeay (which needs OpenSSL) through cpanm because I need it for IO::Socket::SSL which is consequently needed for Net::SMTP::SSL but it fails. dmake comes out with an error code 129 at the end, but I looked over the build log and it looks like there's a domino effect of errors from the initial build.

C:/Perl/site/bin/gcc.exe -c  -IC:\OpenSSL-Win32\/include -IC:\OpenSSL-Win32\/inc32 -I/usr/kerberos/include     -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D_USE_32BIT_TIME_T -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2       -DVERSION=\"1.36\"     -DXS_VERSION=\"1.36\"  "-IC:\Perl\lib\CORE"

If you need to view the entire build log, open the spoiler below. Thank you for all your help.

(Spoiler moved to reply due to rendering bug -tye)

Replies are listed 'Best First'.
Re: Installing Net::SSLeay on Windows 7 via cpanm
by Anonymous Monk on May 31, 2011 at 22:13 UTC
Re: Installing Net::SSLeay on Windows 7 via cpanm
by syphilis (Archbishop) on Jun 01, 2011 at 12:37 UTC
    Your problem is that the openssl import libraries (or static libraries, if it's a static openssl build ... though "/bin" usually indicates a dynamic build) are not being found.
    What's the name of these import libraries ? (I'm used to seeing "libssl.dll.a" and "libcrypto.dll.a" but it depends upon which compiler built them.)

    If it helps, there are ppm packages for both Net::SSLeay and IO::Socket::SSL at the sisyphusion repo (and probably elsewhere, too):
    ppm install http://www.sisyphusion.tk/ppm/Net-SSLeay.ppd ppm install http://www.sisyphusion.tk/ppm/IO-Socket-SSL.ppd
    Net-SMTP-SSL-1.01 (which is pure perl) builds trivially against those ppm packages for all versions of perl later than 5.6.2 ... or I could upload ppm packages for it, too, if need be.
    I don't know whether Net-SMTP-SSL actually *works* on Windows - the test suite passes, but it's about 7 years old and doesn't actually test the functionality of the module.

    Cheers,
    Rob
Re: Installing Net::SSLeay on Windows 7 via cpanm ("spoiler")
by tye (Sage) on Jun 01, 2011 at 13:53 UTC

    Log moved from spoiler in root node to readmore below due to intermittent problem with rendering of spoiler tags (also, using spoiler tags to "hide" large amounts of text rather sucks for people who have spoilers fully rendered but just in white on white):

    - tye