develooper Front page | perl.win32.vanilla | Postings from April 2010

Re: Spamassassin and openssl

Thread Previous | Thread Next
From:
Michael Papet
Date:
April 9, 2010 11:29
Subject:
Re: Spamassassin and openssl
Message ID:
644992.15638.qm@web62008.mail.re1.yahoo.com
Then, modules (plural) looking for openssl can't find the library or the headers.

C:\>perl -v  This is perl, v5.10.0 built for MSWin32-x86-multi-thread

CPAN can't find the includes or the library.  

The output from the set command:
Path=C:\Program Files\Windows Resource Kits\Tools\;C:\Program Files\HP\NCU;C:\P
ogram Files\Common Files\Business Objects\3.0\bin\NOTES\;C:\Program Files\Commo
 Files\Business Objects\3.0\bin\NOTES\DATA\;C:\WINDOWS\system32;C:\WINDOWS;C:\W
NDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Prog
am Files\Common Files\GTK\2.0\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:
mingw\bin;C:\mingw\mingw32\bin;F:\Program Files\MySQL Server\bin


There are a multitude of errors looking for different files and errors cascade from there.  This is just one example. "RSA.xs:5:25: openssl/bio.h: No such file or directory"

Here's most of the output of install Crypt::OpenSSL::RSA

Checksum for C:\strawberry\cpan\sources\authors\id\I\IR\IROBERTS\Crypt-OpenSSL-R
SA-0.26.tar.gz ok
Scanning cache C:\strawberry\cpan\build for sizes
............................................................................DONE


  CPAN.pm: Going to build I/IR/IROBERTS/Crypt-OpenSSL-RSA-0.26.tar.gz

Checking if your kit is complete...
Looks good
Warning: prerequisite Crypt::OpenSSL::Random 0 not found.
Note (probably harmless): No library found for -lssl
Note (probably harmless): No library found for -lcrypto
Writing Makefile for Crypt::OpenSSL::RSA
---- Unsatisfied dependencies detected during ----
----  IROBERTS/Crypt-OpenSSL-RSA-0.26.tar.gz  ----
    Crypt::OpenSSL::Random [requires]
Running make test
  Delayed until after prerequisites
Running make install
  Delayed until after prerequisites
Running install for module 'Crypt::OpenSSL::Random'
Running make for I/IR/IROBERTS/Crypt-OpenSSL-Random-0.04.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\I\IR\IROBERTS\Crypt-OpenSSL-R
andom-0.04.tar.gz ok

  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\OpenSSL\Rand
om)
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp  -typemap
 C:\strawberry\perl\lib\ExtUtils\typemap  Random.xs > Random.xsc && C:\strawberr
y\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 -DPERL_IMPLICIT_CONTEXT -DPERL_
IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2    -DVERSION=\"0.
04\"    -DXS_VERSION=\"0.04\"  "-IC:\strawberry\perl\lib\CORE"   Random.c
Random.xs:5:26: openssl/rand.h: No such file or directory
dmake.EXE:  Error code 129, while making 'Random.o'
  IROBERTS/Crypt-OpenSSL-Random-0.04.tar.gz
  C:\strawberry\c\bin\dmake.EXE -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Running make for I/IR/IROBERTS/Crypt-OpenSSL-RSA-0.26.tar.gz
  Has already been unwrapped into directory C:\strawberry\cpan\build\Crypt-OpenS
SL-RSA-0.26-XDMdWx

  CPAN.pm: Going to build I/IR/IROBERTS/Crypt-OpenSSL-RSA-0.26.tar.gz

Warning: Prerequisite 'Crypt::OpenSSL::Random => 0' for 'IROBERTS/Crypt-OpenSSL-
RSA-0.26.tar.gz' failed when processing 'IROBERTS/Crypt-OpenSSL-Random-0.04.tar.
gz' with 'make => NO'. Continuing, but chances to succeed are limited.
cp RSA.pm blib\lib\Crypt\OpenSSL\RSA.pm
AutoSplitting blib\lib\Crypt\OpenSSL\RSA.pm (blib\lib\auto\Crypt\OpenSSL\RSA)
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp  -typemap
 C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap  RSA.xs > RSA.xsc && C
:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv RSA.xsc RSA.c
gcc -c          -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_
IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2    -DVERSION=\"0.
26\"    -DXS_VERSION=\"0.26\"  "-IC:\strawberry\perl\lib\CORE"  -DPERL5 -DOPENSS
L_NO_KRB5 RSA.c
RSA.xs:5:25: openssl/bio.h: No such file or directory
RSA.xs:6:24: openssl/bn.h: No such file or directory
RSA.xs:7:25: openssl/err.h: No such file or directory
RSA.xs:8:25: openssl/md5.h: No such file or directory
RSA.xs:9:29: openssl/objects.h: No such file or directory
RSA.xs:10:25: openssl/pem.h: No such file or directory
RSA.xs:11:26: openssl/rand.h: No such file or directory
RSA.xs:12:28: openssl/ripemd.h: No such file or directory
RSA.xs:13:25: openssl/rsa.h: No such file or directory
RSA.xs:14:25: openssl/sha.h: No such file or directory
RSA.xs:15:25: openssl/ssl.h: No such file or directory
RSA.xs:19: error: syntax error before "RSA"
RSA.xs:19: warning: no semicolon at end of struct or union
RSA.xs:22: error: syntax error before '}' token
RSA.xs:22: warning: data definition has no type or storage class
RSA.xs: In function `croakSsl':
RSA.xs:36: warning: assignment makes pointer from integer without a cast
RSA.xs: At top level:
RSA.xs:50: error: syntax error before '*' token
RSA.xs: In function `_is_private':
RSA.xs:52: error: `p_rsa' undeclared (first use in this function)
RSA.xs:52: error: (Each undeclared identifier is reported only once
RSA.xs:52: error: for each function it appears in.)
RSA.xs: At top level:
RSA.xs:55: error: syntax error before "RSA"
RSA.xs: In function `make_rsa_obj':
RSA.xs:57: error: `rsa' undeclared (first use in this function)
RSA.xs:59: error: syntax error before ')' token
RSA.xs:59: error: syntax error before ')' token
RSA.xs: At top level:
RSA.xs:60: error: syntax error before '->' token
RSA.xs: In function `get_digest_length':
RSA.xs:72: error: `NID_md5' undeclared (first use in this function)
RSA.xs:73: error: `MD5_DIGEST_LENGTH' undeclared (first use in this function)
RSA.xs:75: error: `NID_sha1' undeclared (first use in this function)
RSA.xs:76: error: `SHA_DIGEST_LENGTH' undeclared (first use in this function)
RSA.xs:92: error: `NID_ripemd160' undeclared (first use in this function)
RSA.xs:93: error: `RIPEMD160_DIGEST_LENGTH' undeclared (first use in this functi
on)
RSA.xs: In function `get_message_digest':
RSA.xs:110: error: `NID_md5' undeclared (first use in this function)
RSA.xs:111: warning: return makes pointer from integer without a cast
RSA.xs:113: error: `NID_sha1' undeclared (first use in this function)
RSA.xs:114: warning: return makes pointer from integer without a cast
RSA.xs:130: error: `NID_ripemd160' undeclared (first use in this function)
RSA.xs:131: warning: return makes pointer from integer without a cast
RSA.xs: At top level:
RSA.xs:139: error: syntax error before '*' token
RSA.xs: In function `bn2sv':
RSA.xs:141: error: `p_bn' undeclared (first use in this function)
RSA.xs: At top level:
RSA.xs:146: error: syntax error before '*' token
RSA.xs: In function `extractBioString':
RSA.xs:149: error: `BUF_MEM' undeclared (first use in this function)
RSA.xs:149: error: `bptr' undeclared (first use in this function)
RSA.xs:151: error: `p_stringBio' undeclared (first use in this function)
RSA.xs:155: error: `BIO_CLOSE' undeclared (first use in this function)
RSA.xs: At top level:
RSA.xs:160: error: syntax error before '*' token
RSA.xs:161: error: syntax error before "RSA"
RSA.xs:161: error: syntax error before '*' token
RSA.xs:166: error: syntax error before '*' token
RSA.xs:166: warning: data definition has no type or storage class
RSA.xs:167: error: syntax error before '*' token
RSA.xs:167: warning: data definition has no type or storage class
RSA.xs:169: error: conflicting types for 'keyString'
RSA.xs:164: error: previous declaration of 'keyString' was here
RSA.xs:169: error: `p_keyStringSv' undeclared here (not in a function)
RSA.xs:169: error: `keyStringLength' undeclared here (not in a function)
RSA.xs:169: warning: data definition has no type or storage class
RSA.xs:171: error: syntax error before "if"
RSA.xs:173: error: conflicting types for 'rsa'
RSA.xs:166: error: previous declaration of 'rsa' was here
RSA.xs:173: error: initializer element is not constant
RSA.xs:173: warning: data definition has no type or storage class
RSA.xs:175: error: syntax error before "if"
RSA.xs:176: warning: parameter names (without types) in function declaration
RSA.xs:176: warning: data definition has no type or storage class
RSA.xs:178: error: syntax error before "if"
RSA.xs:182: error: syntax error before '*' token
RSA.xs:183: error: syntax error before "RSA"
RSA.xs:192: error: conflicting types for 'from'
RSA.xs:188: error: previous declaration of 'from' was here
RSA.xs:192: error: `p_from' undeclared here (not in a function)
RSA.xs:192: error: `from_length' undeclared here (not in a function)
RSA.xs:192: warning: data definition has no type or storage class
RSA.xs:193: error: `p_rsa' undeclared here (not in a function)
RSA.xs:193: error: initializer element is not constant
RSA.xs:193: warning: data definition has no type or storage class
RSA.xs:194: error: syntax error before "if"
RSA.xs:197: error: initializer element is not constant
RSA.xs:197: warning: data definition has no type or storage class
RSA.xs:199: error: syntax error before "if"
RSA.xs:204: error: conflicting types for 'sv'
RSA.xs:190: error: previous declaration of 'sv' was here
RSA.xs:204: warning: initialization makes integer from pointer without a cast
RSA.xs:204: error: initializer element is not constant
RSA.xs:204: warning: data definition has no type or storage class
RSA.xs:205: error: syntax error before '(' token
RSA.xs:205: error: syntax error before ')' token
RSA.xs: In function `XS_Crypt__OpenSSL__RSA_new_private_key':
RSA.xs:222: error: `PEM_read_bio_RSAPrivateKey' undeclared (first use in this fu
nction)
RSA.xs: In function `XS_Crypt__OpenSSL__RSA__new_public_key_pkcs1':
RSA.xs:232: error: `PEM_read_bio_RSAPublicKey' undeclared (first use in this fun
ction)
RSA.xs: In function `XS_Crypt__OpenSSL__RSA__new_public_key_x509':
RSA.xs:242: error: `PEM_read_bio_RSA_PUBKEY' undeclared (first use in this funct
ion)
RSA.c: In function `XS_Crypt__OpenSSL__RSA_DESTROY':
RSA.c:321: error: syntax error before ')' token
RSA.xs: In function `XS_Crypt__OpenSSL__RSA_get_private_key_string':
RSA.xs:257: error: `BIO' undeclared (first use in this function)
RSA.c:353: error: syntax error before ')' token
RSA.xs:259: warning: assignment makes pointer from integer without a cast
RSA.xs: In function `XS_Crypt__OpenSSL__RSA_get_public_key_string':
RSA.xs:271: error: `BIO' undeclared (first use in this function)
RSA.c:390: error: syntax error before ')' token
RSA.xs:273: warning: assignment makes pointer from integer without a cast
RSA.xs: In function `XS_Crypt__OpenSSL__RSA_get_public_key_x509_string':
RSA.xs:284: error: `BIO' undeclared (first use in this function)
RSA.c:426: error: syntax error before ')' token
RSA.xs:286: warning: assignment makes pointer from integer without a cast
RSA.xs: In function `XS_Crypt__OpenSSL__RSA_generate_key':
RSA.xs:299: error: `RSA' undeclared (first use in this function)
RSA.c: In function `XS_Crypt__OpenSSL__RSA__new_key_from_parameters':
RSA.c:489: error: `BIGNUM' undeclared (first use in this function)
RSA.c:489: error: `n' undeclared (first use in this function)
RSA.c:489: error: syntax error before ')' token
RSA.c:490: error: `e' undeclared (first use in this function)
RSA.c:490: error: syntax error before ')' token
RSA.c:491: error: `d' undeclared (first use in this function)
RSA.c:491: error: syntax error before ')' token
RSA.c:492: error: `p' undeclared (first use in this function)
RSA.c:492: error: syntax error before ')' token
RSA.c:493: error: `q' undeclared (first use in this function)
RSA.c:493: error: syntax error before ')' token
RSA.xs:316: error: `RSA' undeclared (first use in this function)
RSA.xs:317: error: `BN_CTX' undeclared (first use in this function)
RSA.xs:317: error: `ctx' undeclared (first use in this function)
RSA.xs:318: error: `p_minus_1' undeclared (first use in this function)
RSA.xs:319: error: `q_minus_1' undeclared (first use in this function)
RSA.xs:328: error: invalid type argument of `->'
RSA.xs:329: error: invalid type argument of `->'
RSA.xs:344: error: invalid type argument of `->'
RSA.xs:345: error: invalid type argument of `->'
RSA.xs:356: error: invalid type argument of `->'
RSA.xs:357: error: invalid type argument of `->'
RSA.xs:358: error: invalid type argument of `->'
RSA.xs:359: error: invalid type argument of `->'
RSA.xs:360: error: invalid type argument of `->'
RSA.xs:361: error: invalid type argument of `->'
RSA.xs:362: error: invalid type argument of `->'
RSA.xs:376: error: invalid type argument of `->'
RSA.c: In function `XS_Crypt__OpenSSL__RSA__get_key_parameters':
RSA.c:589: error: syntax error before ')' token
RSA.xs:388: error: `RSA' undeclared (first use in this function)
RSA.xs:390: error: invalid type argument of `->'
RSA.xs:391: error: invalid type argument of `->'
RSA.xs:392: error: invalid type argument of `->'
RSA.xs:393: error: invalid type argument of `->'
RSA.xs:394: error: invalid type argument of `->'
RSA.xs:395: error: invalid type argument of `->'
RSA.xs:396: error: invalid type argument of `->'
RSA.xs:397: error: invalid type argument of `->'
RSA.c: In function `XS_Crypt__OpenSSL__RSA_encrypt':
RSA.c:630: error: syntax error before ')' token
RSA.xs:405: error: `RSA_public_encrypt' undeclared (first use in this function)
RSA.xs:405: warning: assignment makes pointer from integer without a cast
RSA.c: In function `XS_Crypt__OpenSSL__RSA_decrypt':
RSA.c:661: error: syntax error before ')' token
RSA.xs:418: error: `RSA_private_decrypt' undeclared (first use in this function)

RSA.xs:418: warning: assignment makes pointer from integer without a cast
RSA.c: In function `XS_Crypt__OpenSSL__RSA_private_encrypt':
RSA.c:696: error: syntax error before ')' token
RSA.xs:431: error: `RSA_private_encrypt' undeclared (first use in this function)

RSA.xs:431: warning: assignment makes pointer from integer without a cast
RSA.c: In function `XS_Crypt__OpenSSL__RSA_public_decrypt':
RSA.c:731: error: syntax error before ')' token
RSA.xs:440: error: `RSA_public_decrypt' undeclared (first use in this function)
RSA.xs:440: warning: assignment makes pointer from integer without a cast
RSA.c: In function `XS_Crypt__OpenSSL__RSA_size':
RSA.c:762: error: syntax error before ')' token
RSA.c: In function `XS_Crypt__OpenSSL__RSA_check_key':
RSA.c:792: error: syntax error before ')' token
RSA.c: In function `XS_Crypt__OpenSSL__RSA_use_md5_hash':
RSA.c:877: error: syntax error before ')' token
RSA.xs:493: error: `NID_md5' undeclared (first use in this function)
RSA.c: In function `XS_Crypt__OpenSSL__RSA_use_sha1_hash':
RSA.c:904: error: syntax error before ')' token
RSA.xs:499: error: `NID_sha1' undeclared (first use in this function)
RSA.c: In function `XS_Crypt__OpenSSL__RSA_use_ripemd160_hash':
RSA.c:1043: error: syntax error before ')' token
RSA.xs:533: error: `NID_ripemd160' undeclared (first use in this function)
RSA.c: In function `XS_Crypt__OpenSSL__RSA_use_no_padding':
RSA.c:1070: error: syntax error before ')' token
RSA.xs:539: error: `RSA_NO_PADDING' undeclared (first use in this function)
RSA.c: In function `XS_Crypt__OpenSSL__RSA_use_pkcs1_padding':
RSA.c:1097: error: syntax error before ')' token
RSA.xs:545: error: `RSA_PKCS1_PADDING' undeclared (first use in this function)
RSA.c: In function `XS_Crypt__OpenSSL__RSA_use_pkcs1_oaep_padding':
RSA.c:1124: error: syntax error before ')' token
RSA.xs:551: error: `RSA_PKCS1_OAEP_PADDING' undeclared (first use in this functi
on)
RSA.c: In function `XS_Crypt__OpenSSL__RSA_use_sslv23_padding':
RSA.c:1151: error: syntax error before ')' token
RSA.xs:557: error: `RSA_SSLV23_PADDING' undeclared (first use in this function)
RSA.c: In function `XS_Crypt__OpenSSL__RSA_sign':
RSA.c:1185: error: syntax error before ')' token
RSA.c: In function `XS_Crypt__OpenSSL__RSA_verify':
RSA.c:1235: error: syntax error before ')' token
RSA.c: In function `XS_Crypt__OpenSSL__RSA_is_private':
RSA.c:1295: error: syntax error before ')' token
dmake.EXE:  Error code 129, while making 'RSA.o'
  IROBERTS/Crypt-OpenSSL-RSA-0.26.tar.gz
  C:\strawberry\c\bin\dmake.EXE -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Failed during this command:
 IROBERTS/Crypt-OpenSSL-Random-0.04.tar.gz    : make NO
 IROBERTS/Crypt-OpenSSL-RSA-0.26.tar.gz       : make NO


--- On Fri, 4/9/10, kmx <kmx@volny.cz> wrote:

> From: kmx <kmx@volny.cz>
> Subject: Re: Spamassassin and openssl
> To: win32-vanilla@perl.org
> Date: Friday, April 9, 2010, 10:30 AM
> Dne 9.4.2010 19:24, Michael Papet
> napsal(a):
> > Hi,
> >
> > I've been a longtime user and now have a new project
> requiring spamassassin. (SA)  One of the many
> dependencies of SA is openssl.  Openssl doesn't build
> with the MinGW supplied by strawberry perl.  It
> configures properly, but doesn't build.
> >
> > Getting openssl to build with MinGW is way above my
> skill set.  Does anyone have some experience getting it
> to build?  Perl needs the header files too, so some of
> the binaries that are out there won't do the job.
> >
> > Otherwise, I'd like to make a strawberry perl openssl
> a feature request.
> >
> > Keep up the great work.
> >   
> 
> OpenSSL is already included in Strawberry Perl - IIRC since
> October 2009
> release.
> 
> --
> kmx
> 




Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About