Skip Menu |
 

This queue is for tickets about the Crypt-SSLeay CPAN distribution.

Report information
The Basics
Id: 16735
Status: resolved
Priority: 0/
Queue: Crypt-SSLeay

People
Owner: dland [...] cpan.org
Requestors: imacat [...] mail.imacat.idv.tw
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.51
Fixed in: 0.53



Subject: Failed to Build with OpenSSL 0.9.8
Maybe you have noticed this, but since I haven't saw this on the bug report, I thought I should file one. Crypt::SSLeay failed to build with OpenSSL 0.9.8. Currently I have to return to OpenSSL 0.9.7 in order to install Crypt::SSLeay. But once it's successfully built with OpenSSL 0.9.7, it can run with OpenSSL 0.9.8 smoothly. Sorry I'm not good at XS modules, I cannot submit a fix here. Below is the build log that fails. I hope this helps. Please tell me if you need more information. imacat@rinse build/Crypt-SSLeay-0.51 % perl Makefile.PL Found OpenSSL (version OpenSSL 0.9.8) installed at /usr Which OpenSSL build path do you want to link against? [/usr] ================================================ BUILD INFORMATION ================================================ ssl dir: /usr libraries: -lssl -lcrypto -lgcc -lRSAglue -lrsaref include dir: /usr/include ssl header: openssl/ssl.h ssl candidate: /usr; /usr/include/openssl; OpenSSL 0.9.8 ================================================ 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 imacat@rinse build/Crypt-SSLeay-0.51 % make 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 SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_free': SSLeay.c:187: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_set_cipher_list': SSLeay.c:213: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_use_certificate_file': SSLeay.c:241: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_use_PrivateKey_file': SSLeay.c:269: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_use_pkcs12_file': SSLeay.c:304: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_check_private_key': SSLeay.c:351: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__CTX_set_verify': SSLeay.c:380: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_new': SSLeay.c:422: warning: cast to pointer from integer of different size SSLeay.xs:252: warning: passing argument 2 of 'SSL_set_info_callback' from incompatible pointer type SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_free': SSLeay.c:473: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_set_fd': SSLeay.c:499: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_connect': SSLeay.c:525: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_accept': SSLeay.c:551: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_write': SSLeay.c:583: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_read': SSLeay.c:639: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_get_peer_certificate': SSLeay.c:698: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_get_verify_result': SSLeay.c:724: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_get_shared_ciphers': SSLeay.c:755: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__Conn_get_cipher': SSLeay.c:782: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__X509_free': SSLeay.c:807: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__X509_subject_name': SSLeay.c:834: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__X509_issuer_name': SSLeay.c:866: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__X509_get_notBeforeString': SSLeay.c:896: warning: cast to pointer from integer of different size SSLeay.c: In function 'XS_Crypt__SSLeay__X509_get_notAfterString': SSLeay.c:923: warning: cast to pointer from integer of different size Running Mkbootstrap for Crypt::SSLeay () Manifying blib/man3/Crypt::SSLeay.3 imacat@rinse build/Crypt-SSLeay-0.51 % make test t/net_ssl........dubious Test returned status 0 (wstat 11, 0xb) t/ssl_context....dubious Test returned status 0 (wstat 11, 0xb) FAILED--2 test scripts could be run, alas--no output ever seen make: *** [test_dynamic] Error 255 imacat@rinse build/Crypt-SSLeay-0.51 %
From: Rajeev V. Pillai <rajeevvp [...] yahoo.com?
Download (untitled) / with headers
text/plain 1.1k
On Mon Dec 26 14:28:19 2005, IMACAT wrote: Show quoted text
> Maybe you have noticed this, but since I haven't saw this on the > bug report, I thought I should file one. > > Crypt::SSLeay failed to build with OpenSSL 0.9.8. Currently I > have to return to OpenSSL 0.9.7 in order to install Crypt::SSLeay. > But once it's successfully built with OpenSSL 0.9.7, it can run > with OpenSSL 0.9.8 smoothly. > > Sorry I'm not good at XS modules, I cannot submit a fix here. > Below is the build log that fails. I hope this helps. Please tell > me if you need more information. >
The problem can be fixed by calling SSLeay_add_ssl_algorithms() instead of SSLeay_add_all_algorithms() in the function SSL_CTX_new() in the file SSLeay.xs to initialize the OpenSSL library. Calling SSLeay_add_all_algorithms() causes the C function SSL_CTX_new() to return a NULL which is used by the succeeding functions. The OpenSSL error string resulting from calling SSLeay_add_all_algorithms(), instead of SSLeay_add_ssl_algorithms() is: 26798:error:140A90A1:SSL routines:SSL_CTX_new:library has no ciphers:ssl_lib.c:1424: Rajeev
From: taku
Download (untitled) / with headers
text/plain 125b
change SSLeay.xs::110 if(!bNotFirstTime) { # SSLeay_add_all_algorithms(); SSL_library_init();
Download (untitled) / with headers
text/plain 255b
On Sa. 18. Mär. 2006, 04:39:11, guest wrote: Show quoted text
> change > SSLeay.xs::110 > > if(!bNotFirstTime) { > # SSLeay_add_all_algorithms(); > SSL_library_init();
better use different comment marker: // SSLeay_add_all_algorithms();
Download (untitled) / with headers
text/plain 413b
On Mon May 29 04:21:47 2006, guest wrote: Show quoted text
> On Sa. 18. Mär. 2006, 04:39:11, guest wrote:
> > change > > SSLeay.xs::110 > > > > if(!bNotFirstTime) { > > # SSLeay_add_all_algorithms(); > > SSL_library_init();
> > > better use different comment marker: > > // SSLeay_add_all_algorithms();
I fixed this by inserting "SSL_library_init();" just before line 125 of SSLeay.xs instead.
Download (untitled) / with headers
text/plain 165b
Show quoted text
> I fixed this by inserting "SSL_library_init();" just before line 125 of > SSLeay.xs instead.
FWIW that fixed the "build on OS X 10.4 / Intel" problem for me too.
From: ask [...] develooper.com
Download (untitled) / with headers
text/plain 106b
Show quoted text
> FWIW that fixed the "build on OS X 10.4 / Intel" problem for me too.
eh, "me" being Ask Bjørn Hansen.
From: dyssident
Download (untitled) / with headers
text/plain 637b
Heres the fix process that worked for me: This assumes that youve already tried to install Crypt::SSLeay. We wont build via the cpan app because it will try to download Crypt::SSLeay and overwrite our changes. You need the OpenSSL header files. If youre lucky enough to be running Debian/Ubuntu do `sudo apt-get install libssl-dev` Paste "SSL_library_init();" into line 124 cd ~/.cpan/build/Crypt-SSLeay-0.51 perl Makefile.PL sudo make && sudo make test && sudo make install On Debian/Ubuntu, OpenSSL install dir is /usr, not /usr/local. Please correct these instructions if you have some knowledge of the whole Perl build process.
From: HMBRAND [...] cpan.org
Download (untitled) / with headers
text/plain 520b
On Thu Jun 22 18:43:12 2006, guest wrote: Show quoted text
>
> > FWIW that fixed the "build on OS X 10.4 / Intel" problem for me too.
> > eh, "me" being Ask Bjørn Hansen.
Who is the current maintainer, and can we expect a Crypt-SSLeay-0.52 soon? SUPPORT For use of Crypt::SSLeay & Net::SSL with perl's LWP, please send email to libwww@perl.org COPYRIGHT Copyright (c) 1999-2003 Joshua Chamas. Copyright (c) 1998 Gisle Aas. Last change by Joshua was 10 Jun 2003 http://search.cpan.org/~chamas/Crypt-SSLeay-0.51/
Download (untitled) / with headers
text/plain 620b
On Thu Jul 20 11:04:36 2006, HMBRAND wrote: Show quoted text
> On Thu Jun 22 18:43:12 2006, guest wrote:
> >
> > > FWIW that fixed the "build on OS X 10.4 / Intel" problem for me too.
> > > > eh, "me" being Ask Bjørn Hansen.
> > Who is the current maintainer, and can we expect a Crypt-SSLeay-0.52 > soon?
Hello, I am the new maintainer for Crypt-SSLeay. Could you please try with the latest development version? This is available as D/DL/DLAND/Crypt-SSLeay-0.52_01.tar.gz This distribution is identical to 0.51 except for a one-line change to initialise the SSL library. Let me know if this resovles the problem. Thanks, David
From: IMACAT [...] cpan.org
Download (untitled) / with headers
text/plain 530b
On 2006-12-20 13:19:27 星期三, DLAND wrote: Show quoted text
> I am the new maintainer for Crypt-SSLeay. Could you please try with the > latest development version? This is available as > D/DL/DLAND/Crypt-SSLeay-0.52_01.tar.gz
Hi. This is imacat from Taiwan. I guess you have already seen the test result on 2006-12-19 on my Linux 2.6 x86_64. 0.52_01 has passed the test. http://cpantesters.perl.org/show/Crypt-SSLeay.html#Crypt-SSLeay-0.52_01 http://nntp.x.perl.org/group/perl.cpan.testers/388809 Please tell me if there is any question.
From: dland [...] cpan.org
Download (untitled) / with headers
text/plain 563b
On Thu Dec 21 20:29:41 2006, IMACAT wrote: Show quoted text
> Hi. This is imacat from Taiwan. I guess you have already seen the test > result on 2006-12-19 on my Linux 2.6 x86_64. 0.52_01 has passed the test. > > http://cpantesters.perl.org/show/Crypt-SSLeay.html#Crypt-SSLeay-0.52_01 > http://nntp.x.perl.org/group/perl.cpan.testers/388809
Hi! Thanks imacat, I didn't realise it was you who filed the report. Looking at the report, I guess it means I can close this ticket. And thanks for your CPAN smoking efforts; I for one greatly appreciate your work! Regards, David


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.