Thanks for your suggestions and taking the time to help someone new to Linux.
I believe the solution will be simple however my lack of experience with linux, rpm, compiles and installs is making this difficult for me.
Your ./configuration suggestion is possibly the right way to go.
However I still have some questions.
If I try and recompile with a change in the configuration do I need to uninstall the existing openssl that is installed?
Considering 3 possible ways to move forward.
1. Use a modified configuration setting.
for instance the openssl install suggests this.
./config --openssldir=/usr/local/openssl --prefix=/usr/local
However in Building Linux From scratch they suggest something else.
This suggestion was related to building in patch fixes to openssl
however I figure it could be used to solve my make issues.
./config --openssldir=/etc/ssl --prefix=/usr/local share
If I do recompile with a ./config option which option should be used? Not sure how to decide if one is better than the other.
2. In the openssl install file they talk about a common way to run old and new programs that require openssl.
They talk about using the "openssl/" prefix; for example. #include <openssl/ssl.h>.
They suggest creating a directory "incl" that contains only a symbolic link named "openssl", which points to the "include" directory of OpenSSL.
For example, your application's Makefile might contain the
following rule, if OPENSSLDIR is a pathname (absolute or
relative) of the directory where OpenSSL resides:
incl/openssl:
-mkdir incl
cd $(OPENSSLDIR) # Check whether the directory really exists
-ln -s `cd $(OPENSSLDIR); pwd`/include incl/openssl
You will have to add "incl/openssl" to the dependencies
of those C files that include some OpenSSL header file.
Not sure how to do this. Where would I put the incl directory? Would it go under the /ect or under /usr? Does it matter?
What would I add to the make file of vsftpd? Is it:
incl/openssl:
-mkdir incl
cd $(OPENSSLDIR) # Check whether the directory really exists
-ln -s `cd $(OPENSSLDIR); pwd`/include incl/openssl
3. Include a line in the make file that directs vsftpd where to locate the openssl include files.
Where would this go in the make file? What is the exact command? Vsftpd make currently has
CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
Do I just add "-I/usr/local/ssl/include/openssl" to the end of the CFLAGS command?
To compile an application that uses old filenames -- e.g.
"#include <ssl.h>" --, it will usually be enough to find
the CFLAGS definition in the application's Makefile and
add a C option such as
-I/usr/local/ssl/include/openssl
Thanks for your time and thoughts.
Last edited by todman; 03-01-2006 at 07:52 AM.
|