Subject Configure error: Freebsd 4.4 + PHP4.3.7 + Firebird 1.5R
Author vladklenoff
4.4-RELEASE FreeBSD
gcc version 3.3.2
Firebird 1.5 Release

./configure \
--with-apxs=/usr/local/www/bin/apxs \
--with-interbase=/usr/local/firebird

path is correct. :)

got:
[...]
checking for InterBase support... yes
checking for isc_detach_database in -lgds... no
checking for isc_detach_database in -lib_util... no
configure: error: libgds or libib_util not found! Check config.log
for more information.

in config.log:

configure:42631: checking for isc_detach_database in -lib_util
configure:42650: gcc -o conftest -g -O2 -R/usr/local/firebird/lib -
L/usr/local/firebird/lib conftest.c -lib
_util -lm 1>&5
/var/tmp//ccAMf79T.o: In function `main':
/home/biber/apache_PHP_FB/php-4.3.7/configure:42646: undefined
reference to `isc_detach_database'
collect2: ld returned 1 exit status
configure: failed program was:
#line 42639 "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() {
isc_detach_database()
; return 0; }


Therefore simple code can't be compiled:
#include "confdefs.h"
int main() {
isc_detach_database()
; return 0; }

with comand line:
gcc -o conftest -g -O2 \
-R/usr/local/firebird/lib -L/usr/local/firebird/lib \
conftest.c -lib_util -lm

Got error:
/var/tmp//ccSqeCpl.o: In function `main':
/test/conftest.c:8: undefined reference to `isc_detach_database'
collect2: ld returned 1 exit status


bash-2.05# ls -l /usr/local/firebird/lib
total 2357
lrwxr-xr-x 1 root firebird 16 6 jun 23:15 libfbclient.so ->
libfbclient.so.1
lrwxr-xr-x 1 root firebird 20 6 jun 23:15 libfbclient.so.1 -
> libfbclient.so.1.5.0
-r-xr-xr-x 1 root firebird 498502 6 jun 23:15
libfbclient.so.1.5.0
lrwxr-xr-x 1 root firebird 15 6 jun 23:15 libfbembed.so ->
libfbembed.so.1
lrwxr-xr-x 1 root firebird 19 6 jun 23:15 libfbembed.so.1 ->
libfbembed.so.1.5.0
-r-xr-xr-x 1 root firebird 1888369 6 jun 23:15 libfbembed.so.1.5.0
lrwxr-xr-x 1 root firebird 13 6 jun 23:15 libgds.so ->
libfbembed.so
lrwxr-xr-x 1 root firebird 15 6 jun 23:15 libgds.so.1 ->
libfbembed.so.1
-r-xr-xr-x 1 root firebird 4313 6 jun 23:15 libib_util.so



will appreciate for any help.

vlad.