Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenSSL Installation Problem

Status
Not open for further replies.

cwong

Programmer
Aug 8, 2001
4
IE
Installation on : Red Hat Linux release 6.2
Packages : apache_1.3.12+ssl_1.41.tar.gz; openssl-0.9.6b.tar.gz

originaly trying to configure SSL for IBMHTTP Server(Apache). Needed mod file mod_ibm_ssl_128.so(& mod_ibm_ssl.c), I think this needs to be generated on the Linux Platform (am I right?).
To generate this apparently I need to install OpenSSL.
A new set of problems have now cropped up, namely installing OpenSSL.
The Install file illustrates how I should install it.
Steps:-
1. ./config
2. make
3. make test
4. make install

./config seemed to have run fine. After a few days of pulling my hair out..i.e it was falling over at the make command, as I didn't have it. I received the RPM and installed it along with the gcc compiler.

now make is failing(step 2), below is the output.
/*******************************************
[root@t253c076 openssl-0.9.6b]# make
+ rm -f libcrypto.so.0
+ rm -f libcrypto.so
+ rm -f libcrypto.so.0.9.6
+ rm -f libssl.so.0
+ rm -f libssl.so
+ rm -f libssl.so.0.9.6
making all in crypto...
make[1]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto'
making all in crypto/md2...
make[2]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto/md2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto/md2'
making all in crypto/md4...
make[2]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto/md4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto/md4'
making all in crypto/md5...
make[2]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto/md5'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto/md5'
making all in crypto/sha...
make[2]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto/sha'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto/sha'
making all in crypto/mdc2...
make[2]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto/mdc2'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto/mdc2'
making all in crypto/hmac...
make[2]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto/hmac'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto/hmac'
making all in crypto/ripemd...
make[2]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto/ripemd'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto/ripemd'
making all in crypto/des...
make[2]: Entering directory `/usr/openssl/openssl-0.9.6b/crypto/des'
gcc -I.. -I../../include -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H
-DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -DSHA1_ASM -DMD5_ASM -
DRMD160_ASM -c -o read_pwd.o read_pwd.c
read_pwd.c: In function `des_read_pw':
read_pwd.c:281: warning: implicit declaration of function `fileno'
read_pwd.c: In function `pushsig':
read_pwd.c:405: storage size of `sa' isn't known
read_pwd.c:422: warning: implicit declaration of function `sigaction'
read_pwd.c:422: invalid use of undefined type `struct sigaction'
read_pwd.c:405: warning: unused variable `sa'
read_pwd.c: In function `popsig':
read_pwd.c:448: invalid use of undefined type `struct sigaction'
read_pwd.c: At top level:
read_pwd.c:202: storage size of `savsig' isn't known
make[2]: *** [read_pwd.o] Error 1
make[2]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto/des'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/usr/openssl/openssl-0.9.6b/crypto'
make: *** [sub_all] Error 1
/*******************************************

I had to copy C header files over from a Solaris box, which solved a good few problems. Now it seems to be having a problem with the methods int the C files themselves(As you can see from the ouput above)

Please can anyone help?
- CW
 
Hi,

Why not just grab the binary openssl rpm and install that ? --> ftp://rpmfind.net/linux/redhat/updates/6.2/en/os/i386/openssl-0.9.5a-7.6.x.i386.rpm

Rgds

 
Hi, thanks for your the quick response,
I downloaded that rmp, and tried to install but I'm getting the following error.Would this have anything to do with the version of RedHat installed(6.2)?Originaly I was trying to install openssl-0.9.6b.
Or am I running the install wrong?

[root@t253c076 /usr]# rpm -i openssl-0.9.5a-7.6.x.i386.rpm
error: failed dependencies:
rpmlib(PayloadFilesHavePrefix) <= 4.0-1 is needed by openssl-0.9.5a-7.6.
x
:) CW
 
Hi,

Hmmm.. Have you updated the 'rpm' package itself ? Redhat 6.2 had rpm version 3.x.x whereas the latest is version 4.0.3 . The rpm database format changed with version 4.0.1 and maybe you can't install packages that were created with version 3.x.x (although I believe you should be able to).

Try to rebuild the rpm database with :

rpm --rebuild

& try again. You can use 'rpm -Uvvh openssl-0.9.5a-7.6.x.i386.rpm' to get lots of diagnostics as it runs.

'rpm -q rpm' will tell you what version of rpm you have. You could also try installing the most recent version of openssl :
ftp://rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/openssl-0.9.6-3.i386.rpm

Rgds
 
You will need to install the updated rpm package-. there is
really no way around that-also with RH 6.2 and ssl you may run into problems with your glibc version.
 
Hi,
Just dicovered that about the glibc versions. When I try to update the RPM I get :-

[root@/usr]# rpm --rebuild rpm-4.0.2-6x.src.rpm
Installing rpm-4.0.2-6x.src.rpm
only packages with major numbers <= 3 are supported by this version of RPM


Then I tried :-
[root@/usr]# rpm --upgrade --force rpm-4.0.2-6x.i386.rpm
error: failed dependencies:
libdb-3.1.so is needed by rpm-4.0.2-6x


so, as far as I can tell, the 6.2 glibc contains file libdb-2.1.3.so and the dependency file libdb-3.1.so is for RH 7?
Will it be possible to update the glib version on RH6.2 using the RH 7 package?
-CW
 
Hi,

Firstly the rpm ending with src.rpm is a source code rpm - do you really want that?

libdb-3.1.so is provided by package 'db3'.

Try downloading the following two rpms to a separate directory :

ftp://rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/rpm-4.0.2-8.i386.rpm
ftp://rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/db3-3.1.17-7.i386.rpm

Then cd to that directory and install packages together with 'rpm -Uvh *.rpm' .

There are quite a few dependencies for 'rpm' so you may get more errors - I wouldn't advise using --force to ignore dependencies because what you then install probably just won't work.

Also, I'm still unclear what version of rpm you're using now -- what does 'rpm -q rpm' say ?

Rgds

 
Hi,

Just spotted a typo in my earlier post - should have said try rebuilding the rpm database with :

rpm --rebuilddb

(not rpm --rebuild) oops!

Rgds
 
Hi,
rpm -q rpm gives rpm-3.0.4-0.48

-CW
 
Hi,

In that case the original error means that the rpm you were trying to install was built with rpm 4.x (seems odd for a rh6.2 rpm but in fact the build date was July 2001 ! which explains it).

You could either

(i) try an older rpm - e.g. ftp://rpmfind.net/linux/redhat/updates/6.1/en/os/i386/openssl-0.9.5a-2.6.x.i386.rpm (built in Nov 2000)

(ii) get the src rpm and try to build it yourself but you'd probably get similar errors to your original compile errors...

(iii) upgrade the rpm package on your system to version 4.x.x. .

I'd try option (i) first ....

Rgds
 
Read my faq in this forum about setting up openssl and apache. Maybe that will help. Rninja

smlogo.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top