X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 700CDDB7DD for ; Mon, 14 Nov 2005 23:04:29 -0400 (AST) 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 43654-09-5 for ; Tue, 15 Nov 2005 11:08:13 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 60E94DB825 for ; Mon, 14 Nov 2005 23:02:35 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jAF32dPs005616; Mon, 14 Nov 2005 22:02:39 -0500 (EST) To: Horacio Samaniego cc: pgsql-odbc@postgresql.org Subject: Re: OSX ? In-reply-to: <3462C06D-E841-49BD-9C04-6606149FFEA5@unm.edu> References: <3462C06D-E841-49BD-9C04-6606149FFEA5@unm.edu> Comments: In-reply-to Horacio Samaniego message dated "Mon, 14 Nov 2005 12:42:38 -0700" Date: Mon, 14 Nov 2005 22:02:39 -0500 Message-ID: <5615.1132023759@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/156 X-Sequence-Number: 6392 Horacio Samaniego writes: > I 've tried to compile psqlODBC from ftp://ftp.postgresql.org/pub/ > odbc/versions/src/psqlodbc-08.01.0101.tar.gz with no success... Hm, it fails for me too. I'm not sure if it's OS X's fault or psqlodbc's fault, but the problem seems to be here: pgapifunc.h declares PGAPI_BindParameter as taking SQLUINTEGER cbColDef, ... SQLINTEGER cbValueMax, SQLINTEGER *pcbValue); The actual definition of PGAPI_BindParameter in bind.c uses different typedefs: UDWORD cbColDef, ... SDWORD cbValueMax, SDWORD * pcbValue) Darwin's /usr/include/sqltypes.h has /* * API declaration data types */ typedef signed int SQLINTEGER; typedef unsigned int SQLUINTEGER; /* * SQL portable types for C */ typedef long int SDWORD; typedef unsigned long int UDWORD; and gcc is entirely within its rights to complain that "int" != "long int". *Somebody* is not on the right page here. I would tend to fault psqlodbc for inconsistent declarations, but if it works on other platforms (as it seems to) maybe there is a general convention that SQLINTEGER == SDWORD etc? If so, Apple didn't get the word. regards, tom lane