pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
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
Date: Tue, 02 Nov 2010 06:19:07 +0900
Message-ID: <4CCF2ECB.2050908@tpf.co.jp> (raw)
In-Reply-To: <1288594009.3700.245.camel@panoramix.Askesis.nl>
References: <1288594009.3700.245.camel@panoramix.Askesis.nl>

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



view thread (4+ messages)  latest in thread

Message-ID: <4CCF2ECB.2050908@tpf.co.jp>
Permalink:  ../4CCF2ECB.2050908@tpf.co.jp/
Also on:    postgresql.org/message-id/4CCF2ECB.2050908@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, J.Kraaijeveld@Askesis.nl
  Subject: Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64
  In-Reply-To: <4CCF2ECB.2050908@tpf.co.jp>
  References: <1288594009.3700.245.camel@panoramix.Askesis.nl> <4CCF2ECB.2050908@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox