[gnome-db] oracle provider under windows

Andrea Zagli <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <[email protected]>
i managed to compile oracle provider under windows, with instant  
client 10.2.0.5

according to you, is it distribuitable?

i made some changes (attached) to sources

_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list
oracle.patch (text/x-c, 1.8 KB)
diff --git a/m4/oracle.m4 b/m4/oracle.m4
index 2d4c094..bbbf677 100644
--- a/m4/oracle.m4
+++ b/m4/oracle.m4
@@ -105,12 +105,12 @@ m4_define([_ORACLE_CHECK_INTERNAL],
 	do
 	    oracledir=""
 	    AC_MSG_CHECKING([for Oracle files in $d])
-	    if test -f $d/$oracle_loclibdir/libclntsh$oracle_libext
+	    if test -f $d/$oracle_loclibdir/liboci.a
 	    then
   	        save_CFLAGS="$CFLAGS"
-	        CFLAGS="$CFLAGS -I$d/include -I$d/include/oracle/client -I$d/rdbms/demo -I${ORACLE_HOME}/rdbms/public -I${ORACLE_HOME}/plsql/public -I$d/network/public"
+	        CFLAGS="$CFLAGS -I$d/include"
   	        save_LIBS="$LIBS"
-	        LIBS="$LIBS -L$d/$oracle_loclibdir -lm -ldl -lclntsh"
+	        LIBS="$LIBS -L$d/$oracle_loclibdir -lm -loci"
    	        AC_LINK_IFELSE([[
 #include <oci.h>
 int main() {
@@ -126,8 +126,8 @@ int main() {
 	    if test x$oracledir != x
 	    then
 		AC_MSG_RESULT([found])
-		ORACLE_CFLAGS="-I${oracledir}/include -I${oracledir}/include/oracle/client -I${oracledir}/rdbms/demo -I${ORACLE_HOME}/rdbms/public -I${ORACLE_HOME}/plsql/public -I${oracledir}/network/public"
-	    	ORACLE_LIBS="-L${oracledir}/$oracle_loclibdir -lm -ldl -lclntsh"
+		ORACLE_CFLAGS="-I${oracledir}/include"
+	    	ORACLE_LIBS="-L${oracledir}/$oracle_loclibdir -lm -loci"
 		break
   	    else
 	        AC_MSG_RESULT([not found])
diff --git a/providers/oracle/gda-oracle-recordset.c b/providers/oracle/gda-oracle-recordset.c
index 7a429b9..af43a98 100644
--- a/providers/oracle/gda-oracle-recordset.c
+++ b/providers/oracle/gda-oracle-recordset.c
@@ -52,9 +52,10 @@ struct _GdaOracleRecordsetPrivate {
 };
 static GObjectClass *parent_class = NULL;
 
+#include <sys/time.h>
+
 #ifdef GDA_DEBUG
 #define TS_DIFF(a,b) (((b).tv_sec * 1000000 + (b).tv_usec) - ((a).tv_sec * 1000000 + (a).tv_usec))
-#include <sys/time.h>
 #endif
 
 /*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.