Thread

Posted on Tue Sep 11 22:59:30 2007 by orthogonal
Cannot install Crypt::SSLeay on Solaris 5.10
Hello! Trying to install Crypt::SSLeay on Solaris 5.10 platform. I get following error... I have checked that include dir: -I/usr/local/ssl/include/openssl has all the files like ssl.h, etc. Any suggestions will be greatly apprecieated # perl Makefile.PL ======================================================= Only one OpenSSL installation found at /usr/local/ssl Consider running 'perl Makefile.PL --default' the next time Crypt::SSLeay is upgraded to select this directory automatically thereby avoiding the following prompt. ======================================================= Which SSL install path do you want to use? [/usr/local/ssl] /usr/local/ssl BUILD INFORMATION ================================================ ssl library: OpenSSL 0.9.8 in /usr/local/ssl ssl header: openssl/ssl.h libraries: -L/usr/local/ssl/lib -lssl -lcrypto -lgcc include dir: -I/usr/local/ssl/include/openssl ================================================ Note (probably harmless): No library found for -lgcc Writing Makefile for Crypt::SSLeay The test suite can attempt to connect to public servers to ensure that the code is working properly. If you are behind a strict firewall or have no network connectivity, these tests may fail (through no fault of the code). Do you want to run the live tests (y/N) ? [N] n # make cc -c -I/usr/local/ssl/include/openssl -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xarch=v8 -D_TS_ERRNO -xO3 -xspace -xildoff -DVERSION=\"0.56\" -DXS_VERSION=\"0.56\" -KPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" SSLeay.c "./crypt_ssleay_version.h", line 1: cannot find include file: "openssl/ssl.h" "./crypt_ssleay_version.h", line 2: cannot find include file: "openssl/crypto.h" "./crypt_ssleay_version.h", line 3: cannot find include file: "openssl/err.h" "./crypt_ssleay_version.h", line 4: cannot find include file: "openssl/rand.h" "./crypt_ssleay_version.h", line 5: cannot find include file: "openssl/pkcs12.h" "SSLeay.xs", line 43: syntax error before or at: * "SSLeay.xs", line 43: warning: undefined or missing type for: int "SSLeay.xs", line 43: warning: undefined or missing type for: int "SSLeay.xs", line 48: undefined symbol: where "SSLeay.xs", line 48: undefined symbol: SSL_ST_MASK "SSLeay.xs", line 50: undefined symbol: SSL_ST_CONNECT "SSLeay.xs", line 52: undefined symbol: SSL_ST_ACCEPT "SSLeay.xs", line 57: undefined symbol: SSL_CB_LOOP "SSLeay.xs", line 58: undefined symbol: s "SSLeay.xs", line 60: undefined symbol: SSL_CB_ALERT "SSLeay.xs", line 61: undefined symbol: SSL_CB_READ "SSLeay.xs", line 63: undefined symbol: ret "SSLeay.xs", line 66: undefined symbol: SSL_CB_EXIT "SSLeay.xs", line 67: undefined symbol: ret "SSLeay.xs", line 68: undefined symbol: s "SSLeay.c", line 118: undefined symbol: SSL_CTX "SSLeay.c", line 118: undefined symbol: RETVAL "SSLeay.xs", line 102: undefined symbol: ctx "SSLeay.xs", line 103: syntax error before or at: static "SSLeay.xs", line 107: undefined symbol: bNotFirstTime "SSLeay.xs", line 117: undefined symbol: rand_bytes_read "SSLeay.xs", line 122: undefined symbol: buf "SSLeay.xs", line 135: undefined symbol: SSL_OP_ALL "SSLeay.xs", line 137: undefined symbol: SSL_VERIFY_NONE "SSLeay.c", line 163: cannot recover from previous errors cc: acomp failed for SSLeay.c *** Error code 2 make: Fatal error: Command failed for target `SSLeay.o'
Direct Responses: 6052 | Write a response
Posted on Wed Sep 12 00:21:02 2007 by grinder in response to 6051
Re: Cannot install Crypt::SSLeay on Solaris 5.10

Christ. The formatting rules in the forum really bite. (At least the e-mail I received of your post had sane formatting).

Hello! > Trying to install Crypt::SSLeay on Solaris 5.10 platform. > I get following error... Yes. I have discovered that OpenSSL is installed differently on Solaris (include ddirectory is installed as a sibling directory instead of a child directory) as opposed to FreeBSD or Linux, for example. > I have checked that include dir: -I/usr/local/ssl/include/openssl > has all the files like ssl.h, etc. Any suggestions will be greatly > apprecieated Edit the Makefile directly (scary, I know). Find the line "INC = -I/usr/local/ssl/include/openssl" and replace it by "INC = -I/usr/local/ssl/include" In this way you will anchor the search from one directory upwards, and then the crypt_ssleay_version.h will follow the -I directive and locate the relative files at openssl/*.h. There's some differnces in behaviour between #include "file.h" and #include <file.h> compared to #include "dir/file.h" versus #include <dir/file.h> and it's showing here. # perl Makefile.PL ======================================================= Only one OpenSSL installation found at /usr/local/ssl Consider running 'perl Makefile.PL --default' the next time Crypt::SSLeay is upgraded to select this directory automatically thereby avoiding the following prompt. ======================================================= Which SSL install path do you want to use? [/usr/local/ssl] /usr/local/ssl BUILD INFORMATION ================================================ ssl library: OpenSSL 0.9.8 in /usr/local/ssl ssl header: openssl/ssl.h libraries: -L/usr/local/ssl/lib -lssl -lcrypto -lgcc include dir: -I/usr/local/ssl/include/openssl See how /openssl/ appears both in ssl header and include dir? The C compile winds up looking for /usr/local/ssl/include/openssl/openssl/ssh.h and then all bets are off. I will try to wrap the changes up soon and get a new version released. Thanks for the report and let us know how it goes.
Direct Responses: 6059 | Write a response
Posted on Wed Sep 12 18:32:07 2007 by orthogonal in response to 6052
Re: Cannot install Crypt::SSLeay on Solaris 5.10
Hello there! That worked! Thank you very much. I run into iusse with next step. When running 'make test' I get following. Is this a serious error or can I run 'make install' by ignoring this? Your comments are very much appreciated. # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-basic......ok 4/12 skipped: various reasons t/01-connect....Argument "SSL negotiation failed: at t/01-connect.t line 8\n; at..." isn't numeric in scalar assignment at /opt/ariba/perlmodules/Crypt-SSLeay-0.56/blib/lib/Net/SSL.pm line 162. Argument "SSL negotiation failed: at t/01-connect.t line 8\n; at..." isn't numeric in scalar assignment at /opt/ariba/perlmodules/Crypt-SSLeay-0.56/blib/lib/Net/SSL.pm line 162. Argument "SSL negotiation failed: at t/01-connect.t line 8\n; at..." isn't numeric in scalar assignment at /opt/ariba/perlmodules/Crypt-SSLeay-0.56/blib/lib/Net/SSL.pm line 162. # Failed test (t/01-connect.t at line 22) # SSL negotiation failed: at t/01-connect.t line 8 # ; at t/01-connect.t line 8 # at t/01-connect.t line 8 # at t/01-connect.t line 8 # at t/01-connect.t line 8 t/01-connect....ok 2/8# Looks like you failed 1 tests of 8. t/01-connect....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/8 tests, 87.50% okay (less 7 skipped tests: 0 okay, 0.00%) t/02-live.......ok 1/4# 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 cc t/02-live.......ok 1/4 skipped: Network tests disabled Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/01-connect.t 1 256 8 1 12.50% 1 12 subtests skipped. Failed 1/3 test scripts, 66.67% okay. 1/24 subtests failed, 95.83% okay. *** Error code 29 make: Fatal error: Command failed for target `test_dynamic'
Write a response