LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-19-2004, 09:52 AM   #1
Lunitari
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
Question Problem compiling Apache 2.0.49 + SSL 0.9.7a-20.2 on RedHat 9


Hello everyone

I've been reading this board for quite a while but I didn't have to ask anything until now. I searched all over and it seems I cannot find a solution to my problem

I have a freshly installed / updated RedHat 9, and I'm trying to compile Apache 2.0.49 on it to be able to install the latest version of PHP.

I'm getting a problem while compiling related to SSL.

I start with:
./configure --enable-so --enable-ssl --with-ssl=/usr --enable-perl

Those are the SSL Packages I have installed:
openssl-0.9.7a-20.2
openssl096b-0.9.6b-15
openssl-perl-0.9.7a-20.2
openssl096-0.9.6-25.9
openssl-devel-0.9.7a-20.2

This is the error I get:

make[3]: Entering directory `/usr/src/httpd-2.0.49/modules/ssl'
/usr/src/httpd-2.0.49/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/src/httpd-2.0.49/srclib/apr/include -I/usr/src/httpd-2.0.49/srclib/apr-util/include -I. -I/usr/src/httpd-2.0.49/os/unix -I/usr/src/httpd-2.0.49/server/mpm/prefork -I/usr/src/httpd-2.0.49/modules/http -I/usr/src/httpd-2.0.49/modules/filters -I/usr/src/httpd-2.0.49/modules/proxy -I/usr/src/httpd-2.0.49/include -I/usr/src/httpd-2.0.49/modules/generators -I/usr/include/openssl -I/usr/src/httpd-2.0.49/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:91,
from mod_ssl.c:26:
/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:91,
from mod_ssl.c:26:
/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:91,
from mod_ssl.c:26:
/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/src/httpd-2.0.49/modules/ssl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/httpd-2.0.49/modules/ssl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/httpd-2.0.49/modules'
make: *** [all-recursive] Error 1

I really don't know what's wrong... The redhat 9 has all the latest updates from the redhat ftp for version 9.

I thought to upgrade OpenSSL and compile it from source, but when I tried removing the package, I got a TON of failed dependencies. Not sure how to fix this problem

Any help would be appreciated!

Thanks!
 
Old 04-19-2004, 03:46 PM   #2
Lunitari
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Anyone has an idea?
 
Old 04-28-2004, 11:29 PM   #3
zeathe
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Re: Problem compiling Apache 2.0.49 + SSL 0.9.7a-20.2 on RedHat 9

Lunitari,

The key is this line in the results of compilation:

/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,

A quick search on krb5.h shows that the file actually belongs to the Kerberos package. RedHat's RPM for Kerberos doesn't seem to put the include files into /usr/include/[package name] like most other RedHat RPMs. I was getting the same error message. Here's the configure string I used which fixed the problem:

CFLAGS="-I/usr/kerberos/include" ./configure --prefix=/usr/local/httpd --enable-so --enable-ssl --with-ssl=/usr/include/openssl

That's CFLAGS equals quote tack capital i -- as in Include. That'll give you the link to krb5.h during compile time that will keep the program from belching up errors. Worked for me.

I stumbled across your message post while googling the answer for myself. Hope this helps.

----Zeathe


Quote:
Originally posted by Lunitari
Hello everyone

I've been reading this board for quite a while but I didn't have to ask anything until now. I searched all over and it seems I cannot find a solution to my problem :(

...............................

In file included from /usr/include/openssl/ssl.h:179,
from mod_ssl.h:91,
from mod_ssl.c:26:
/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:91,
from mod_ssl.c:26:
/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"

...............................

make[3]: *** [mod_ssl.lo] Error 1
make[3]: Leaving directory `/usr/src/httpd-2.0.49/modules/ssl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/httpd-2.0.49/modules/ssl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/httpd-2.0.49/modules'
make: *** [all-recursive] Error 1

I really don't know what's wrong... The redhat 9 has all the latest updates from the redhat ftp for version 9.

I thought to upgrade OpenSSL and compile it from source, but when I tried removing the package, I got a TON of failed dependencies. Not sure how to fix this problem

Any help would be appreciated!

Thanks!
 
Old 05-19-2004, 12:44 AM   #4
naughtymutt
LQ Newbie
 
Registered: Oct 2002
Posts: 23

Rep: Reputation: 15
I have followed the configuration as listed here with the CFLAG for kerberos etc and I have configured apache to get it to work, but I am having continued problems with SSL

It doesnt seem to be installing it and I keep getting errors like....

Invalid command 'SSLEngine', perhaps mis-spelled or defined by a module not included in the server configuration


HELP!!!
 
Old 05-21-2004, 09:12 AM   #5
mitsukoshi
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Zeathe,
thanks - that helped me too.

Naughtymutt,
have you tried

./httpd -l

(the option is an L, not an I)

This will show what modules have really been compiled. You can confirm that you really do have ssl in your build. (If you had a typo in your ./configure that meant ssl didn't get included you would not necessarily get a warning message).

If you do have ssl in your build and still get the SSLEngine warning, I don't know what to suggest. Clutching at straws somewhat, I would suggest you check your ServerRoot directive in httpd.conf to make sure it points to the right place.
 
  


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 SSL problem , please help John Micheal Linux - Software 2 10-31-2004 12:43 PM
Compiling Apache 2.0 with SSL vbfischer Linux - General 3 09-15-2004 02:42 PM
Problem compiling apache 2.0, ssl headers and gcc may be keys. eblakely Red Hat 0 04-16-2004 02:12 PM
Invalid SSL/TLS toolkit base dir error while compiling Apache 2 basse- Linux - Software 2 03-20-2004 12:23 PM
SOLUTION: Apache 2.0 SSL and RedHat GAVollink Linux - Software 0 09-25-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:43 AM.

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
Open Source Consulting | Domain Registration