hi,
I've had Net::SSLeay installed before on debian etch(x86) and everything was working fine.
Now i just installed debian etch(x86_64) and tried to install Net::SSLeay but im getting the folowing error's when i run ./Makefile.PL -t or ./Makefile.PL.
Code:
debian-x86:/home/cookie/Net_SSLeay.pm-1.23# ./Makefile.PL -t
Checking for OpenSSL-0.9.6j or 0.9.7b or newer...
You have OpenSSL-0.9.8d installed in /usr/local/ssl
That's is newer than what this module was tested with (0.9.6j
or 0.9.7b). You should
consider checking if there is a newer release of this module
available. Everything will probably work OK, though.
*** /usr/local/ssl/bin/openssl appears to be compiled with gcc (gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int -DMD5_ASM
) while perl is compiled with cc. Both must be compiled with the same compiler and flags. Mixing and matching compilers is not supported. at ./Makefile.PL line 137.
Writing Makefile for Net::SSLeay::Handle
Writing Makefile for Net::SSLeay
make[1]: Entering directory `/home/cookie/Net_SSLeay.pm-1.23/Net-SSLeay-Handle-0.50'
Manifying ../blib/man3/Net::SSLeay::Handle.3pm
make[1]: Leaving directory `/home/cookie/Net_SSLeay.pm-1.23/Net-SSLeay-Handle-0.50'
cc -c -I/usr/local/ssl/include -I/usr/local/ssl/inc32 -I/usr/kerberos/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DPERL5 -DOPENSSL_NO_KRB5 SSLeay.c
SSLeay.c: In function âXS_Net__SSLeay_state_stringâ:
SSLeay.c:2639: warning: assignment discards qualifiers from pointer target type
SSLeay.c: In function âXS_Net__SSLeay_rstate_stringâ:
SSLeay.c:2657: warning: assignment discards qualifiers from pointer target type
SSLeay.c: In function âXS_Net__SSLeay_state_string_longâ:
SSLeay.c:2675: warning: assignment discards qualifiers from pointer target type
SSLeay.c: In function âXS_Net__SSLeay_rstate_string_longâ:
SSLeay.c:2693: warning: assignment discards qualifiers from pointer target type
SSLeay.c: In function âXS_Net__SSLeay_d2i_SSL_SESSIONâ:
SSLeay.c:3142: warning: passing argument 2 of âd2i_SSL_SESSIONâ from incompatible pointer type
SSLeay.c: In function âXS_Net__SSLeay_alert_desc_stringâ:
SSLeay.c:4891: warning: assignment discards qualifiers from pointer target type
SSLeay.c: In function âXS_Net__SSLeay_alert_desc_string_longâ:
SSLeay.c:4909: warning: assignment discards qualifiers from pointer target type
SSLeay.c: In function âXS_Net__SSLeay_alert_type_stringâ:
SSLeay.c:4927: warning: assignment discards qualifiers from pointer target type
SSLeay.c: In function âXS_Net__SSLeay_alert_type_string_longâ:
SSLeay.c:4945: warning: assignment discards qualifiers from pointer target type
Running Mkbootstrap for Net::SSLeay ()
chmod 644 SSLeay.bs
rm -f blib/arch/auto/Net/SSLeay/SSLeay.so
cc -shared -L/usr/local/lib SSLeay.o -o blib/arch/auto/Net/SSLeay/SSLeay.so \
-L/usr/local/ssl -L/usr/local/ssl/lib -lssl -lcrypto \
/usr/bin/ld: /usr/local/ssl/lib/libssl.a(s2_meth.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1
debian-x86:/home/cookie/Net_SSLeay.pm-1.23#
At the top of this log it says that this module is pretty old comparing to OpenSSL but i also tried Net::SSLeay 1.30 and im getting the same error.
Can someone please help me?
Thanks!