Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1I4d-0006nD-4x for pgsql-odbc@arkaria.postgresql.org; Thu, 09 Jan 2014 16:03:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W1I4c-0005o4-KI for pgsql-odbc@arkaria.postgresql.org; Thu, 09 Jan 2014 16:03:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1I4b-0005mq-Ej for pgsql-odbc@postgresql.org; Thu, 09 Jan 2014 16:03:09 +0000 Received: from mail-pb0-x22e.google.com ([2607:f8b0:400e:c01::22e]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W1I4Y-00053D-GI for pgsql-odbc@postgresql.org; Thu, 09 Jan 2014 16:03:08 +0000 Received: by mail-pb0-f46.google.com with SMTP id md12so3209481pbc.33 for ; Thu, 09 Jan 2014 08:03:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=nYrX4KugKS72gC4qJxIqn2+YjDmcT26RDxQnG8Ow4+k=; b=llbbf3gG+4yj7+cxpY/+OKKP5VNBXUrKjZoFCQG+Xri7xvbCoZlDGpKP7fw9S5TQGn OGrSa3pgNIGBG1sPEM82Df1ujOj0lgRlsl8hlHrErn0ZA2w5WyJEjvTTjxRdW261JyLB qsjM3uWkqwAY6GKX3S8B9Dh+Ia3z4DPG2z+3MHVAz+pmaHaaBOCGbeQaKZ56T6jT17+g A3gLDmViTT5WcwCzVaiMAlPzAIWBwUTOU9qxYgF4PFzycOzZOHnddjLa6ClnPElfQBUh ms5SpqsYEQuOVg4nd6eXM1mNtJ7ray+xuiH4GNyzkL0MTRNL1H/aGj0ObWC9UR1CcGCC KCVQ== X-Received: by 10.66.149.231 with SMTP id ud7mr4751151pab.8.1389283385558; Thu, 09 Jan 2014 08:03:05 -0800 (PST) Received: from panda.site (65-102-187-8.tukw.qwest.net. [65.102.187.8]) by mx.google.com with ESMTPSA id oa3sm10947620pbb.15.2014.01.09.08.03.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Jan 2014 08:03:04 -0800 (PST) Message-ID: <52CEC837.8090400@gmail.com> Date: Thu, 09 Jan 2014 08:03:03 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Bart Klein Ikink , "pgsql-odbc@postgresql.org" Subject: Re: Database link from Postgres to Oracle using ODBC References: , <52B9B0B1.4040104@gmail.com> , <52CAE95F.1020409@gmail.com> , <52CAFE62.8010002@gmail.com> , <52CC1CFE.9080805@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 01/09/2014 02:31 AM, Bart Klein Ikink wrote: > I have RHEL 6. I have now tried something different: > > - yum install gcc > - yum install postgresql92-devel-9.2.5 > - yum install unixODBC-2.3.0 > - yum install unixODBC-devel > > > > Then: > > - cd ODBC-Link-1.0.4 > - export PATH=$PATH:/usr/pgsql-9.2/bin > - make USE_PGXS=1 > > But still having: > > > > gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fpic -I. -I. -I/usr/pgsql-9.2/include/server -I/usr/pgsql-9.2/include/internal -I/usr/include/et -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -c -o odbclink.o odbclink.c > odbclink.c: In function âget_dataâ: > odbclink.c:746: error: âtimestamp_inâ undeclared (first use in this function) > odbclink.c:746: error: (Each undeclared identifier is reported only once > odbclink.c:746: error: for each function it appears in.) > odbclink.c:749: error: âtimestamptz_inâ undeclared (first use in this function) > make: *** [odbclink.o] Error 1 > > See if this works. In the ODBC-Link-1.0.4 directory open odbclink.c and at the top of the file under the other #includes add: #include "utils/timestamp.h" If that does not work then I would suggest contacting the authors of ODBC-Link and see if they have any suggestions. -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc