The redhat SRPM has some patches for that...
Maybe it helps?

--- apache_1.3.3/src/helpers/find-dbm-lib.nondbm        Fri Dec 18 17:55:25 1998
+++ apache_1.3.3/src/helpers/find-dbm-lib       Fri Dec 18 17:59:48 1998
@@ -15,8 +15,6 @@
                DBM_LIB=""
                if ./helpers/TestCompile lib dbm dbm_open; then
                    DBM_LIB="-ldbm"
-               elif ./helpers/TestCompile lib ndbm dbm_open; then
-                   DBM_LIB="-lndbm"
                fi
                if [ "X$DBM_LIB" != "X" ]; then
                    LIBS="$LIBS $DBM_LIB"



Stefanita Vilcu wrote:
> 
> Hello,
> 
> I am trying to compile mod_ssl-2.2.8-1.3.6 on a RedHat 6.0 box  (kernel
> 2.2.6).
> The problem is that the mod_ssl is looking for the ndbm package (header
> and library) which is, on the RH boxes, replaced by the gdbm package.
> Is there any patch for this or I'll have to write it?
> Below is the piece of error.
> 
> ===> src/modules/ssl
> gcc -c  -I../../os/unix -I../../include   -DLINUX=2 -DMOD_SSL=202108
> -DUSE_HSREGEX -DEAPI `../../apaci` -DSSL_COMPAT
> -I/usr/src/openssl-0.9.2b/include -DMOD_SSL_VERSION=\"2.2.8\" mod_ssl.c
> In file included from mod_ssl.c:65:
> mod_ssl.h:282: ndbm.h: No such file or directory
> make[4]: *** [mod_ssl.o] Error 1
> 
> I tried this simple trick:
> [root@test1 apache_1.3.6]# ln -s /usr/include/gdbm.h /usr/include/ndbm.h
> 
> and the compilation seems to work smooth, until:
> gcc -c  -I../../os/unix -I../../include   -DLINUX=2 -DMOD_SSL=202108
> -DUSE_HSREGEX -DEAPI `../../apaci` -DSSL_COMPAT
> -I/usr/src/openssl-0.9.2b/include -DMOD_SSL_VERSION=\"2.2.8\"
> ssl_engine_scache.c
> ssl_engine_scache.c: In function `ssl_scache_dbm_init':
> ssl_engine_scache.c:227: `DBM' undeclared (first use in this function)
> ssl_engine_scache.c:227: (Each undeclared identifier is reported only
> once
> ssl_engine_scache.c:227: for each function it appears in.)
> ssl_engine_scache.c:227: `dbm' undeclared (first use in this function)
> ssl_engine_scache.c: In function `ssl_scache_dbm_store':
> ssl_engine_scache.c:276: `DBM' undeclared (first use in this function)
> ssl_engine_scache.c:276: `dbm' undeclared (first use in this function)
> ssl_engine_scache.c:277: parse error before `dbmkey'
> ssl_engine_scache.c:281: `dbmkey' undeclared (first use in this
> function)
> ssl_engine_scache.c:285: `dbmval' undeclared (first use in this
> function)
> ssl_engine_scache.c:302: `DBM_INSERT' undeclared (first use in this
> function)
> ssl_engine_scache.c: In function `ssl_scache_dbm_retrieve':
> ssl_engine_scache.c:315: `DBM' undeclared (first use in this function)
> ssl_engine_scache.c:315: `dbm' undeclared (first use in this function)
> ssl_engine_scache.c:316: parse error before `dbmkey'
> ssl_engine_scache.c:325: `dbmkey' undeclared (first use in this
> function)
> ssl_engine_scache.c:338: `dbmval' undeclared (first use in this
> function)
> ssl_engine_scache.c: In function `ssl_scache_dbm_remove':
> ssl_engine_scache.c:362: `DBM' undeclared (first use in this function)
> ssl_engine_scache.c:362: `dbm' undeclared (first use in this function)
> ssl_engine_scache.c:363: parse error before `dbmkey'
> ssl_engine_scache.c:366: `dbmkey' undeclared (first use in this
> function)
> ssl_engine_scache.c: In function `ssl_scache_dbm_expire':
> ssl_engine_scache.c:390: `DBM' undeclared (first use in this function)
> ssl_engine_scache.c:390: `dbm' undeclared (first use in this function)
> ssl_engine_scache.c:391: parse error before `dbmkey'
> ssl_engine_scache.c:414: `tNow' undeclared (first use in this function)
> ssl_engine_scache.c:415: `dbmkey' undeclared (first use in this
> function)
> ssl_engine_scache.c:417: `dbmval' undeclared (first use in this
> function)
> ssl_engine_scache.c:424: `tExpiresAt' undeclared (first use in this
> function)
> make[4]: *** [ssl_engine_scache.o] Error 1
> make[3]: *** [all] Error 1
> make[2]: *** [subdirs] Error 1
> make[2]: Leaving directory `/usr/src/apache_1.3.6/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/usr/src/apache_1.3.6'
> make: *** [build] Error 2
> 
> Thank you,
> 
> -vsv
> --
> Stefanita Valeriu Valcu, Network Administrator
> Dynamic Network Technologies
> Calea Victoriei 155, bl. D1, sc. 8, et. 2
> tel: +40-1-2106863 fax: +40-1-3122745 e-mail: [EMAIL PROTECTED]
> ______________________________________________________________________
> Apache Interface to OpenSSL (mod_ssl)  www.engelschall.com/sw/mod_ssl/
> Official Support Mailing List               [EMAIL PROTECTED]
> Automated List Manager                       [EMAIL PROTECTED]

-- 
 Magnus Stenman   mailto:[EMAIL PROTECTED]   http://www.hkust.se

 Get it up, keep it up.  Linux -- Viagra for your PC
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)  www.engelschall.com/sw/mod_ssl/
Official Support Mailing List               [EMAIL PROTECTED]
Automated List Manager                       [EMAIL PROTECTED]

Reply via email to