From: | Andy Satori <dru(at)druware(dot)com> |
---|---|
To: | Tomas Sk=?ISO-8859-1?B?5A==?=re <tomas(at)nocrew(dot)org>, "Valia V(dot)Vaneeva" <fattie(at)tpu(dot)ru> |
Cc: | <pgsql-odbc(at)postgresql(dot)org> |
Subject: | Re: psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x |
Date: | 2005-03-16 18:53:21 |
Message-ID: | BE5DEAD1.6151%dru@druware.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
This of course assumes that you have updated to a newer iODBC than what is
installed by default with Panther, as the driver now wants the unicode
headers. There is still some concern that this may be true of Tiger as
well.
Andy
On 3/16/05 1:49 PM, "Tomas Skäre" <tomas(at)nocrew(dot)org> pounded the keyboard to
produce:
> Valia V.Vaneeva <fattie(at)tpu(dot)ru> writes:
>
>> Hi,
>>
>> I've tried to compile psqlodbc-08.00.0005 with iODBC (libiodbc-3.52.2)
>> support under Panther.
>>
>> The problem is as follows:
>>
>> gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT odbcapi30w.lo -MD -MP -MF
>> .deps/odbcapi30w.Tpo -c odbcapi30w.c -fno-common -DPIC -o
>> .libs/odbcapi30w.o
>> odbcapi30w.c:238: error: conflicting types for `SQLColAttributeW'
>> /usr/include/sqlucode.h:122: error: previous declaration of
>> `SQLColAttributeW'
>> make[1]: *** [odbcapi30w.lo] Error 1
>> make: *** [all] Error 2
>>
>> How can it be fixed?
>
> This patch will make it compile:
>
> Index: odbcapi30.c
> ===================================================================
> RCS file: /usr/local/cvsroot/psqlodbc/psqlodbc/odbcapi30.c,v
> retrieving revision 1.31
> diff -u -u -r1.31 odbcapi30.c
> --- odbcapi30.c 21 Jul 2004 12:29:58 -0000 1.31
> +++ odbcapi30.c 16 Mar 2005 18:46:19 -0000
> @@ -104,7 +104,7 @@
> SQLColAttribute(HSTMT StatementHandle,
> SQLUSMALLINT ColumnNumber, SQLUSMALLINT
> FieldIdentifier,
> PTR CharacterAttribute, SQLSMALLINT
> BufferLength,
> - SQLSMALLINT *StringLength, PTR
> NumericAttribute)
> + SQLSMALLINT *StringLength, SQLLEN
> *NumericAttribute)
> {
> RETCODE ret;
>
> Index: odbcapi30w.c
> ===================================================================
> RCS file: /usr/local/cvsroot/psqlodbc/psqlodbc/odbcapi30w.c,v
> retrieving revision 1.15
> diff -u -u -r1.15 odbcapi30w.c
> --- odbcapi30w.c 21 Jul 2004 12:29:58 -0000 1.15
> +++ odbcapi30w.c 16 Mar 2005 18:46:19 -0000
> @@ -234,7 +234,7 @@
> SQLPOINTER pCharAttr,
> SQLSMALLINT cbCharAttrMax,
> SQLSMALLINT *pcbCharAttr,
> - SQLPOINTER pNumAttr)
> + SQLLEN *pNumAttr)
> {
> RETCODE ret;
> BOOL alloced = FALSE;
>
>
>
> Greetings,
>
> Tomas
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas =?iso-8859-1?q?Sk=E4re?= | 2005-03-16 18:58:53 | Re: 32-bit ints on 64-bit linux |
Previous Message | Tomas =?iso-8859-1?q?Sk=E4re?= | 2005-03-16 18:49:20 | Re: psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x |