[Crypt::SSLeay] make test failed Can't load ........... SSLeay.so

2004-04-06 Thread vinita vigine MURUGIAH
I'm trying to install Crypt:SSLeay

perl : 5.8.1

[EMAIL PROTECTED] Crypt-SSLeay-0.51 [2:126] /usr/local/bin/perl Makefile.PL
No OpenSSL installation found, usually in /usr/local/openssl
Which OpenSSL build path do you want to link against?  
/usr/local/apps/openssl-0.9.7c


BUILD INFORMATION

ssl dir:/usr/local/apps/openssl-0.9.7c
libraries:  -lssl -lcrypto -lgcc -lRSAglue -lrsaref
include dir:/usr/local/apps/openssl-0.9.7c/include
ssl header: openssl/ssl.h
ssl candidate:  /usr/local/apps/openssl-0.9.7c; 
/usr/local/apps/openssl-0.9.7c/include/openssl; OpenSSL 0.9.7



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
[EMAIL PROTECTED] Crypt-SSLeay-0.51 [2:127]
Hope above notes are really not harmfull

[EMAIL PROTECTED] Crypt-SSLeay-0.51 [2:127] make
/opt/SUNWspro/bin/cc -c  -I/usr/local/apps/openssl-0.9.7c/include 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O   
-DVERSION=\0.51\ -DXS_VERSION=\0.51\ -KPIC 
-I/usr/local/apps/perl-5.8.1/lib/5.8.1/i86pc-solaris/CORE   SSLeay.c
SSLeay.xs, line 252: warning: argument #2 is incompatible with prototype:
   prototype: pointer to function(pointer to const struct ssl_st 
{int version, int type, pointer to struct ssl_method_st {..} method, 
pointer to struct bio_st {..} rbio, pointer to struct bio_st {..} wbio, 
pointer to struct bio_st {..} bbio, int rwstate, int in_handshake, 
pointer to function() returning int handshake_func, int server, int 
new_session, int quiet_shutdown, int shutdown, int state, int rstate, 
pointer to struct buf_mem_st {..} init_buf, pointer to void init_msg, 
int init_num, int init_off, pointer to unsigned char packet, unsigned 
int packet_length, pointer to struct ssl2_state_st {..} s2, pointer to 
struct ssl3_state_st {..} s3, int read_ahead, pointer to function(int, 
int, int, pointer to const void, unsigned int, pointer to struct ssl_st 
{..}, pointer to void) returning void msg_callback, pointer to void 
msg_callback_arg, int hit, int purpose, int trust, pointer to struct 
stack_st {..} cipher_list, pointer to struct stack_st {..} 
cipher_list_by_id, pointer to struct evp_cipher_ctx_st {..} 
enc_read_ctx, pointer to const struct env_md_st {..} read_hash, pointer 
to struct comp_ctx_st {..} expand, pointer to struct evp_cipher_ctx_st 
{..} enc_write_ctx, pointer to const struct env_md_st {..} write_hash, 
pointer to struct comp_ctx_st {..} compress, pointer to struct cert_st 
{..} cert, unsigned int sid_ctx_length, array[32] of unsigned char 
sid_ctx, pointer to struct ssl_session_st {..} session, pointer to 
function(pointer to const struct ssl_st {..}, pointer to unsigned char, 
pointer to unsigned int) returning int generate_session_id, int 
verify_mode, int verify_depth, pointer to function(int, pointer to 
struct x509_store_ctx_st {..}) returning int verify_callback, pointer to 
function(pointer to const struct ssl_st {..}, int, int) returning void 
info_callback, int error, int error_code, pointer to struct ssl_ctx_st 
{..} ctx, int debug, long verify_result, struct crypto_ex_data_st {..} 
ex_data, pointer to struct stack_st {..} client_CA, int references, 
unsigned long options, unsigned long mode, long max_cert_list, int 
first_packet, int client_version}, int, int) returning void : 
/usr/local/apps/openssl-0.9.7c/include/openssl/ssl.h, line 1396
   argument : pointer to function(pointer to struct ssl_st {int 
version, int type, pointer to struct ssl_method_st {..} method, pointer 
to struct bio_st {..} rbio, pointer to struct bio_st {..} wbio, pointer 
to struct bio_st {..} bbio, int rwstate, int in_handshake, pointer to 
function() returning int handshake_func, int server, int new_session, 
int quiet_shutdown, int shutdown, int state, int rstate, pointer to 
struct buf_mem_st {..} init_buf, pointer to void init_msg, int init_num, 
int init_off, pointer to unsigned char packet, unsigned int 
packet_length, pointer to struct ssl2_state_st {..} s2, pointer to 
struct ssl3_state_st {..} s3, int read_ahead, pointer to function(int, 
int, int, pointer to const void, unsigned int, pointer to struct ssl_st 
{..}, pointer to void) returning void msg_callback, pointer to void 
msg_callback_arg, int hit, int purpose, int trust, pointer to struct 
stack_st {..} cipher_list, pointer to struct stack_st {..} 
cipher_list_by_id, pointer to struct evp_cipher_ctx_st {..} 
enc_read_ctx, pointer to const struct env_md_st {..} read_hash, pointer 
to struct comp_ctx_st {..} expand, pointer to struct evp_cipher_ctx_st 
{..} enc_write_ctx, pointer to const struct env_md_st {..} write_hash, 
pointer to struct comp_ctx_st {..} compress, pointer to struct cert_st 
{..} cert, unsigned int sid_ctx_length, array[32] 

Re: [Crypt::SSLeay] make test failed Can't load ........... SSLeay.so

2004-04-06 Thread Josh Chamas
vinita vigine MURUGIAH wrote:
[EMAIL PROTECTED] Crypt-SSLeay-0.51 [2:128] make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl -MExtUtils::Command::MM -e 
test_harness(0, 'blib/lib', 'blib/arch') t/*.t
t/net_sslCan't load 
'/mount/autofs/home_tech/vinita/.cpan/build/Crypt-SSLeay-0.51/blib/arch/auto/Crypt/SSLeay/SSLeay.so 
' for module Crypt::SSLeay: ld.so.1: /usr/local/bin/perl: fatal: 
relocation error: file 
/mount/autofs/home_tech/vinita/.cpan/build/Crypt-SSLeay-0.51/blib/arch/auto/Crypt/SSLeay/SSLeay.so: 
symbol __umoddi3: referenced symbol not found at 
/usr/local/apps/perl-5.8.1/lib/5.8.1/i86pc-solaris/DynaLoader.pm line 229.
This might very well be that you need /usr/local/apps/openssl-0.9.7c/lib in your
environment LD_LIBRARY_PATH setting.  Its been a while for me on Solaris,
but I think that is the setting you need.  I am not sure why this is not
in the build notes for Crypt::SSLeay, but if this is the fix for you,
please let me know.  When you set this in your shell, make sure to export it
as well.
If this is not the fix for you, then please let me know that too :-)
__umoddi3 seems familiar to me, so we'll probably figure this out.
Regards,

Josh


Josh Chamas, Founder| NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com   | Apache::ASP - http://www.apache-asp.org