[oclug] Apache SSl Compile Problems.... Can anyone help ????
Gilles J. Seguin
segg at infonet.ca
Thu Feb 22 15:13:25 EST 2001
Dave Lewis wrote:
>
> The following is the last few lines of my make... any suggestions..
>
> Redhat 6.2
> Apache 1.3.12
> apache_1.3.12_ssl_1.41
> openssl-0.9.5a-2 (installed via RPM)
> php 3.0.16
>
> ran FixPath patch
> configured apache
does config.cache has been removed before reconfiguring
> configured php (although it happens without php aswell)
> installed php
> configured apache again (as per php install instructions)
>
> make apache and get this at the end
>
> <=== modules
> gcc -c -I./os/unix -I./include -I/usr/local/ssl/include -DLINUX=2
> -DTARGET=\"httpsd\" -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
> -DNO_DL_NEEDED -DAPACHE_SSL `./apaci` modules.c
> gcc -c -I./os/unix -I./include -I/usr/local/ssl/include -DLINUX=2
> -DTARGET=\"httpsd\" -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
> -DNO_DL_NEEDED -DAPACHE_SSL `./apaci` buildmark.c
> gcc -DLINUX=2 -DTARGET=\"httpsd\" -DUSE_HSREGEX -DUSE_EXPAT
> -I./lib/expat-lite -DNO_DL_NEEDED -DAPACHE_SSL `./apaci` \
> -o httpsd buildmark.o modules.o modules/standard/libstandard.a
> modules/ssl/libssl.a
does this thing the same as the one from openssl-devel ?
check with nm(like below)
or -Lssl is missing
> modules/php3/libphp3.a main/libmain.a ./os/unix/libos.a
> ap/libap.a regex/libregex.a lib/expat-lite/libexpat.a
> -Wl,-rpath,/usr/local/lib/mysql -lgd -L/usr/local/lib/mysql -lmysqlclient
> -Lmodules/php3 -L../modules/php3 -L../../modules/php3 -lmodphp3
> -lpam -lm -ldl -lcrypt -lresolv -lm -lcrypt -lgdbm
> -L/usr/local/ssl/lib
$ ls /usr/local/ssl/lib
/usr/lib/libcrypto.a
/usr/lib/libssl.a
> -lssl -lcrypto
> modules/ssl/libssl.a(apache_ssl.o): In function `ReadRandomFiles':
> apache_ssl.o(.text+0x267): undefined reference to `RAND_egd_bytes'
> modules/ssl/libssl.a(apache_ssl.o): In function `ApacheSSLVerifyCallback':
> apache_ssl.o(.text+0x30a): undefined reference to
> `SSL_get_ex_data_X509_STORE_CTX_idx'
$ nm /usr/lib/libssl.a | grep SSL_get_ex_data_X509_STORE_CTX_idx
U SSL_get_ex_data_X509_STORE_CTX_idx
00000004 T SSL_get_ex_data_X509_STORE_CTX_idx
> modules/ssl/libssl.a(apache_ssl.o): In function `InitSSL':
> apache_ssl.o(.text+0x12db): undefined reference to `SSL_library_init'
$ nm /usr/lib/libssl.a | grep SSL_library_init
00000004 T SSL_library_init
> modules/ssl/libssl.a(apache_ssl.o): In function `GetCertificateAndKey':
> apache_ssl.o(.text+0x1c7c): undefined reference to
> `SSL_CTX_set_tmp_rsa_callback'
$ nm /usr/lib/libssl.a | grep SSL_CTX_set_tmp_rsa_callback
00002f50 T SSL_CTX_set_tmp_rsa_callback
> apache_ssl.o(.text+0x1cdb): undefined reference to
> `SSL_add_file_cert_subjects_to_stack'
$ nm /usr/lib/libssl.a | grep SSL_add_file_cert_subjects_to_stack
00000b00 T SSL_add_file_cert_subjects_to_stack
> apache_ssl.o(.text+0x1d1d): undefined reference to
> `SSL_add_dir_cert_subjects_to_stack'
nm /usr/lib/libssl.a | grep SSL_add_dir_cert_subjects_to_stack
00000c50 T SSL_add_dir_cert_subjects_to_stack
> apache_ssl.o(.text+0x1d58): undefined reference to `sk_num'
> modules/ssl/libssl.a(apache_ssl.o): In function `SSLSetupConnection':
> apache_ssl.o(.text+0x2466): undefined reference to
> `SSL_set_session_id_context'
$ nm /usr/lib/libssl.a | grep SSL_set_session_id_context
000004d0 T SSL_set_session_id_context
> collect2: ld returned 1 exit status
> make: *** [target_static] Error 1
> [root at mail src]#
More information about the OCLUG
mailing list