title: Unable to install the Crypt-SSLeay module
body: <p>I'm creating a web application that requires the use of the perl module Crypt-SSLeay. This module has a dependency of needing OpenSSL headers. Since my Linux server has neither I went through these steps to install, but I'm receiving an error that's hard to understand (see below) because of my limited experience.</p>
  
  <p>Server Information:
  Running Oracle Enterprise Linux<br>
  Linux version 2.6.18-194.11.4.0.1.el5 (mockbuild@ca-build9.us.oracle.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48))</p>
  
  <p>Steps to replicate the issue:<br>
  Downloaded and extracted openssl 0.9.8r from <a href="http://www.openssl.org/source/openssl-0.9.8r.tar.gz" rel="nofollow">here</a> and ran the following commands (after going to the directory)</p>
  
  <pre><code>./config --openssldir=/usr/local/openssl
  make
  make test
  sudo make install
  </code></pre>
  
  <p>Downloaded and extracted the Crypt-SSLeay module from <a href="http://search.cpan.org/CPAN/authors/id/N/NA/NANIS/Crypt-SSLeay-0.58.tar.gz" rel="nofollow">here</a> and then ran the following commands (after going to the directory)</p>
  
  <pre><code> perl Makefile.PL
   make
  </code></pre>
  
  <p>I receive the following error after I run "make":</p>
  
  <pre><code>BUILD INFORMATION
  ================================================
  ssl library: OpenSSL 0.9.8r in /usr/local/openssl
  ssl header:  openssl/ssl.h
  libraries:   -L/usr/local/openssl/lib -lssl -lcrypto -lgcc
  include dir: -I/usr/local/openssl/include
  ================================================
  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] 
  -bash-3.2$ make
  gcc -c  -I/usr/local/openssl/include -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"0.58\" -DXS_VERSION=\"0.58\" -fPIC "-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE"   SSLeay.c
  SSLeay.c: In function ‘XS_Crypt__SSLeay__CTX_new’:
  SSLeay.c:118: warning: unused variable ‘packname’
  SSLeay.c: In function ‘XS_Crypt__SSLeay__Conn_new’:
  SSLeay.c:395: warning: unused variable ‘packname’
  SSLeay.c: In function ‘XS_Crypt__SSLeay__CTX_use_pkcs12_file’:
  SSLeay.c:287: warning: ‘RETVAL’ may be used uninitialized in this function
  Running Mkbootstrap for Crypt::SSLeay ()
  chmod 644 SSLeay.bs
  rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
  gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic SSLeay.o  -o blib/arch/auto/Crypt/SSLeay/SSLeay.so     \
         -L/usr/local/openssl/lib -lssl -lcrypto      \
  
  /usr/bin/ld: /usr/local/openssl/lib/libssl.a(s2_clnt.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
  /usr/local/openssl/lib/libssl.a: could not read symbols: Bad value
  collect2: ld returned 1 exit status
  make: *** [blib/arch/auto/Crypt/SSLeay/SSLeay.so] Error 1
  </code></pre>
  
  <p>I'm not sure what I need to do when I recompile OpenSSL to get this module to work. Any help appreciated.</p>