using libdbi-drivers  0.8.1a and firebird-2.0.0.12654-ReleaseCandidate2 I get 
compilation errors, because firebird2 no longer provides gds.h, as the entire 
user api is in ibase.h.
There are some missing symbols, as some of these have been renamed with an 
ISC_ prefix


TEXT  => ISC_SCHAR

the attached patch solves the problem for firebird2


 
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I/usr/include 
-I/usr/firebird/include -O20 -ffast-math -D_REENTRANT -fsigned-char -MT 
dbd_firebird.lo -MD -MP -MF .deps/dbd_firebird.Tpo -c 
dbd_firebird.c  -fPIC -DPIC -o .libs/dbd_firebird.o
dbd_firebird.c:48:17: error: gds.h: No such file or directory
dbd_firebird.c: In function 'dbd_get_engine_version':
dbd_firebird.c:207: warning: passing argument 2 of 'isc_version' from 
incompatible pointer type
dbd_firebird.c: In function 'dbd_geterror':
dbd_firebird.c:465: error: 'TEXT' undeclared (first use in this function)
dbd_firebird.c:465: error: (Each undeclared identifier is reported only once
dbd_firebird.c:465: error: for each function it appears in.)
dbd_firebird.c:465: error: expected ';' before 'errbuf'
dbd_firebird.c:475: error: 'errbuf' undeclared (first use in this function)
make[3]: *** [dbd_firebird.lo] Error 1
make[3]: Leaving directory `/usr/src/libdbi-drivers-0.8.1/drivers/firebird'


-- 
Regards, Treeve
diff -uNr libdbi-drivers-0.8.1/drivers/firebird/dbd_firebird.c libdbi-drivers-0.8.1.cp/drivers/firebird/dbd_firebird.c
--- libdbi-drivers-0.8.1/drivers/firebird/dbd_firebird.c	2005-09-21 20:17:52.000000000 +0200
+++ libdbi-drivers-0.8.1.cp/drivers/firebird/dbd_firebird.c	2006-05-28 09:22:24.000000000 +0200
@@ -45,7 +45,6 @@
 
 
 #include <ibase.h>
-#include <gds.h>
 
 
 #include "dbd_firebird.h"
@@ -462,7 +461,7 @@
 {
         ibase_conn_t *iconn = conn->connection;
         
-	TEXT errbuf[MAXLEN];
+	ISC_SCHAR errbuf[MAXLEN];
 	long sqlcode;
 
 	if ( conn->connection == NULL) {
diff -uNr libdbi-drivers-0.8.1/drivers/firebird/utility.c libdbi-drivers-0.8.1.cp/drivers/firebird/utility.c
--- libdbi-drivers-0.8.1/drivers/firebird/utility.c	2005-09-21 00:28:11.000000000 +0200
+++ libdbi-drivers-0.8.1.cp/drivers/firebird/utility.c	2006-05-28 09:22:44.000000000 +0200
@@ -14,7 +14,6 @@
 #include <dbi/dbd.h>
 
 #include <ibase.h>
-#include <gds.h>
 
 #include "dbd_firebird.h"
 #include "utility.h"

Attachment: pgpxZ9Q4hChU2.pgp
Description: PGP signature

Reply via email to