in reply to Re^2: ActiveState Perl 10.x and Crypt::SSLeay not installed errors on Windows 2003
in thread ActiveState Perl 10.x and Crypt::SSLeay not installed errors on Windows 2003

Well, maybe you should test by asking Perl itself:

perl -V

will tell you about the Perl you're using, the Perl version etc..

perl -MCrypt::SSLeay -e "print 'OK'"

will tell you whether Crypt::SSLeay actually is installed for your Perl or not.

Replies are listed 'Best First'.
Re^4: ActiveState Perl 10.x and Crypt::SSLeay not installed errors on Windows 2003
by yeah (Novice) on Mar 28, 2008 at 21:50 UTC
    $ perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration +: Platform: osname=MSWin32, osvers=5.00, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D +_CONSOLE - DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC + -DPERL_IM PLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX' +, optimize='-MD -Zi -DNDEBUG -O1', cppflags='-DWIN32' ccversion='12.00.8804', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64 +', lseeksi ze=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -l +ibpath:"C: \Perl\lib\CORE" -machine:x86' libpth=\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib + comdlg32 .lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uui +d.lib ws2_ 32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.l +ib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool +.lib comd lg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib + uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvc +rt.lib libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl510.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt: +ref,icf - libpath:"C:\Perl\lib\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 1002 [283697] 32809 Load 'loadable object' with non-default file extension 32728 64-bit fix for Time::Local Built under MSWin32 Compiled at Jan 10 2008 11:00:53 @INC: c:/Perl/site/lib c:/Perl/lib . $ perl -MCrypt::SSLeay -e "print 'OK'" Can't find 'boot_Crypt__SSLeay' symbol in c:/Perl/site/lib/auto/Crypt/ +SSLeay/SSL eay.dll at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted.
      $ perl -MCrypt::SSLeay -e "print 'OK'" Can't find 'boot_Crypt__SSLeay' symbol in c:/Perl/site/lib/auto/Crypt/SSLeay/SSL eay.dll at -e line 0

      When SSLeay.dll was built, no .def file was supplied.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        Ok enlighten me. .def file? I just built openssl from scratch, same problem. So what am I doing wrong. Its been a while since I've driven a compiler and code (8 years or so) so be gentle.
      $ perl -MCrypt::SSLeay -e "print 'OK'" Can't find 'boot_Crypt__SSLeay' symbol in c:/Perl/site/lib/auto/Crypt/ +SSLeay/SSL eay.dll at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted.
      That's very strange. I've just downloaded the binary that ppm should have installed and the SSLeay.dll that ships with it definitely exports that symbol:
      C:\temp\blib\arch\auto\Crypt\SSLeay>dumpbin /EXPORTS SSLeay.dll Microsoft (R) COFF/PE Dumper Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file SSLeay.dll File Type: DLL Section contains the following exports for SSLeay.dll 00000000 characteristics 476CA7C2 time date stamp Sat Dec 22 13:59:30 2007 0.00 version 1 ordinal base 2 number of functions 2 number of names ordinal hint RVA name 1 0 00003FD7 _boot_Crypt__SSLeay 2 1 00003FD7 boot_Crypt__SSLeay Summary 1000 .data 1000 .rdata 1000 .reloc 4000 .text
      You can see quite clearly that boot_Crypt__SSLeay is there.

      I can only conclude that either:
      1) that's not the binary that was installed;
      or
      2) another different SSLeay.dll (one that doesn't export that symbol) is being found first.

      You could check that 1) is not the problem by downloading the same binary as I did, extracting it to a temporary location, and copying SSLeay.dll across to your C:/Perl/site/lib/auto/Crypt/SSLeay directory. If, having done that, you still get the same error, then you will know for sure that a different SSLeay.dll is being found first.

      Cheers,
      Rob
      $ perl -MCrypt::SSLeay -e "print 'OK'" Can't find 'boot_Crypt__SSLeay' symbol in c:/Perl/site/lib/auto/Crypt/ +SSLeay/SSL eay.dll at -e line 0 Compilation failed in require. BEGIN failed--compilation aborted.

      So, I don't know how you installed Crypt::SSLeay for this version of Perl, but it didn't work. Maybe you have more than one version of Perl on this machine and for some reason they "both" think that C:/Perl/lib and C:/Perl/site/lib are fair game for them. In any case, you will have to resolve that situation and then reinstall Crypt::SSLeay.

        Only one version of Perl on this machine I just installed it in the past 48 hours on this host. What do you see that leads you to believe there is more than one installation? I have installed and reinstalled SSLeay several times.