Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 571271337B2F for ; Mon, 1 Nov 2010 18:19:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 82987-06 for ; Mon, 1 Nov 2010 21:19:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 6905C1337B3E for ; Mon, 1 Nov 2010 18:19:10 -0300 (ADT) Received: (qmail 23623 invoked by uid 512); 1 Nov 2010 21:19:09 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 1 Nov 2010 21:19:09 -0000 Received: from unknown (HELO ?192.168.24.51?) (183.76.21.68) by sd.tpf.co.jp with SMTP; 1 Nov 2010 21:19:09 -0000 Message-ID: <4CCF2ECB.2050908@tpf.co.jp> Date: Tue, 02 Nov 2010 06:19:07 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: J.Kraaijeveld@Askesis.nl CC: pgsql-odbc@postgresql.org Subject: Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 References: <1288594009.3700.245.camel@panoramix.Askesis.nl> In-Reply-To: <1288594009.3700.245.camel@panoramix.Askesis.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.158 tagged_above=-10 required=5 tests=BAYES_05=-0.5, DNS_FROM_RFC_BOGUSMX=1.668, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: * X-Archive-Number: 201011/2 X-Sequence-Number: 10487 HI, (2010/11/01 15:46), Joost Kraaijeveld wrote: > Hi, > > I am trying to compile 08.04.0200 on Debian Squeeze AMD64 with unix-odbc > 2.2.14p2-1, hoping to get a working version of SQLForeignKeys hich > return nothing when I use 08.03.0200. > > The compilation however fails with: > > ... > odbcapi.c: At top level: > odbcapi.c:1115: error: expected declaration specifiers or '...' before 'SQLROWSETSIZE' > odbcapi.c:1110: error: conflicting types for 'SQLExtendedFetch' > /usr/include/sqlext.h:1857: note: previous declaration of 'SQLExtendedFetch' was here > odbcapi.c: In function 'SQLExtendedFetch': > odbcapi.c:1133: error: 'pcrow' undeclared (first use in this function) > odbcapi.c:1133: error: (Each undeclared identifier is reported only once > odbcapi.c:1133: error: for each function it appears in.) > > > The actual declaration in /usr/include/sqlext.h is: > > SQLRETURN SQL_API SQLExtendedFetch( > SQLHSTMT hstmt, > SQLUSMALLINT fFetchType, > SQLLEN irow, > SQLULEN *pcrow, > SQLUSMALLINT *rgfRowStatus); > > whereas the driver is expecting: > > RETCODE SQL_API > SQLExtendedFetch( > HSTMT hstmt, > SQLUSMALLINT fFetchType, > SQLLEN irow, > #ifdef WITH_UNIXODBC > SQLROWSETSIZE *pcrow, > #else > SQLULEN *pcrow, > #endif /* WITH_UNIXODBC */ > SQLUSMALLINT *rgfRowStatus) > > I have checked unix-odbc 2.3 (the latest release I believe) but that > version contains the same definition for SQLExtendedFetch > > Is there a solution for this problem? Or can I just remove/change the > #ifdef in this case (including in the function definition of course) > without getting into any problems? Could you plaese try 9.00.0200? regards, Hiroshi Inoue