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 A55DF5638F for ; Wed, 9 Mar 2005 00:43:08 +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 50892-08 for ; Wed, 9 Mar 2005 00:43:07 +0000 (GMT) Received: from mail.tpgi.com.au (mail5.tpgi.com.au [203.12.160.101]) by svr1.postgresql.org (Postfix) with ESMTP id 0312C5638B for ; Wed, 9 Mar 2005 00:43:04 +0000 (GMT) Received: from asgiriya (203-29-134-90-nsw.tpgi.com.au [203.29.134.90]) by mail.tpgi.com.au (8.12.10/8.12.10) with SMTP id j290h6YW018386 for ; Wed, 9 Mar 2005 11:43:06 +1100 Message-ID: <003e01c52440$f550fe80$1501a8c0@omnilink.com.au> From: "Rhys Ickeringill" To: Subject: psqlodbc-08.00.0101 compile error Date: Wed, 9 Mar 2005 11:43:06 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-TPG-Antivirus: Passed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.207 tagged_above=0 required=5 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200503/53 X-Sequence-Number: 5071 Hi I've just unsuccesfully attempted to build psqlodbc-08.00.0101 on my linux system and have got a compile error in odbcapi30w.c. I must add that I'm not certain this is psqlodbc's problem, it may belong to iODBC... The function 'SQLColAttributeW' signature in this file differs from the one in "sqlucode.h" provided by libiodbc-3.52.2. Specifically, the final parameter 'pNumAttr' definitions don't match. GCC-3.3.4 is pulling this up as an error. from psqlodbc-08.00.0101's odbcapi30w.c : RETCODE SQL_API SQLColAttributeW( SQLHSTMT hstmt, SQLUSMALLINT iCol, SQLUSMALLINT iField, SQLPOINTER pCharAttr, SQLSMALLINT cbCharAttrMax, SQLSMALLINT *pcbCharAttr, SQLPOINTER pNumAttr ) from libiodbc-3.52.2's sqlucode.h (included by odbcapi30w.c) : RETCODE SQL_API SQLColAttributeW( SQLHSTMT hstmt, SQLUSMALLINT iCol, SQLUSMALLINT iField, SQLPOINTER pCharAttr, SQLSMALLINT cbCharAttrMax, SQLSMALLINT *pcbCharAttr, SQLLEN *pNumAttr ) In libiodbc-3.52.2's sqltypes.h SQLLEN is #defined as a long, SQLPOINTER is typedefed to void*, hence the compiler's complaint - "conflicting types for SQLColAttributeW" Perhaps also of concern is that within SQLColAttributeW, pNumAttr is then passed to a function (PGAPI_ColumnPrivileges) expecting a SQLINTEGER*. Regards, Rhys