LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-06-2003, 09:13 AM   #1
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
Apache Openssl compile fails


Description of My Problem and Steps Taken:

Can someone explain why my symlinks do not work? I'm installing Apache with Openssl and Apache on a clean install of Redhat 9.0. Following the tutorial at http://lamps.efactory.de/e-lamps-2-0.shtml, I could not make the symlinks work. As a result, Apache will not compile and complains that it cannot find openssl.

1. I installed openssl first like this:

cd /usr/local/src/lamps/openssl-0.9.7c
./config --prefix=/usr/local/openssl/0.9.7c
make
make test
make install
ln -s /usr/local/openssl/0.9.7b /usr/local/openssl/current
ln -s /usr/local/openssl/current/bin/openssl /usr/local/bin/openssl

[SEE MY NOTE BELOW: THE "b" IS THE PROBLEM. I WAS COMPILING WITH OPENSSL-0.9.7C]

2. The first time i did the above, I did not notice any error. After my apache install failed, I deleted the installed openssl files and tried again.
Upon doing repeats of the symlinks above, i get the following error
message:
ln -s /usr/local/openssl/current/bin/openssl /usr/local/bin/openssl
ln: `/usr/local/bin/openssl': File exists

3. Next I unsuccessfully try to configure the apache install:
cd /usr/local/src/lamps/httpd-2.0.47/
./configure --prefix=/usr/local/apache2/2.0.47 \
--enable-modules=all \
--enable-ssl \
--with-ssl=/usr/local/openssl/current \
--enable-so

"Make" complains that Openssl is not where it's supposed to be. The error
message is:

checking for SSL/TLS toolkit base... configure: error: invalid SSL/TLS
toolkit base directory /usr/local/openssl/current

4. After repeated failures with the symlinks, i try an alternative:

./configure --prefix=/usr/local/apache2/2.0.47 --enable-modules=all
--enable-ssl --with-ssl=/usr/local/openssl/0.9.7c/bin \--enable-so

this works for "make" but ...

5. When i execute "make install" the program exits with errors (see below).

Making all in ssl
make[2]: Entering directory `/usr/local/src/lamps/httpd-2.0.47/modules/ssl'
make[3]: Entering directory `/usr/local/src/lamps/httpd-2.0.47/modules/ssl'
/bin/sh /usr/local/src/lamps/httpd-2.0.47/srclib/apr/libtool --silent
--mode=compile gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-DAP_HAVE_DESIGNATED_INITIALIZER
-I/usr/local/src/lamps/httpd-2.0.47/srclib/apr/include
-I/usr/local/src/lamps/httpd-2.0.47/srclib/apr-util/include -I.
-I/usr/local/src/lamps/httpd-2.0.47/os/unix
-I/usr/local/src/lamps/httpd-2.0.47/server/mpm/prefork
-I/usr/local/src/lamps/httpd-2.0.47/modules/http
-I/usr/local/src/lamps/httpd-2.0.47/modules/filters
-I/usr/local/src/lamps/httpd-2.0.47/modules/proxy
-I/usr/local/src/lamps/httpd-2.0.47/include -I/usr/include/openssl
-I/usr/local/src/lamps/httpd-2.0.47/modules/dav/main -prefer-non-pic
-static -c mod_ssl.c && touch mod_ssl.lo
In file included from /usr/include/openssl/ssl.h:179,
from mod_ssl.h:125,
from mod_ssl.c:60:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
from mod_ssl.h:125,
from mod_ssl.c:60:
/usr/include/openssl/kssl.h:134: parse error before "krb5_enctype"
/usr/include/openssl/kssl.h:136: parse error before '*' token
/usr/include/openssl/kssl.h:137: parse error before '}' token
/usr/include/openssl/kssl.h:149: parse error before "kssl_ctx_setstring"
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:152: parse error before '*' token
/usr/include/openssl/kssl.h:153: parse error before "kssl_ctx_setprinc"
/usr/include/openssl/kssl.h:153: parse error before '*' token
/usr/include/openssl/kssl.h:155: parse error before "kssl_cget_tkt"
/usr/include/openssl/kssl.h:155: parse error before '*' token
/usr/include/openssl/kssl.h:157: parse error before "kssl_sget_tkt"
/usr/include/openssl/kssl.h:157: parse error before '*' token
/usr/include/openssl/kssl.h:159: parse error before "kssl_ctx_setkey"
/usr/include/openssl/kssl.h:159: parse error before '*' token
/usr/include/openssl/kssl.h:161: parse error before "context"
/usr/include/openssl/kssl.h:162: parse error before "kssl_build_principal_2"
/usr/include/openssl/kssl.h:162: parse error before "context"
/usr/include/openssl/kssl.h:165: parse error before "kssl_validate_times"
/usr/include/openssl/kssl.h:165: parse error before "atime"
/usr/include/openssl/kssl.h:167: parse error before "kssl_check_authent"
/usr/include/openssl/kssl.h:167: parse error before '*' token
/usr/include/openssl/kssl.h:169: parse error before "enctype"
In file included from mod_ssl.h:125,
from mod_ssl.c:60:
/usr/include/openssl/ssl.h:909: parse error before "KSSL_CTX"
/usr/include/openssl/ssl.h:909: warning: no semicolon at end of struct or
union
/usr/include/openssl/ssl.h:931: parse error before '}' token
make[3]: *** [mod_ssl.lo] Error 1
make[3]: Leaving directory `/usr/local/src/lamps/httpd-2.0.47/modules/ssl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/lamps/httpd-2.0.47/modules/ssl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/lamps/httpd-2.0.47/modules'
make: *** [all-recursive] Error 1

Last edited by rioguia; 11-07-2003 at 09:19 AM.
 
Old 11-06-2003, 01:26 PM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
have u added /usr/local/openssl/0.9.7c/lib to your ld.so.conf file and ran ldconfig?

if it still didnt work, try *hack*
ln -s /usr/lib/libssl.a /usr/local/openssl/0.9.7c/lib/libssl.a
ln -s /usr/lib/libcrypto.a /usr/local/openssl/0.9.7c/lib/libcrypto.a

before running configure. ugly but works for me.
 
Old 11-07-2003, 09:13 AM   #3
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
thanks your hack does work. i also made it work correctly with the symlinks. i wrote to the author of the how-to i was using and he noted that i had a symlink to an old version of the openssl software that came with red hat. thus, when i erased my compiled install to start over, the old symlink still remained.

After,

rm /usr/local/bin/openssl

and replication of the instructed symlinks, the compile on apache goes great.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache 2.0.55 & openssl 0.9.8 error? ziggie216 Linux - Software 4 11-27-2005 09:37 PM
OpenSSL + Apache certificate, how? The_Nerd Linux - Software 2 12-26-2004 10:18 PM
compile php with openssl problem rmang Linux - Software 1 01-23-2004 10:14 AM
OpenSSL Apache 2 RedHat 8 bfdlinux Linux - Security 2 07-25-2003 10:18 AM
Openssl and apache huno Linux - General 1 04-21-2003 03:06 PM


All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration