[gnome-db] oracle provider under windows
- From: Andrea Zagli <azagli libero it>
- To: gnome-db-list gnome org
- Subject: [gnome-db] oracle provider under windows
- Date: Thu, 30 Dec 2010 11:43:15 +0100
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
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
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]