in reply to Re^2: Crypt::SSLeay problem after upgrading to 5.10
in thread Crypt::SSLeay problem after upgrading to 5.10

cc -c  -I/usr/local/ssl/include/openssl -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"0.57\" -DXS_VERSION=\"0.57\"
-fPIC "-I/usr/local/lib/perl5/5.10.0/i686-linux/CORE"   SSLeay.c
In file included from SSLeay.xs:25:
crypt_ssleay_version.h:1:25: error: openssl/ssl.h: No such file or directory

It doesn't find the header(s) because it's looking in /usr/local/ssl/include/openssl/openssl/ssl.h — i.e. one openssl path fragment too much. (The relative path fragment from the #include "openssl/ssl.h" directive is simply being appended to any search paths specified via -I)

It's probably easiest to just move the openssl include directory into /usr/local/include, as that's already specified on the compiler's command line (-I/usr/local/include).

Replies are listed 'Best First'.
Re^4: Crypt::SSLeay problem after upgrading to 5.10
by jkeenan1 (Deacon) on Jan 07, 2008 at 19:34 UTC
    No luck.

    Found multiple possibilities for OpenSSL /usr/local (OpenSSL 0.9.8) /usr/local/ssl (OpenSSL 0.9.8) Which SSL install path do you want to use? [/usr/local] BUILD INFORMATION ================================================ ssl library: OpenSSL 0.9.8 in /usr/local ssl header: openssl/ssl.h libraries: -L/usr/local/../lib -lssl -lcrypto -lgcc include dir: -I/usr/local/include/openssl ================================================ Checking if your kit is complete... Looks good 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] 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.p +m 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/local/bin/perl /usr/local/lib/perl5/5.10.0/ExtUtils/xsubpp -type +map /usr/local/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap SS +Leay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c cc -c -I/usr/local/include/openssl -fno-strict-aliasing -pipe -I/usr/ +local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERS +ION=\"0.57\" -DXS_VERSION=\"0.57\" -fPIC "-I/usr/local/lib/perl5/5.10 +.0/i686-linux/CORE" 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/../lib" cc -shared -O2 -L/usr/local/lib SSLea +y.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so \ -L/usr/local/../lib -lssl -lcrypto \ /usr/bin/ld: cannot find -lssl collect2: ld returned 1 exit status make: *** [blib/arch/auto/Crypt/SSLeay/SSLeay.so] Error 1 DLAND/Crypt-SSLeay-0.57.tar.gz /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: DLAND/Crypt-SSLeay-0.57.tar.gz : make NO

    Jim Keenan