X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EB40252A7C for ; Wed, 16 Mar 2005 18:54:19 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 03541-08 for ; Wed, 16 Mar 2005 18:53:29 +0000 (GMT) Received: from mail6.atl.registeredsite.com (mail6.atl.registeredsite.com [64.224.219.80]) by svr1.postgresql.org (Postfix) with ESMTP id EEFBD561ED for ; Wed, 16 Mar 2005 18:53:27 +0000 (GMT) Received: from imta02a2.registeredsite.com (imta02a2.registeredsite.com [64.225.255.11]) by mail6.atl.registeredsite.com (8.12.11/8.12.8) with ESMTP id j2GIrM25019801; Wed, 16 Mar 2005 18:53:22 GMT Received: from [192.168.10.104] ([64.51.55.194]) by imta02a2.registeredsite.com with ESMTP id <20050316185322.GRNG7559.imta02a2.registeredsite.com@[192.168.10.104]>; Wed, 16 Mar 2005 13:53:22 -0500 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Wed, 16 Mar 2005 13:53:21 -0500 Subject: Re: psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x From: Andy Satori To: Tomas Sk=?ISO-8859-1?B?5A==?=re , "Valia V.Vaneeva" Cc: Message-ID: In-Reply-To: <80psxzifyn.fsf@junk.nocrew.org> Mime-version: 1.0 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200503/65 X-Sequence-Number: 5083 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=E4re" pounded the keyboard t= o produce: > Valia V.Vaneeva writes: >=20 >> Hi, >>=20 >> I've tried to compile psqlodbc-08.00.0005 with iODBC (libiodbc-3.52.2) >> support under Panther. >>=20 >> The problem is as follows: >>=20 >> 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 >>=20 >> How can it be fixed? >=20 > This patch will make it compile: >=20 > Index: odbcapi30.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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; >=20 > Index: odbcapi30w.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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 =3D FALSE; >=20 >=20 >=20 > Greetings, >=20 > Tomas >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? >=20 > http://www.postgresql.org/docs/faq