pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedCompile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64
4+ messages / 2 participants
[nested] [flat]
* Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64
@ 2010-11-01 06:46 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2010-11-01 21:19 ` Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 4+ messages in thread
From: Joost Kraaijeveld @ 2010-11-01 06:46 UTC (permalink / raw)
To: pgsql-odbc
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?
TIA
--
Met vriendelijke groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Attachments:
signature.asc (application/pgp-signature, 197B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64
2010-11-01 06:46 Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2010-11-01 21:19 ` Hiroshi Inoue <inoue@tpf.co.jp>
2010-11-01 21:33 ` Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
0 siblings, 1 reply; 4+ messages in thread
From: Hiroshi Inoue @ 2010-11-01 21:19 UTC (permalink / raw)
To: J.Kraaijeveld@Askesis.nl; +Cc: pgsql-odbc
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64
2010-11-01 06:46 Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2010-11-01 21:19 ` Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Hiroshi Inoue <inoue@tpf.co.jp>
@ 2010-11-01 21:33 ` Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2010-11-01 22:01 ` Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 4+ messages in thread
From: Joost Kraaijeveld @ 2010-11-01 21:33 UTC (permalink / raw)
To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc
On Tue, 2010-11-02 at 06:19 +0900, Hiroshi Inoue wrote:
>
> Could you plaese try 9.00.0200?
I did and it compiled without any problem.
Just two questions:
1. Is it correct that there is just 1 .so-file build (psqlodbcw.so)?
2. Does the 9.00.0200 driver work with PostgreSQL 8.4?
TIA
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64
2010-11-01 06:46 Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2010-11-01 21:19 ` Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Hiroshi Inoue <inoue@tpf.co.jp>
2010-11-01 21:33 ` Re: Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
@ 2010-11-01 22:01 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 4+ messages in thread
From: Hiroshi Inoue @ 2010-11-01 22:01 UTC (permalink / raw)
To: J.Kraaijeveld@Askesis.nl; +Cc: pgsql-odbc
(2010/11/02 6:33), Joost Kraaijeveld wrote:
> On Tue, 2010-11-02 at 06:19 +0900, Hiroshi Inoue wrote:
>>
>> Could you plaese try 9.00.0200?
> I did and it compiled without any problem.
>
> Just two questions:
>
> 1. Is it correct that there is just 1 .so-file build (psqlodbcw.so)?
Yes. Please type configure --disable-unicode so as to get ANSI version.
> 2. Does the 9.00.0200 driver work with PostgreSQL 8.4?
Yes.
regards,
HIroshi Inoue
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-11-01 22:01 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-01 06:46 Compile error 08.04.0200 with unix-odbc 2.2.14p2-1 on Debian Squeeze AMD64 Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2010-11-01 21:19 ` Hiroshi Inoue <inoue@tpf.co.jp>
2010-11-01 21:33 ` Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
2010-11-01 22:01 ` Hiroshi Inoue <inoue@tpf.co.jp>
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