LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Openssl compile fails (https://www.linuxquestions.org/questions/linux-software-2/apache-openssl-compile-fails-113015/)

rioguia 11-06-2003 08:13 AM

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

ugenn 11-06-2003 12:26 PM

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.

rioguia 11-07-2003 08:13 AM

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.


All times are GMT -5. The time now is 08:29 AM.