Page 1 of 1

None default openssl path

Posted: Fri Jan 21, 2005 9:13 pm
by Psadi
Im trying to set up a ircd server on a shell box. Im not the one who got the shell but im helping out. The server is FreeBSD 4.9 with gcc 2.95 :?

They have openssl and I compile Unrealircd 3.2.2b with it and not giving any path to openssl it gives me this error
[!!!] OpenSSL version mismatch: compiled for 'OpenSSL 0.9.7e 25 Oct 2004', library is 'OpenSSL 0.9.7c-p1 30 Sep 2003'
[!!!] Header<->library mismatches can make UnrealIRCd *CRASH*! Make sure you don't have multiple versions of openssl or zlib install
I then dl open ssl and compiled it so I got it to /home/user/usr/ I there now have 4 sub directories bin/ include/ lib/ openssl/

I added $HOME/usr/bin to the path, and when I run Config it I pointed openssl to $HOME/usr/ and $HOME/usr/bin but I get the same error as before.

How should I do to be able to use the openssl that I compiled instead of the one that is on the server?[/quote]

Posted: Sat Jan 22, 2005 5:04 am
by codemastr
When unreal asks you to specify the directory to openssl, specify that directory.

Posted: Sun Jan 23, 2005 9:31 am
by Psadi
Hmm this bugs me

When I compile openssl I run the config like this
./Config --openssldir=/home/user/usr/openssl
I then run make, make test and finaly make install all goes well.

I then run the config for unreal and I state in openssl directory
/home/user/usr/openssl
And this still gives me the above error about missmatach.

The document for openssl says that all the libs and includes should be in the /home/user/usr/openssl and they are and if I understand you Codmaster this is the directory it should point to.

Posted: Sun Jan 23, 2005 6:17 pm
by Darvocet
Psadi wrote:Hmm this bugs me ... And this still gives me the above error about missmatach.
From my experience (same error on BSD) this was caused because the admin of the server upgraded the version of BSD. I'm then assuming that because of the server upgrade (this is like a kernel upgrade) was made on an already running server it installed new copies of OpenSSL, and didn't delete the old ones. Manually uninstalling OpenSSL after the upgrade didn't help to fix the problem at all. I have not been able to reinstall unreal on this machine yet, and I'm assuming that a fresh install of the OS will solve the problem.

Darvocet.

Posted: Sun Jan 23, 2005 9:08 pm
by codemastr
Psadi wrote:Hmm this bugs me

When I compile openssl I run the config like this
./Config --openssldir=/home/user/usr/openssl
I then run make, make test and finaly make install all goes well.
And who told you to do that? Certainly not the documentation! There is no --openssldir option for ./Config.

./Config contains a question asking if you want SSL. If you say yes, it will then prompt you for a directory. THAT is where you enter the directory.

Posted: Mon Jan 24, 2005 6:54 am
by Psadi
I was unclear there Codemaster.

When I complile OPENSSL i run the OPENSSL Config to put the openssl into directory /home/user/usr/openssl by
./Config --openssldir=/home/user/usr/openssl
This will according to the OPENSSL document put all the files into the given diroctory. After the config make, make test and make install is run and all says ok for the installation.


When I run ./Config for Unreal 3.2.2b i put this path to OPENSSL
/home/user/usr/openss
when it prompts me for the the OPENSSL directory. After the config, make and make install with no errors it will still lead to a missmatch in the headers when I start unreal.

Does Unreal still search outside this directory that I have given to it?

Is this clearer to what I have done?