1756988 Members
3291 Online
108858 Solutions
New Discussion юеВ

Openssl and perl problem

 
SOLVED
Go to solution
Dirk Wiedemann
Respected Contributor

Re: Openssl and perl problem

just reading your last messages:
run
/usr/bin/perl -v
and
/usr/contrib/bin/perl -v
to check the versions.
Gerard McNeill
Advisor

Re: Openssl and perl problem

Hi Ollie and et al..

Thanks for the reply.

Attached is a file with the answers to your questions.

The file is an executable so it may look that perl is not installed properly!?!

Any ideas?
Gerard
Ollie R
Respected Contributor

Re: Openssl and perl problem

Hi Gerard,

Let's use another way - set the include directories explicitly:

# perl -help

...
-Idirectory specify @INC/#include directory (several -I's allowed)
...

Ollie.
To err is human but to not award points is unforgivable
Dirk Wiedemann
Respected Contributor

Re: Openssl and perl problem

ok, /usr/bin/perl is assumedly a link to /application/opt/perl/bin/perl5.6.1 (type ll /usr/bin/perl to check this). After all this is not a big problem if perl (v5) is running.
The problem is that the config file from openssl didn't find the libraries from perl5 at the expectet point.
Have a look where are your perl libraries:
"find / -name perl5db.pl"

Dirk
Ollie R
Respected Contributor

Re: Openssl and perl problem

Hi,

You need to link "/opt/perl" to the directory containing the perl "lib" directory, maybe "/application/opt/perl" in your case, so that "/opt/perl/lib/5.6.1/strict.pm" finds the right file.

Good luck,

Ollie.
To err is human but to not award points is unforgivable
Gerard McNeill
Advisor

Re: Openssl and perl problem

Hi,

The perl libs are in the following directory -

/application/opt/perl/lib/5.6.1/perl5db.pl

I have tried to link the following directorys -

ln -s /application/opt/perl /opt/perl

But still no joy!!

Any other suggestions??
Gerard
Dirk Wiedemann
Respected Contributor

Re: Openssl and perl problem

Is the link being created and configure doesn't work or can't you create the link?
Gerard McNeill
Advisor

Re: Openssl and perl problem

The link is being created but the configure is still not working.

Still complaining about being unable to find stricit.pm
Gerard
Dirk Wiedemann
Respected Contributor

Re: Openssl and perl problem

Another test:
in openssl source directory type
./config -h
the last line shows which perl is called. Please submit the output.
Dirk
Gerard McNeill
Advisor

Re: Openssl and perl problem

Dirk,

Copied the stricit.rpm from /application/opt/perl/lib/5.6.1 to /opt/perl/lib/5.6.1.

This got the ./config to work.

HOWEVER when i now perform an 'make', i get the following -

$ make
+ rm -f libcrypto
+ rm -f libssl
making all in crypto...
cc -I. -I../include -DTHREADS -D_REENTRANT -DDSO_DL -DCFLAG=+z -D_REENTR
ANT +O3 +Optrs_strongly_typed +Olibcalls -Ae +ESlit -DB_ENDIAN -DBN_DIV2W -DMD32
_XARRAY -c cryptlib.c
(Bundled) cc: warning 480: The +O3 option is available only with the C/ANSI C pr
oduct; ignored.
(Bundled) cc: warning 480: The +Optrs_strongly_typed option is available only wi
th the C/ANSI C product; ignored.
(Bundled) cc: warning 480: The +Olibcalls option is available only with the C/AN
SI C product; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: warning 480: The +ESlit option is available only with the C/ANSI C
product; ignored.
cpp: "cryptlib.c", line 104: warning 2013: Unknown preprocessing directive.
(Bundled) cc: "../include/openssl/stack.h", line 73: warning 5: "const" will bec
ome a keyword
(Bundled) cc: warning 480: The +Olibcalls option is available only with the C/AN
SI C product; ignored.
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: warning 480: The +ESlit option is available only with the C/ANSI C
product; ignored.
cpp: "cryptlib.c", line 104: warning 2013: Unknown preprocessing directive.
(Bundled) cc: "../include/openssl/stack.h", line 73: warning 5: "const" will bec
ome a keyword.
(Bundled) cc: "../include/openssl/stack.h", line 73: error 1000: Unexpected symb
ol: "char".
(Bundled) cc: "../include/openssl/stack.h", line 73: warning 5: "const" will bec
ome a keyword.
(Bundled) cc: "../include/openssl/stack.h", line 73: warning 5: "const" will bec
ome a keyword.
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
$


Gerard