PHP 4.0 Bug #6612: -lgdbm link failure because configure does to add -L/usr/pkg/lib

From: Date: Thu, 07 Sep 2000 19:16:55 +0000
Subject: PHP 4.0 Bug #6612: -lgdbm link failure because configure does to add -L/usr/pkg/lib
Groups: php.dev 
Request: Send a blank email to php-dev+get-32608@lists.php.net to get a copy of this message
From: cahagn_o@epita.fr Operating system: NetBSD 1.4.2 PHP version: 4.0 Latest CVS (07/09/2000) PHP Bug Type: Compile Failure Bug description: -lgdbm link failure because configure does to add -L/usr/pkg/lib Here's a simple bug to solve leading to compile failure: configure finds gdbm.h and compiles the test program fine but forgets to add the path (/usr/pkg/lib) to the Makefile compilation fails with this message: Making all in . /bin/sh /nfs/s5/space/users/guest/www/compil/t/php4-200009071045/libtool --silent --mode=link gcc -I. -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045/ -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045 -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045/main -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045/Zend -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045 -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045/ext/mysql/libmysql -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045/ext/xml/expat/xmltok -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045/ext/xml/expat/xmlparse -I/nfs/s5/space/users/guest/www/compil/t/php4-200009071045/TSRM -I/usr/pkg/include -DXML_BYTE_ORDER=12 -g -O2 -o php -export-dynamic stub.lo libphp4.la ld: -lgdbm: no match collect2: ld returned 1 exit status *** Error code 1 Stop. *** Error code 1 Stop. NetBSD 1.4.2 egcs 2.91.60 snapshot 200009071045 configure line: ./configure --with-config-file-path=/tmp Here's what config.log says: configure:10016: db1/ndbm.h: No such file or directory configure: failed program was: #line 10015 "configure" #include "confdefs.h" #include <db1/ndbm.h> configure:10053: checking for gdbm_open in -lgdbm configure:10072: gcc -o conftest -g -O2 -I/usr/pkg/include -L/usr/pkg/lib conf test.c -lgdbm -lresolv -lm -lcrypt -lresolv 1>&5 configure:10226: checking preferred dbm library configure:10247: checking for gdbm.h configure:10257: gcc -E -I/usr/pkg/include conftest.c >/dev/null 2>conftest.out configure:10537: checking whether to enable DBA configure:10791: checking for GDBM support configure:11026: checking for NDBM support

« previous php.dev (#32608) next »