Operating System - HP-UX
1823920 Members
3278 Online
109667 Solutions
New Discussion юеВ

Re: Openssl and perl problem

 
SOLVED
Go to solution
Gerard McNeill
Advisor

Openssl and perl problem

Hi all,

I am attempting to build openssl but i am getting the following problem -

$ ./config -DCFLAGS=+z

Operating system: 9000/778-hp-hpux11

Can't locate strict.pm in @INC (@INC contains: /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_pe

rl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl .) at ./Configure line 9.

BEGIN failed--compilation aborted at ./Configure line 9.

Can't locate strict.pm in @INC (@INC contains: /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_pe

rl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl .) at ./Configure line 9.

BEGIN failed--compilation aborted at ./Configure line 9.

This system (hpux-parisc-cc) is not supported. See file INSTALL for details.

$

I have tried to perform an ln -s command to link the location but no joy..

Any ideas

Gerard
29 REPLIES 29
Bill McNAMARA_1
Honored Contributor

Re: Openssl and perl problem

Maybe useful:
http://hpux.cs.utah.edu/hppd/hpux/Languages/openssl-0.9.6d/

Later,
Bill
It works for me (tm)
Dirk Wiedemann
Respected Contributor

Re: Openssl and perl problem

Hello Gerard,

as Bill suggest you can get a precompiled version under the link.
But if you want to compile openssl by yourself: perl5 stays normaly in the directory /opt/perl5/lib/5.6.1, the config tool search in /opt/perl/lib/5.6.1

regards
Dirk
Gerard McNeill
Advisor

Re: Openssl and perl problem

Hi,

Still no joy here.

The perl5.6.1 is in the following directory -

/application/opt/perl/bin/perl5.6.1

but i am getting no joy with installing OpenSSL.

It seems unable to find it!

All suggestions are welcome!!
Gerard
Ollie R
Respected Contributor

Re: Openssl and perl problem

Hi Gerard,

The "config" script looks in the PATH environment variable to locate the perl installation.

It looks for the first PATH entry containing "perl5" and takes the dirname from that.

Please check that the first PATH entry that mentions "perl5" is the correct location and if not then manually edit your "/etc/MANPATH", run ". /etc/MANPATH" and try the compilation again.

Good luck,

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

Re: Openssl and perl problem

Hi Ollie,

Thanks for the reply.

But there is no mention of perl5 in the MANPATH file.

Should i edit the file and put the following directory in /application/opt/bin/perl??

All suggestions welcomed!!
Gerard
Ollie R
Respected Contributor

Re: Openssl and perl problem

Hi Gerard,

Sorry, my brain appears to be on vacation today!

For every "MANPATH" read "PATH".

What do you get when you issue the commands "whereis perl" and "whence perl"?

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

Re: Openssl and perl problem

Ollie,

Here you go -

$whereis perl
perl: /usr/bin/perl /usr/contrib/bin/perl

$whence perl
/usr/bin/perl


Gerard
Dirk Wiedemann
Respected Contributor

Re: Openssl and perl problem

I'm not sure if it's just a typo: is your perl directory named /application/opt/perl/bin/perl5.6.1 or /application/opt/perl/bin/perl/5.6.1 ?
A simple way: if the directory /opt/perl dos not exist, you can create a link with "ln -s /application/opt/perl/bin/perl /opt/perl".

To the MANPATH: afaik it sets only a system wide search path for man pages, not for applications and libraries. Anyway, before changing the files MANPATH and PATH in /etc (and of course new login) you can run tests:
"export MANPATH=/perlverzeichnis:$MANPATH"

and
"export PATH=/perlverzeichnis:$PATH"
and look what happened.

Another test:
run "whereis perl" to find out if you have installed various versions of perl.

regards
Dirk
Ollie R
Respected Contributor

Re: Openssl and perl problem

Hi Gerard,

This is a problem.

Can you tell me, is "/application/opt/perl/bin/perl5.6.1" a directory or a file?

If it's a directory, what is the structure below it?

If it's an executable then there is a major problem with your "perl" installation.

Ollie.
To err is human but to not award points is unforgivable
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
Dirk Wiedemann
Respected Contributor

Re: Openssl and perl problem

For compiling you need an ANSI C compiler (have a look at INSTALL file). It seems Your system use the standard cc compiler bundled with HPUX.
Have you installed the gnu gcc compiler to your system?
Gerard McNeill
Advisor

Re: Openssl and perl problem

As you can see from the swlist -

Ignite-UX-11-00 B.3.3.116 HP-UX Installation Utilities for
Installing 11.00 Systems
LMN-BL 2.00 Logica Mobile Networks BaseLine 0
2
OnlineDiag B.11.00.20.09 HPUX 11.0 Support Tools Bundle, M
ar 2002
QPK1100 B.11.00.56.5 Quality Pack for HP-UX 11.00, Mar
ch 2002
UXCoreMedia B.11.00.02 HP-UX Media Kit (Reference Only.
See Description)
UnlimUserLic B.11.00.02 HP-UX Unlimited-User License
XSWGR1100 B.11.00.47.08 General Release Patches, November
1999 (ACE)
#
# Product(s) not contained in a Bundle:
#

binutils 2.11.2 binutils
bison 1.35 bison
byacc 20001120 byacc
gcc 3.2 gcc
unzip 5.42.2001-06-12 Unzip
#

The gcc s/w is on the box.

So i don't think it is a compiler problem..
Gerard
Dirk Wiedemann
Respected Contributor

Re: Openssl and perl problem

Gerard,

cc is afaik not listet in swlist without options but always there.
Make the following:
export PATH=$PATH:/opt/gcc/bin
ln -s /usr/local/bin/as /usr/bin/as
export CC=c++
and then run make again.

Good luck
...must leave for today

Dirk
Ollie R
Respected Contributor

Re: Openssl and perl problem

Hi Gerard,

I would suggest taking the OpenSSL out of the equation by simplifying the problem.

If you type:

perl -e "use strict;"

it should produce the same problem.

Now you can experiment until the library is found and once this is successful the OpenSSL compilation should also work!

Good luck,

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

Re: Openssl and perl problem

Hello Gerard,

good morning from Germany.
Were you successful?

regards
Dirk