1829883 Members
11007 Online
109993 Solutions
New Discussion

Perl/SSLeay-Problems

 
Florian George
Occasional Contributor

Perl/SSLeay-Problems

Hello,







I'm facing a problem that turns out to be rather hairy and hope someone



out there can help.







Perl, when dynamically loading Net::SSLeay, exits with:







Can't load



'/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0/auto/Net/SSLeay/SSLeay.sl' for



module Net::SSLeay: Permission denied at



/opt/perl5/lib/5.6.1/PA-RISC2.0/DynaLoader.pm line 206.



at glbl.pl line 11



Compilation failed in require at glbl.pl line 11.



BEGIN failed--compilation aborted at glbl.pl line 11.



Compilation failed in require at



/var/cl/cgi-bin/cl.cgi line 14.







Tracing Perl revealed the following:







[7244] open("/opt/openssl/lib/libcrypto.sl.0.9.6", O_RDONLY, 0) ... = 5



[7244] fstat(5, 0x7f7f1a80) ....................................... = 0



[7244] read(5, "0214010e0512@ \0\0\0\0\0\0\0\0\0".., 128) ......... = 128



[7244] lseek(5, 128, SEEK_SET) .....................................= 128



[7244] read(5, "10\0\004\0\0\0( \013u f4\0\010\0".., 48) .......... = 48



[7244] read(5, "80\0\0\v\0\0\004\0\0\0\0", 12) .................... = 12



[7244] lseek(5, 323584, SEEK_SET) ................................. =



323584



[7244] read(5, "058cy 10\0\00590\0\0c a4\0\0\003".., 112) ......... = 112



[7244] mmap(NULL, 1277952, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 5,



0x4f000) ............................ ERR#13 EACCES



[7244] close(5) ................................................... = 0







Perl, SSLeay and openssl have all been built using hp's ANSI cc B.11.11.04



. Of course, the library is world readable/accessible.







The system is 11.11 64bit, executable_stack is set to 1 - there is no



difference after a chatr +es enable though.







Rtfm for mmap() was interesting but did not enlighten me, either.







At that point I have to admit that I'm stuck and would really appreciate



any helpful hint.







Thanks in advance,







Florian George.
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: Perl/SSLeay-Problems

This is the third time you've posted this question. Instead of re-posting you can reply to your own original question in order to bounce it back to the top.

Hope you find some help soon,
Pete

Pete
Steve Post
Trusted Contributor

Re: Perl/SSLeay-Problems

You say the library is readable/writable. But are the directories (and parent directories), readable and executable?

BEGIN failed--compilation aborted at glbl.pl line 11.
Compilation failed in require at
/var/cl/cgi-bin/cl.cgi line 14.

You checked out these 2 lines right?

I have not worked with the perl module you are talking about (or 11i). But I have seen this error because of directory permissions. (This was after I was careful to make sure the FILES for my perl module had the proper permissions).

steve