when iam trying to compile apache 2.0.54 i get the error below
#./configure --prefix=/usr/local/apache2 --enable-mods-shared=most --enable-deflate --enable-ssl --with-ssl=/usr/local/ssl

#make

Code:
ssl_engine_pphrase.c:684: error: `PEM_F_DEF_CALLBACK' undeclared (first usein this function)
ssl_engine_pphrase.c:684: error: (Each undeclared identifier is reported only once
ssl_engine_pphrase.c:684: error: for each function it appears in.)
make[4]: *** [ssl_engine_pphrase.slo] Error 1
make[4]: Leaving directory `/usr/src/source/server/httpd-2.0.54/modules/ssl'
make[3]: *** [shared-build-recursive] Error 1
make[3]: Leaving directory `/usr/src/source/server/httpd-2.0.54/modules/ssl'
make[2]: *** [shared-build-recursive] Error 1
make[2]: Leaving directory `/usr/src/source/server/httpd-2.0.54/modules'
make[1]: *** [shared-build-recursive] Error 1
make[1]: Leaving directory `/usr/src/source/server/httpd-2.0.54'
make: *** [all-recursive] Error 1

and i installed openssl with the shared lib
#./config --prefix=/usr/local/ssl --shared
#make
#make test
#make install
#openssl version
OpenSSL 0.9.8 05 Jul 2005
ldconfig

i am running slackware 10.1 kernel 2.6.12.5
any idea about that error