Boo,

First I'll twack myself for the fact that I didn't look at the openssl
version any sooner...
This is prolly at least one nice for the archives for other donkeys
hitting their heads against this brick...

I wanted a newer version than the 2.0.16 beta's to experiment some more
with Apache 2.0..
so I pulled down http://dev.apache.org/dist/httpd-2_0_25-alpha.tar.gz
and tried to compile it with
--enable-ssl --with-openssl=/usr/include/openssl/ and such on a almost
standard FreeBSD 4.2 box which
comes with the "old" OpenSSL 0.9.5a, ./configure etc go just fine untill
the make pops up the following error:
8<-----------
modules/ssl/.libs/mod_ssl.al(ssl_engine_kernel.lo): In function
`bio_hook_set':
/usr/home/www/compile/httpd-2_0_25/modules/ssl/ssl_engine_kernel.c:264:
undefined reference to `BIO_next'
----------->8
And after some more tries and peeking at google I finally noticed that
my "old" OpenSSL version (twack me :)
Also http://www.openssl.org/docs/crypto/BIO_find_type.html nicely
states:

8<--------------------------
NOTES
BIO_next() was added to OpenSSL 0.9.6 to provide a 'clean' way to
traverse a BIO chain or find multiple matches using BIO_find_type().
Previous versions had to use:  next = bio->next_bio;
-------------------------->8

Then added the following after the "#include <openssl/ssl.h>" in
modules/ssl/ssl_engine_kernel.c:
8<------------
#ifndef BIO_next
#define BIO_next(b) b->next_bio;
#endif
-------------->8
Ran another make..... et tada it compiled :)

I'd better upgrade my OpenSSL sooner or later though :)

[03/Oct/2001 01:37:59 91292] [info]  Connection: Client IP:
3ffe:8114:2000:240:2d0:b7ff:fe8f:5d42, Protocol: SSLv3, Cipher: RC4-MD5
(128/128 bits)

But it works ;)
Next-stop... stability tests & mod_proxy <grin>

Greets,
 Jeroen

Reply via email to