Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Problems installing Crypt:::SSLeay

by mifflin (Curate)
on Jun 14, 2007 at 21:44 UTC ( #621343=note: print w/ replies, xml ) Need Help??


in reply to Problems installing Crypt:::SSLeay

Ok, i can get beyond this error by removing everything at and beyond the "COVER" section in the Make file. But now I get errors that i cannot find some c header files...

erickn@cofjora01d:/home/erickn/Crypt-SSLeay-0.55> make gcc -c -I/usr/local/ssl/include/openssl -I/home/utils/perl/include - +D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.55\" - +DXS_VERSION=\"0.55\" -fPIC "-I/home/utils/perl/lib/perl5/5.8.0/sun4-s +olaris/CORE" SSLeay.c In file included from SSLeay.xs:25: crypt_ssleay_version.h:1:25: openssl/ssl.h: No such file or directory crypt_ssleay_version.h:2:28: openssl/crypto.h: No such file or directo +ry crypt_ssleay_version.h:3:25: openssl/err.h: No such file or directory crypt_ssleay_version.h:4:26: openssl/rand.h: No such file or directory crypt_ssleay_version.h:5:28: openssl/pkcs12.h: No such file or directo +ry 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 funct +ion) SSLeay.xs:50: error: `SSL_ST_CONNECT' undeclared (first use in this fu +nction) SSLeay.xs:52: error: `SSL_ST_ACCEPT' undeclared (first use in this fun +ction) SSLeay.xs:57: error: `SSL_CB_LOOP' undeclared (first use in this funct +ion) SSLeay.xs:58: error: `s' undeclared (first use in this function) SSLeay.xs:60: error: `SSL_CB_ALERT' undeclared (first use in this func +tion) SSLeay.xs:61: error: `SSL_CB_READ' undeclared (first use in this funct +ion) SSLeay.xs:63: error: `ret' undeclared (first use in this function) SSLeay.xs:66: error: `SSL_CB_EXIT' undeclared (first use in this funct +ion) SSLeay.c: In function `XS_Crypt__SSLeay__CTX_new': SSLeay.c:118: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:118: error: `RETVAL' undeclared (first use in this function) SSLeay.xs:102: error: `ctx' undeclared (first use in this function) SSLeay.xs:135: error: `SSL_OP_ALL' undeclared (first use in this funct +ion) SSLeay.xs:137: error: `SSL_VERIFY_NONE' undeclared (first use in this +function) SSLeay.c: In function `XS_Crypt__SSLeay__CTX_free': SSLeay.c:172: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:172: error: `ctx' undeclared (first use in this function) SSLeay.c:176: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__CTX_set_cipher_list': SSLeay.c:193: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:193: error: `ctx' undeclared (first use in this function) SSLeay.c:200: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__CTX_use_certificate_file': SSLeay.c:218: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:218: error: `ctx' undeclared (first use in this function) SSLeay.c:226: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__CTX_use_PrivateKey_file': SSLeay.c:244: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:244: error: `ctx' undeclared (first use in this function) SSLeay.c:252: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__CTX_use_pkcs12_file': SSLeay.c:270: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:270: error: `ctx' undeclared (first use in this function) SSLeay.xs:170: error: `EVP_PKEY' undeclared (first use in this functio +n) SSLeay.xs:170: error: `pkey' undeclared (first use in this function) SSLeay.xs:171: error: `X509' undeclared (first use in this function) SSLeay.xs:171: error: `cert' undeclared (first use in this function) SSLeay.xs:172: error: `ca' undeclared (first use in this function) SSLeay.xs:173: error: `PKCS12' undeclared (first use in this function) SSLeay.xs:173: error: `p12' undeclared (first use in this function) SSLeay.c:285: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__CTX_check_private_key': SSLeay.c:321: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:321: error: `ctx' undeclared (first use in this function) SSLeay.c:327: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__CTX_set_verify': SSLeay.c:345: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:345: error: `ctx' undeclared (first use in this function) SSLeay.c:354: error: syntax error before ')' token SSLeay.xs:212: error: `SSL_VERIFY_NONE' undeclared (first use in this +function) SSLeay.xs:217: error: `SSL_VERIFY_PEER' undeclared (first use in this +function) SSLeay.c: In function `XS_Crypt__SSLeay__Conn_new': SSLeay.c:386: error: `SSL_CTX' undeclared (first use in this function) SSLeay.c:386: error: `ctx' undeclared (first use in this function) SSLeay.xs:231: error: `SSL' undeclared (first use in this function) SSLeay.xs:231: error: `ssl' undeclared (first use in this function) SSLeay.c:391: error: `RETVAL' undeclared (first use in this function) SSLeay.c:395: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__Conn_free': SSLeay.c:440: error: `SSL' undeclared (first use in this function) SSLeay.c:440: error: `ssl' undeclared (first use in this function) SSLeay.c:444: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__Conn_set_fd': SSLeay.c:461: error: `SSL' undeclared (first use in this function) SSLeay.c:461: error: `ssl' undeclared (first use in this function) SSLeay.c:468: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__Conn_connect': SSLeay.c:486: error: `SSL' undeclared (first use in this function) SSLeay.c:486: error: `ssl' undeclared (first use in this function) SSLeay.c:492: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__Conn_accept': SSLeay.c:510: error: `SSL' undeclared (first use in this function) SSLeay.c:510: error: `ssl' undeclared (first use in this function) SSLeay.c:516: error: syntax error before ')' token SSLeay.c: In function `XS_Crypt__SSLeay__Conn_write': SSLeay.c:534: error: `SSL' undeclared (first use in this function) SSLeay.c:534: error: `ssl' undeclared (first use in this function) SSLeay.c:546: 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:373: error: `X509_V_OK' undeclared (first use in this functi +on) 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:383: 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:407: 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:419: 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:429: 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:437: error: invalid type argument of `->' *** Error code 1 make: Fatal error: Command failed for target `SSLeay.o'
But they do exist...
erickn@cofjora01d:/usr/local/ssl/include/openssl> lsf ssl.h crypto.h e +rr.h rand.h pkcs12.h -rw-r--r-- 1 bin bin 22121 Jun 14 09:38 crypto.h -rw-r--r-- 1 bin bin 12493 Jun 14 09:38 err.h -rw-r--r-- 1 bin bin 12677 Jun 14 09:38 pkcs12.h -rw-r--r-- 1 bin bin 5251 Jun 14 09:38 rand.h -rw-r--r-- 1 bin bin 79826 Jun 14 09:39 ssl.h


Comment on Re: Problems installing Crypt:::SSLeay
Select or Download Code
Re^2: Problems installing Crypt:::SSLeay
by almut (Canon) on Jun 14, 2007 at 22:16 UTC
    gcc -c -I/usr/local/ssl/include/openssl -I/home/utils/perl/include . +.. ^^^^^^^ ... In file included from SSLeay.xs:25: crypt_ssleay_version.h:1:25: openssl/ssl.h: No such file or directory ^^^^^^^ ...

    You probably want to fix the include search path to read -I/usr/local/ssl/include. Otherwise - as the includes already have the openssl/ part in their relative path - the compiler would try /usr/local/ssl/include/openssl/openssl/ssl.h, which doesn't exist...

    Not sure how far that would get you, but it's at least worth a try.

      Your suggestion seem to get me over this hump. To do it I had to alter Makefile (again) and change line 118 from

      INC = -I/usr/local/ssl/include/openssl
      to
      INC = -I/usr/local/ssl/include

      This made it so I could do a make

      erickn@cofjora01d:/home/erickn/Crypt-SSLeay-0.55> make gcc -c -I/usr/local/ssl/include -I/home/utils/perl/include -D_LARGEF +ILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.55\" -DXS_VERS +ION=\"0.55\" -fPIC "-I/home/utils/perl/lib/perl5/5.8.0/sun4-solaris/C +ORE" SSLeay.c Running Mkbootstrap for Crypt::SSLeay () chmod 644 SSLeay.bs rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so LD_RUN_PATH="/usr/local/ssl/lib" gcc -G -L/home/utils/perl/lib SSLeay +.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so -L/usr/local/ssl/lib - +lssl -lcrypto chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so cp SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs chmod 644 blib/arch/auto/Crypt/SSLeay/SSLeay.bs Manifying blib/man3/Net::SSL.3 Manifying blib/man3/Crypt::SSLeay.3
      However, the tests fail :-(
      erickn@cofjora01d:/home/erickn/Crypt-SSLeay-0.55> make test PERL_DL_NONLAZY=1 /home/utils/perl/bin/perl "-MExtUtils::Command::MM" +"-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-basic...... # Failed test (t/00-basic.t at line 6) # Tried to use 'Crypt::SSLeay'. # Error: Can't load '/home/erickn/Crypt-SSLeay-0.55/blib/arch/aut +o/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: perl: fa +tal: relocation error: file /home/erickn/Crypt-SSLeay-0.55/blib/arch/ +auto/Crypt/SSLeay/SSLeay.so: symbol OPENSSL_add_all_algorithms_noconf +: referenced symbol not found at /home/utils/perl/lib/perl5/5.8.0/sun +4-solaris/DynaLoader.pm line 229. # at (eval 3) line 2 # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at t/00-basic.t line 6. t/00-basic......ok 4/12 + # Failed test (t/00-basic.t at line 10) t/00-basic......NOK 5# Tried to use 'Crypt::SSLeay::MainContext'. + # Error: Can't locate object method "new" via package "Crypt::SSL +eay::CTX" at /home/erickn/Crypt-SSLeay-0.55/blib/lib/Crypt/SSLeay/Mai +nContext.pm line 15. # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at t/00-basic.t line 10. t/00-basic......ok 9/12Undefined subroutine &main::main_ctx called at +t/00-basic.t line 36. t/00-basic......ok 11/12# Looks like you planned 12 tests but only ran + 11. # Looks like your test died just after 11. t/00-basic......dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1, 5, 12 Failed 3/12 tests, 75.00% okay (less 4 skipped tests: 5 okay, +41.67%) t/01-connect....Can't load '/home/erickn/Crypt-SSLeay-0.55/blib/arch/a +uto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: perl: +fatal: relocation error: file /home/erickn/Crypt-SSLeay-0.55/blib/arc +h/auto/Crypt/SSLeay/SSLeay.so: symbol OPENSSL_add_all_algorithms_noco +nf: referenced symbol not found at /home/utils/perl/lib/perl5/5.8.0/s +un4-solaris/DynaLoader.pm line 229. at /home/erickn/Crypt-SSLeay-0.55/blib/lib/Net/SSL.pm line 19 Compilation failed in require at /home/erickn/Crypt-SSLeay-0.55/blib/l +ib/Net/SSL.pm line 19. Compilation failed in require at t/01-connect.t line 4. BEGIN failed--compilation aborted at t/01-connect.t line 4. # Looks like your test died before it could output anything. t/01-connect....dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-8 Failed 8/8 tests, 0.00% okay t/02-live....... # Failed test (t/02-live.t at line 7) t/02-live.......NOK 1# Tried to use 'Net::SSL'. + # Error: Can't load '/home/erickn/Crypt-SSLeay-0.55/blib/arch/aut +o/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: ld.so.1: perl: fa +tal: relocation error: file /home/erickn/Crypt-SSLeay-0.55/blib/arch/ +auto/Crypt/SSLeay/SSLeay.so: symbol OPENSSL_add_all_algorithms_noconf +: referenced symbol not found at /home/utils/perl/lib/perl5/5.8.0/sun +4-solaris/DynaLoader.pm line 229. # at /home/erickn/Crypt-SSLeay-0.55/blib/lib/Net/SSL.pm line 19 # Compilation failed in require at /home/erickn/Crypt-SSLeay-0.55/blib +/lib/Net/SSL.pm line 19. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at t/02-live.t line 7. # config on solaris # ssl OpenSSL 0.9.8 in /usr/local/ssl # lib -L/usr/local/ssl/lib -lssl -lcrypto -lgcc # inc -I/usr/local/ssl/include/openssl # cc gcc t/02-live.......ok 2/4# Looks like you failed 1 test of 4. + t/02-live.......dubious + Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/4 tests, 75.00% okay (less 1 skipped test: 2 okay, 50 +.00%) Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/00-basic.t 255 65280 12 4 33.33% 1 5 12 t/01-connect.t 255 65280 8 16 200.00% 1-8 t/02-live.t 1 256 4 1 25.00% 1 5 subtests skipped. Failed 3/3 test scripts, 0.00% okay. 12/24 subtests failed, 50.00% oka +y. *** Error code 2 make: Fatal error: Command failed for target `test_dynamic'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://621343]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-04-18 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (472 votes), past polls