Re: [gnome-db] cygwin update



Fernando Martins wrote:
Margus Všli wrote:
[...]

With libgda, you apply the patch attached (./configure didn't
find postgres libs, but that needs further investigation).

As for the postgres libraries, one of the problems was the name of the
library itself, pq.dll and a second problem is that ./configure assumes both
lib and include are sub-dirs of a common directory, which is not the case in
cygwin: the lib (pq.dll) is /bin and the header (libpq-fe.h) is in
/usr/include/.

See bellow the modifications I made in my ./configure file. They were
working 1 month ago but after returning from holidays I had severe problems

With the cost of making you depend on cygwin psql builds, you could
apply the patch attached to solve the problem at its roots.

Now, for my surprise I found cygwin's glibc dll-s not including
atoll() (but the headers still include them)!?
providers/postgres/utils.c +158
http://sources.redhat.com/ml/cygwin/2001-09/msg00303.html
Any ideas?

regards,
mv
Index: configure.in
===================================================================
RCS file: /cvs/gnome/libgda/configure.in,v
retrieving revision 1.174
diff -u -r1.174 configure.in
--- configure.in	20 Aug 2002 22:40:57 -0000	1.174
+++ configure.in	22 Aug 2002 14:47:00 -0000
@@ -230,6 +230,19 @@
 if test $try_postgres = true
 then
 	AC_MSG_CHECKING(for Postgres files)
+	case $host_os in
+	cygwin*)
+		if test -f /usr/bin/pq.dll && test -f /usr/include/libpq-fe.h
+		then
+			AC_MSG_RESULT(found cygwin Postgres)
+			postgresdir=$dir
+			POSTGRES_LIBS="-lpq"
+			AC_DEFINE(HAVE_POSTGRES)
+		else
+			AC_MSG_WARN(Postgres backend not used)
+		fi	
+	;;
+	*)
 	for d in $dir /usr /usr/local/postgres /opt/postgres /opt/packages/postgres /disk/postgres /usr/local/pgsql
 	do
 		if test -f $d/lib/libpq.so
@@ -259,6 +272,7 @@
 		POSTGRES_LIBS="-L${postgresdir}/lib -lpq"
 		AC_DEFINE(HAVE_POSTGRES)
 	fi
+	esac
 fi
 
 AM_CONDITIONAL(POSTGRES, test x$postgresdir != x)

Attachment: err
Description: application/java-applet



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]