X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B09D4475B85 for ; Tue, 4 Feb 2003 17:41:49 -0500 (EST) Received: from HARRIS.memetrics.local (unknown [61.8.29.11]) by postgresql.org (Postfix) with ESMTP id F2327475B07 for ; Tue, 4 Feb 2003 17:41:47 -0500 (EST) Received: from outback.memetrics.local ([192.168.10.203]) by HARRIS.memetrics.local with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id D27DGM0X; Wed, 5 Feb 2003 09:46:59 +1100 Received: (from ap@localhost) by outback.memetrics.local (8.11.6/8.8.7) id h14MfXD02220; Wed, 5 Feb 2003 09:41:33 +1100 X-Authentication-Warning: outback.memetrics.local: ap set sender to Alain.Picard@memetrics.com using -f From: Alain Picard MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15936.16797.475953.234542@outback.memetrics.local> Date: Wed, 5 Feb 2003 09:41:33 +1100 (EST) To: Hiroshi Inoue Cc: Alain Picard , Nick Gorham , Peter Harvey , pgsql-odbc@postgresql.org, claudio.natoli@memetrics.com Subject: Re: unixODBC, PostgreSQL 7.3 + ODBC V3 drivers? In-Reply-To: <3E3F8C0B.C6E195DA@tpf.co.jp> References: <15935.11848.278897.343335@outback.memetrics.local> <3E3F8C0B.C6E195DA@tpf.co.jp> X-Mailer: VM 6.75 under Emacs 20.7.1 X-Attribution: ap Comment: No comment. X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/18 X-Sequence-Number: 2636 >>>>> Hiroshi Inoue writes: Hiroshi> How did you build the driver ? Hiroshi> Did you link odbcapi30.o, pgapi30.o and info30.o ? Yes. Initially I didn't, and got unresolved symbols. What I did was: * check things out from CVS * update by libtool, aclocal, etc to the versions specified in the README.unix file * Issue the following commands psqlodbc % cp /usr/share/aclocal/libtool.m4 . psqlodbc % aclocal -I . -I $PGSRC/config (PGSRC points to a checkout of the PostgreSQL 7.3 sources) psqlodbc % ./configure --prefix=/tmp --with-unixodbc edit config.h and add the line #define ODBCVER 0x351 at the end of it make install Nick Gorham, maintainer of unixODBC, thinks the problem is in psqlodbc; I tend to agree although I'm not sure I understand what's going on. I got psqlodbc to spit out reams of logging and debugging data, which I can send you, if you think it'll help. The upshot right now is that in PGAPI_ColAttributes, the call is falling through to the default case and raising an error; it should return the value 19, which corresponds to the PG Type "Name". As I said; we've got this driver running fine under Windows as a ODBC V3. driver. I'm happy to be your remote debugger and to try things (or patches) if you have any suggestions. -- Alain Picard Memetrics