Using Strawberry Perl 5.8.9 on Windows XP Pro SP3, with the CPAN shell, I “install Crypt::OpenSSL::Random” and everything goes fine until:

CPAN.pm: Going to build I/IR/IROBERTS/Crypt-OpenSSL-Random-0.04.tar. +gz Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lssl Note (probably harmless): No library found for -lcrypto Writing Makefile for Crypt::OpenSSL::Random cp Random.pm blib\lib\Crypt\OpenSSL\Random.pm AutoSplitting blib\lib\Crypt\OpenSSL\Random.pm (blib\lib\auto\Crypt\Op +enSSL\Random) C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -typemap C:\strawberry\perl\lib\ExtUtils\typemap Random.xs > Rando +m.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "mv" +-- Random.xsc Random.c Please specify prototyping behavior for Random.xs (see perlxs manual) gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE - +DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPER +L_MSVCRT_READFIX -s -O2 -DVERSION=\"0.04\" -DXS_VERSION=\"0 +.04\" "-IC:\strawberry\perl\lib\CORE" Random.c Running Mkbootstrap for Crypt::OpenSSL::Random () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e "chmod" -- 644 +Random.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Crypt::OpenSSL::Random\", 'DLBASE' => 'R +andom', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_ +VARS' => []);" dlltool --def Random.def --output-exp dll.exp g++ -o blib\arch\auto\Crypt\OpenSSL\Random\Random.dll -Wl,--base-file +-Wl,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberr +y\c\lib" Random.o -Wl,--image-base,0x3d0c0000 C:\strawberry\perl\lib +\CORE\libperl58.a C:\strawberry\c\lib\libmsvcrt.a C:\strawberry\c\lib +\libmoldname.a C:\strawberry\c\lib\libkernel32.a C:\strawberry\c\lib\ +libuser32.a C:\strawberry\c\lib\libgdi32.a C:\strawberry\c\lib\libwin +spool.a C:\strawberry\c\lib\libcomdlg32.a C:\strawberry\c\lib\libadva +pi32.a C:\strawberry\c\lib\libshell32.a C:\strawberry\c\lib\libole32. +a C:\strawberry\c\lib\liboleaut32.a C:\strawberry\c\lib\libnetapi32.a + C:\strawberry\c\lib\libuuid.a C:\strawberry\c\lib\libws2_32.a C:\str +awberry\c\lib\libmpr.a C:\strawberry\c\lib\libwinmm.a C:\strawberry\c +\lib\libversion.a C:\strawberry\c\lib\libodbc32.a C:\strawberry\c\lib +\libodbccp32.a dll.exp Random.o:Random.c:(.text+0x141): undefined reference to `RAND_bytes' Random.o:Random.c:(.text+0x301): undefined reference to `RAND_bytes' Random.o:Random.c:(.text+0x4a6): undefined reference to `RAND_seed' Random.o:Random.c:(.text+0x4c7): undefined reference to `RAND_status' Random.o:Random.c:(.text+0x53c): undefined reference to `RAND_seed' Random.o:Random.c:(.text+0x622): undefined reference to `RAND_egd' Random.o:Random.c:(.text+0x6a9): undefined reference to `RAND_egd' Random.o:Random.c:(.text+0x770): undefined reference to `RAND_status' collect2: ld returned 1 exit status dmake.EXE: Error code 129, while making 'blib\arch\auto\Crypt\OpenSSL +\Random\Random.dll' IROBERTS/Crypt-OpenSSL-Random-0.04.tar.gz C:\strawberry\c\bin\dmake.EXE -- NOT OK

How do I fix this?


In reply to Problem installing Crypt::OpenSSL::Random on Win32 by TedHopp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.