I'm installing perl module net-ssleay. I tried using cpan and source but
encounter the same issue. I've already compiled openssl with -fPIC
attribute. Here is the some output of on net-ssleay

[root@qmail Net-SSLeay-1.36]# perl Makefile.PL
Cannot determine perl version info from lib/Net/SSLeay.pm
Cannot determine license info from lib/Net/SSLeay.pm
*** Found OpenSSL-0.9.8r installed in /usr/local/ssl
*** Be sure to use the same compiler and options to compile your OpenSSL,
perl,
    and Net::SSLeay. Mixing and matching compilers is not supported.
Do you want to run external tests?
These tests *will* *fail* if you do not have network connectivity. [n]
Writing Makefile for Net::SSLeay
Writing MYMETA.yml

Here is the snippet on the output of make

rm -f blib/arch/auto/Net/SSLeay/SSLeay.so
LD_RUN_PATH="/usr/lib" cc  -shared -O2 -L/usr/local/lib -fstack-protector
SSLeay.o  -o blib/arch/auto/Net/SSLeay/SSLeay.so      \
           -L/usr/local/ssl -L/usr/local/ssl/lib -lssl -lcrypto -lz     \

/usr/bin/ld: /usr/local/ssl/lib/libcrypto.a(x86_64cpuid.o): relocation
R_X86_64_PC32 against `OPENSSL_cpuid_setup' can not be used when making a
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1

I've already installed this 3 yrs. ago with no problem but it is on a x86
architecture. I'm now  using 64bit CentOS 5.6. perl version is 5.14
(latest). I've also created symlink of libssl.so to libssl.sl on both
/usr/lib64 and /usr/lib. openssl and perl was installed from source so I
believe gcc is my compiler.

Any hint how to resolve this?

Thanks,


Nelson
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to