Subject php config error with option --with-interbase
Author melvinhcox
[Main message previously posted to firebird-support]


The syntax I am using is:

./configure --prefix=/wwwroot/php --with-apxs2=/wwwroot/bin/apxs --
with-config-file-path=/wwwroot/php --with-

The following segment is culled from the config.log:

int main() {
; return 0; }
configure:49437: checking for isc_detach_database in -lib_util
configure:49456: gcc -o conftest -I/usr/include -g -O2 -Wl,-
rpath,/opt/firebird/lib -L/opt/firebird/lib -L/usr/lib conftest.c -
lib_util -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lib_util
collect2: ld returned 1 exit status
configure: failed program was:
#line 49445 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char isc_detach_database();

int main() {
; return 0; }

Note: The same behavior has been observed when attempting
configuration using:





I am attempting to restore connectivity between an Apache based
webserver and a remote Firebird 1.5.x database server using php. Both
the client and server run under LINUX (Fedora Core).

For reasons beyond my knowledge, I am unable to configure php5.x to
use the --with-interbase option.


Error Message:

configure: error: libgds, libib_util or libfbclient not found! Check
config.log for more information.


FYI, my research shows a bug report (28750) for this problem was
logged with the PHP Group in July of 2004.

The bug report was, however, rejected by the PHP Group with a
notation that the problem was caused by 'broken interbase .so's'.


I have successfully reinstalled an Apache 2.x webserver under a
freshly installed Linux (Fedora Core 4) operating system. All
current operating system patches have been applied.

Following's documentation for a client-only install
under Linux, I have copied from the server
machine's /opt/firebire/lib directory into the /usr/lib directory of
the client machine.

I have also created chained symlinks using the following commands:

ln -s /usr/lib/ /usr/lib/
ln -s /usr/lib/ /usr/lib/
ln -s /usr/lib/ /usr/lib/
ln -s /usr/lib/ /usr/lib/

The firebird.msg file from the server installation has been copied to
the /opt/firebird directory on the client machine.

The FIREBIRD environment variable has been created on the client
machine and ponted to /opt/firebird.

Apache 2.x and PHP 5.x have been successfully installed and tested. I
need now to add the --with-interbase extension.


In attempting to configure php to use the --with-interbase option, I
have repeatedly hit the following error:

configure: error: libgds, libib_util or libfbclient not found! Check
config.log for more information.


I have been unable to resolve or to workaround this problem. I've
literally tried 'everything' (including twice reinstalling the
operating system and all patches), over a 24+ hour period...

I am deeply appreciative of any expert assistance that can be lent in
resolving this issue (and educating this user).

The previous installation done 2+ years ago, compiled without