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 4B3D956648 for ; Wed, 16 Mar 2005 18:49:26 +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 02040-08 for ; Wed, 16 Mar 2005 18:49:22 +0000 (GMT) Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by svr1.postgresql.org (Postfix) with ESMTP id DAB8456482 for ; Wed, 16 Mar 2005 18:49:20 +0000 (GMT) Received: from junk.nocrew.org ([213.115.110.204] [213.115.110.204]) by mxfep01.bredband.com with ESMTP id <20050316184920.XKWS7011.mxfep01.bredband.com@junk.nocrew.org>; Wed, 16 Mar 2005 19:49:20 +0100 Received: from tomas by junk.nocrew.org with local (Exim 3.35 #1 (Debian)) id 1DBda4-0007BD-00; Wed, 16 Mar 2005 19:49:20 +0100 To: Valia V.Vaneeva Cc: pgsql-odbc@postgresql.org Subject: Re: psqlodbc-08.00.0005 + libiodbc-3.52.2 + mac os x References: From: tomas@nocrew.org (Tomas =?iso-8859-1?q?Sk=E4re?=) Date: 16 Mar 2005 19:49:20 +0100 In-Reply-To: Message-ID: <80psxzifyn.fsf@junk.nocrew.org> Lines: 60 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/64 X-Sequence-Number: 5082 Valia V.Vaneeva 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