./cconfigure --without-dbm would help

From: Date: Sat, 22 Jul 2000 14:54:51 +0000
Subject: ./cconfigure --without-dbm would help
Groups: php.dev 
Request: Send a blank email to php-dev+get-25423@lists.php.net to get a copy of this message
Hi, I'd like to know if adding --without-dbm could be possible (ala --without-gd). I build PHP on a system where I don't need support for dbm, therefore, includes and libs are present and PHP always builds ndbm support and it increases the PHP binary size. I tried configuring with --with-dbm=no --with-ndbm=no but it didn't change anything (neither did --without-nbdm). PHP (200007211345 snapshot) always finds the following: checking for dbm_ochecking for db1/ndbm.h... no checking for gdbm_open in -lgdbm... no checking for dbm_open in -ldb... no checking for dbm_open in -lc... yes checking preferred dbm library... ndbm chosen checking whether to enable DBA... no checking for GDBM support... no checking for NDBM support... no checking for Berkeley DB2 support... no checking for Berkeley DB3 support... no checking for DBM support... no checking for CDB support... no checking whether to enable DBA interface... no I don't configure dba support or dbm support via ./configure (only dBase but it's not related): ./configure --with-config-file-path=/space/www/etc/httpd/conf/php_cgi \ --enable-discard-path \ --with-gd=/u/guest/www/mbin/i386-NetBSD \ --with-mysql \ --with-dbase \ --with-zlib=/u/guest/www/mbin/i386-NetBSD \ --with-mcrypt=/u/guest/www/mbin/i386-NetBSD \ --with-mhash=/u/guest/www/mbin/i386-NetBSD \ --enable-ftp \ --enable-inline-optimization \ --with-jpeg-dir=/u/guest/www/mbin/i386-NetBSD \ --with-imap=/u/guest/www/mbin/i386-NetBSD/lib You can check dbm is active via the following phpinfo() script: http://www.epita.fr:8000/~cahagn_o/php/info.php dbm functions are working but I do not have a dbm base anywhere. You can test the functions are not missing here: http://www.epita.fr:8000/~cahagn_o/php/dbm/ This is on NetBSD 1.3.3, I checked on a RedHat 6.2, it's not automatically included: checking for db1/ndbm.h... yes checking for gdbm_open in -lgdbm... yes checking preferred dbm library... gdbm chosen checking for gdbm.h... yes checking whether to enable DBA... no checking for GDBM support... no checking for NDBM support... no checking for Berkeley DB2 support... no checking for Berkeley DB3 support... no checking for DBM support... no checking for CDB support... no checking whether to enable DBA interface... no but phpinfo() doesn't mention anything about dbm and dblist() returns nothing. Therefore, the script given as an example in the Web documentation works (!). I'm just more and more surprised. :) BTW, should I submit a bug report for the following warnings when compiling: (already sent a mail here but got no answer) file.c:599: warning: tempnam() possibly used unsafely, consider using mkstemp() rfc1867.c:284: warning: tempnam() possibly used unsafely, consider using mkstemp() -- Olivier.Cahagne@epita.fr

« previous php.dev (#25423) next »