[NBLUG/talk] install Crypt::SSLeay Mandrivia

Walter Hansen gandalf at sonic.net
Thu Aug 3 22:53:32 PDT 2006


Mark Street wrote:
> Did you install the perl-Crypt-SSLeay rpm?  Your description of the
> problem is a bit hard to follow.
> 
> Usually if I cannot find the proper package I use the cpan shell.  Just
> type in cpan at the prompt and follow the yellow brick road.
> 
> 
> Walter Hansen wrote:
>> I'm working on a mandrivia box (a colo at sonic).
>>
>> I'm banging my head on this one.
>>
>> It's got openssl installed via stock mandrake rpms.
>>
>> I'm trying to get the Crypt::SSLeay perl module to load allowing perl to
>> grab secure stuff off the web.
>>
>> But I can't seem to get the perl module to pick up on it. It's looking for
>> *.h files. I think I've used urpmi to install all of the devel packages,
>> but I could be wrong.
>>
>> It looks pretty straightforward if I install from source, but can't
>> breaking ssl knock me out of ssl session (locking me out of the server)
>> and affect the running https sites?
>>
>> I wonder about leaving the rpm in place and installing from source in a
>> non standard location, but I'm not experinced with that.
> 
> 
> _______________________________________________
> talk mailing list
> talk at nblug.org
> http://nblug.org/cgi-bin/mailman/listinfo/talk
> 
> 


Probably should post this. It doesn't much seem to matter what directory 
I enter. I'm sure its looking for sources.

cpan> install Crypt::SSLeay
Running install for module Crypt::SSLeay
Running make for C/CH/CHAMAS/Crypt-SSLeay-0.51.tar.gz
WARNING: This key is not certified with a trusted signature!
Primary key fingerprint: 2E66 557A B97C 19C7 91AF  8E20 328D A867 450F 89EC
Signature for /root/.cpan/sources/authors/id/C/CH/CHAMAS/CHECKSUMS ok
Checksum for 
/root/.cpan/sources/authors/id/C/CH/CHAMAS/Crypt-SSLeay-0.51.tar.gz ok
Crypt-SSLeay-0.51/
Crypt-SSLeay-0.51/t/
Crypt-SSLeay-0.51/t/net_ssl.t
Crypt-SSLeay-0.51/t/ssl_context.t
Crypt-SSLeay-0.51/lib/
Crypt-SSLeay-0.51/lib/Crypt/
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/MainContext.pm
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/Conn.pm
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/X509.pm
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/Err.pm
Crypt-SSLeay-0.51/lib/Crypt/SSLeay/CTX.pm
Crypt-SSLeay-0.51/lib/Net/
Crypt-SSLeay-0.51/lib/Net/SSL.pm
Crypt-SSLeay-0.51/certs/
Crypt-SSLeay-0.51/certs/ca-bundle.crt
Crypt-SSLeay-0.51/certs/notacakeynopass.pem
Crypt-SSLeay-0.51/certs/notacacert.pem
Crypt-SSLeay-0.51/MANIFEST
Crypt-SSLeay-0.51/typemap
Crypt-SSLeay-0.51/MANIFEST.SKIP
Crypt-SSLeay-0.51/SSLeay.pm
Crypt-SSLeay-0.51/CHANGES
Crypt-SSLeay-0.51/lwp-ssl-test
Crypt-SSLeay-0.51/net_ssl_test
Crypt-SSLeay-0.51/SSLeay.xs
Crypt-SSLeay-0.51/README
Crypt-SSLeay-0.51/Makefile.PL
Removing previously used /root/.cpan/build/Crypt-SSLeay-0.51
Package came without SIGNATURE


   CPAN.pm: Going to build C/CH/CHAMAS/Crypt-SSLeay-0.51.tar.gz

No OpenSSL installation found, usually in /usr/local/openssl
Which OpenSSL build path do you want to link against?  /usr/bin
Apparently no SSLeay installation at '/usr/bin'
Are you sure you got it correct????

================================================
BUILD INFORMATION
================================================

ssl dir:        /usr/bin
libraries:      -lssl -lcrypto -lgcc -lRSAglue -lrsaref
include dir:    /usr/bin/include
ssl header:     ssl.h
ssl candidate:  /usr/bin; /usr/bin/include

================================================

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lgcc
Note (probably harmless): No library found for -lRSAglue
Note (probably harmless): No library found for -lrsaref
Writing Makefile for Crypt::SSLeay
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/bin/perl5.8.7 /usr/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap 
/usr/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemap  SSLeay.xs > 
SSLeay.xsc && mv SSLeay.xsc SSLeay.c
gcc -c  -I/usr/bin/include -DPERL_DISABLE_PMC -fno-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 
-fomit-frame-pointer -march=i586 -mtune=pentiumpro   -DVERSION=\"0.51\" 
-DXS_VERSION=\"0.51\" -fPIC "-I/usr/lib/perl5/5.8.7/i386-linux/CORE" 
SSLeay.c
In file included from SSLeay.xs:25:
crypt_ssleay_version.h:1:17: error: ssl.h: No such file or directory
crypt_ssleay_version.h:2:20: error: crypto.h: No such file or directory
In file included from crypt_ssleay_version.h:3,
                  from SSLeay.xs:25:
/usr/include/err.h:38: error: conflicting types for 'Perl_vwarn'
/usr/lib/perl5/5.8.7/i386-linux/CORE/proto.h:823: error: previous 
declaration of 'Perl_vwarn' was here
crypt_ssleay_version.h:4:18: error: rand.h: No such file or directory
crypt_ssleay_version.h:5:20: error: pkcs12.h: No such file or directory
SSLeay.xs:43: error: syntax error before '*' token
SSLeay.xs: In function 'InfoCallback':
SSLeay.xs:48: error: 'where' undeclared (first use in this function)
SSLeay.xs:48: error: (Each undeclared identifier is reported only once
SSLeay.xs:48: error: for each function it appears in.)
SSLeay.xs:48: error: 'SSL_ST_MASK' undeclared (first use in this function)
SSLeay.xs:50: error: 'SSL_ST_CONNECT' undeclared (first use in this 
function)
SSLeay.xs:52: error: 'SSL_ST_ACCEPT' undeclared (first use in this function)
SSLeay.xs:57: error: 'SSL_CB_LOOP' undeclared (first use in this function)
SSLeay.xs:58: error: 's' undeclared (first use in this function)
SSLeay.xs:59: error: 'SSL_CB_ALERT' undeclared (first use in this function)
SSLeay.xs:61: error: 'SSL_CB_READ' undeclared (first use in this function)
SSLeay.xs:62: error: 'ret' undeclared (first use in this function)
SSLeay.xs:66: error: 'SSL_CB_EXIT' undeclared (first use in this function)
SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_new':
SSLeay.c:120: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:120: error: 'RETVAL' undeclared (first use in this function)
SSLeay.xs:104: error: 'ctx' undeclared (first use in this function)
SSLeay.xs:133: error: 'SSL_OP_ALL' undeclared (first use in this function)
SSLeay.xs:136: error: 'SSL_VERIFY_NONE' undeclared (first use in this 
function)
SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_free':
SSLeay.c:173: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:173: error: 'ctx' undeclared (first use in this function)
SSLeay.c:177: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_set_cipher_list':
SSLeay.c:194: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:194: error: 'ctx' undeclared (first use in this function)
SSLeay.c:201: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_use_certificate_file':
SSLeay.c:219: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:219: error: 'ctx' undeclared (first use in this function)
SSLeay.c:227: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_use_PrivateKey_file':
SSLeay.c:245: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:245: error: 'ctx' undeclared (first use in this function)
SSLeay.c:253: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_use_pkcs12_file':
SSLeay.c:271: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:271: error: 'ctx' undeclared (first use in this function)
SSLeay.xs:172: error: 'EVP_PKEY' undeclared (first use in this function)
SSLeay.xs:172: error: 'pkey' undeclared (first use in this function)
SSLeay.xs:173: error: 'X509' undeclared (first use in this function)
SSLeay.xs:173: error: 'cert' undeclared (first use in this function)
SSLeay.xs:174: error: 'ca' undeclared (first use in this function)
SSLeay.xs:175: error: 'PKCS12' undeclared (first use in this function)
SSLeay.xs:175: error: 'p12' undeclared (first use in this function)
SSLeay.c:286: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_check_private_key':
SSLeay.c:325: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:325: error: 'ctx' undeclared (first use in this function)
SSLeay.c:331: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_set_verify':
SSLeay.c:349: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:349: error: 'ctx' undeclared (first use in this function)
SSLeay.c:358: error: syntax error before ')' token
SSLeay.xs:217: error: 'SSL_VERIFY_NONE' undeclared (first use in this 
function)
SSLeay.xs:221: error: 'SSL_VERIFY_PEER' undeclared (first use in this 
function)
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_new':
SSLeay.c:389: error: 'SSL_CTX' undeclared (first use in this function)
SSLeay.c:389: error: 'ctx' undeclared (first use in this function)
SSLeay.xs:235: error: 'SSL' undeclared (first use in this function)
SSLeay.xs:235: error: 'ssl' undeclared (first use in this function)
SSLeay.c:394: error: 'RETVAL' undeclared (first use in this function)
SSLeay.c:398: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_free':
SSLeay.c:443: error: 'SSL' undeclared (first use in this function)
SSLeay.c:443: error: 'ssl' undeclared (first use in this function)
SSLeay.c:447: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_set_fd':
SSLeay.c:464: error: 'SSL' undeclared (first use in this function)
SSLeay.c:464: error: 'ssl' undeclared (first use in this function)
SSLeay.c:471: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_connect':
SSLeay.c:489: error: 'SSL' undeclared (first use in this function)
SSLeay.c:489: error: 'ssl' undeclared (first use in this function)
SSLeay.c:495: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_accept':
SSLeay.c:513: error: 'SSL' undeclared (first use in this function)
SSLeay.c:513: error: 'ssl' undeclared (first use in this function)
SSLeay.c:519: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_write':
SSLeay.c:537: error: 'SSL' undeclared (first use in this function)
SSLeay.c:537: error: 'ssl' undeclared (first use in this function)
SSLeay.c:549: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_read':
SSLeay.c:590: error: 'SSL' undeclared (first use in this function)
SSLeay.c:590: error: 'ssl' undeclared (first use in this function)
SSLeay.c:603: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_get_peer_certificate':
SSLeay.c:655: error: 'SSL' undeclared (first use in this function)
SSLeay.c:655: error: 'ssl' undeclared (first use in this function)
SSLeay.c:656: error: 'X509' undeclared (first use in this function)
SSLeay.c:656: error: 'RETVAL' undeclared (first use in this function)
SSLeay.c:660: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_get_verify_result':
SSLeay.c:679: error: 'SSL' undeclared (first use in this function)
SSLeay.c:679: error: 'ssl' undeclared (first use in this function)
SSLeay.c:684: error: syntax error before ')' token
SSLeay.xs:377: error: 'X509_V_OK' undeclared (first use in this function)
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_get_shared_ciphers':
SSLeay.c:704: error: 'SSL' undeclared (first use in this function)
SSLeay.c:704: error: 'ssl' undeclared (first use in this function)
SSLeay.c:713: error: syntax error before ')' token
SSLeay.xs:388: warning: assignment makes pointer from integer without a cast
SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_get_cipher':
SSLeay.c:732: error: 'SSL' undeclared (first use in this function)
SSLeay.c:732: error: 'ssl' undeclared (first use in this function)
SSLeay.c:738: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__X509_free':
SSLeay.c:757: error: 'X509' undeclared (first use in this function)
SSLeay.c:757: error: 'cert' undeclared (first use in this function)
SSLeay.c:761: error: syntax error before ')' token
SSLeay.c: In function 'XS_Crypt__SSLeay__X509_subject_name':
SSLeay.c:778: error: 'X509' undeclared (first use in this function)
SSLeay.c:778: error: 'cert' undeclared (first use in this function)
SSLeay.c:786: error: syntax error before ')' token
SSLeay.xs:412: warning: assignment makes pointer from integer without a cast
SSLeay.c: In function 'XS_Crypt__SSLeay__X509_issuer_name':
SSLeay.c:808: error: 'X509' undeclared (first use in this function)
SSLeay.c:808: error: 'cert' undeclared (first use in this function)
SSLeay.c:816: error: syntax error before ')' token
SSLeay.xs:424: warning: assignment makes pointer from integer without a cast
SSLeay.c: In function 'XS_Crypt__SSLeay__X509_get_notBeforeString':
SSLeay.c:838: error: 'X509' undeclared (first use in this function)
SSLeay.c:838: error: 'cert' undeclared (first use in this function)
SSLeay.c:844: error: syntax error before ')' token
SSLeay.xs:434: error: invalid type argument of '->'
SSLeay.c: In function 'XS_Crypt__SSLeay__X509_get_notAfterString':
SSLeay.c:863: error: 'X509' undeclared (first use in this function)
SSLeay.c:863: error: 'cert' undeclared (first use in this function)
SSLeay.c:869: error: syntax error before ')' token
SSLeay.xs:442: error: invalid type argument of '->'
make: *** [SSLeay.o] Error 1
   /usr/bin/make  -- 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:
   CHAMAS/Crypt-SSLeay-0.51.tar.gz              : make NO

cpan>




More information about the talk mailing list