X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 68D994758E1 for ; Tue, 4 Feb 2003 19:34:36 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 2C312474E42 for ; Tue, 4 Feb 2003 19:34:35 -0500 (EST) Received: (qmail 19115 invoked from network); 5 Feb 2003 00:34:37 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 5 Feb 2003 00:34:37 -0000 Received: from tpf.co.jp (3dgateway1 [126.0.1.60]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id JAA05081; Wed, 5 Feb 2003 09:34:36 +0900 (JST) Message-ID: <3E405CB2.6163F291@tpf.co.jp> Date: Wed, 05 Feb 2003 09:37:06 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Alain Picard Cc: Nick Gorham , Peter Harvey , pgsql-odbc@postgresql.org, claudio.natoli@memetrics.com Subject: Re: unixODBC, PostgreSQL 7.3 + ODBC V3 drivers? References: <15935.11848.278897.343335@outback.memetrics.local> <3E3F8C0B.C6E195DA@tpf.co.jp> <15936.16797.475953.234542@outback.memetrics.local> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/19 X-Sequence-Number: 2637 Alain Picard wrote: > > >>>>> 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. I checked unixODBC sources a little. ISTM unixODBC checks the existence of the function SQLColAttributes and if it exists, it calls SQLColAttributes( not SQLColAttribute) passing through the Field Identifier parameter. Is it right ? regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/