X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DC77F52C5D for ; Wed, 13 Jul 2005 14:51:22 -0300 (ADT) 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 22366-01 for ; Wed, 13 Jul 2005 17:51:21 +0000 (GMT) Received: from mx-3.zoominternet.net (mx-3.zoominternet.net [24.154.1.22]) by svr1.postgresql.org (Postfix) with ESMTP id 343A752C3D for ; Wed, 13 Jul 2005 14:51:16 -0300 (ADT) Received: from mua-3.zoominternet.net (mua-3.zoominternet.net [24.154.1.46]) by mx-3.zoominternet.net (8.12.11/8.12.11) with ESMTP id j6DHp30R008380; Wed, 13 Jul 2005 13:51:05 -0400 Received: from [192.168.0.188] (acs-24-144-211-60.zoominternet.net [24.144.211.60]) by mua-3.zoominternet.net (Postfix) with ESMTP id CBC7A7F403; Wed, 13 Jul 2005 13:51:02 -0400 (EDT) Subject: Re: Support for DBD::PgSPI with Pg 7.4.8? From: Scott Cain To: Tom Lane Cc: pgsql-interfaces@postgresql.org In-Reply-To: <14041.1121276181@sss.pgh.pa.us> References: <1121275178.4169.11.camel@localhost.localdomain> <14041.1121276181@sss.pgh.pa.us> Content-Type: text/plain Date: Wed, 13 Jul 2005 13:51:12 -0400 Message-Id: <1121277072.4169.14.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 7bit X-CanItPRO-Stream: outgoing X-Scanned-By: CanIt (www . roaringpenguin . com) on 24.154.1.22 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: 200507/25 X-Sequence-Number: 5661 Tom, Thanks! Of course I should have figured that out on my own. Anyway, to get it to work, I had to modify the Makefile.PL file for the distribution. It requires a $POSTGRES_HOME environment variable, which doesn't help in Fedora, because files are spread all over the place. I just added a few items to the include list so that the appropriate header files would be found. Thanks, Scott On Wed, 2005-07-13 at 13:36 -0400, Tom Lane wrote: > Scott Cain writes: > > gcc -c -I/var/lib/pgsql/include -I/var/lib/pgsql/backend -I/var/lib/pgsql/interfaces/libpq -I/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBI/ -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" PgSPI.c > > In file included from PgSPI.xs:14: > > PgSPI.h:16:22: postgres.h: No such file or directory > > PgSPI.h:17:21: funcapi.h: No such file or directory > > PgSPI.h:18:26: executor/spi.h: No such file or directory > > PgSPI.h:26:20: ppport.h: No such file or directory > > Either you don't have those header files available, or the PgSPI > makefile is confused about where to look for them --- the > -I/var/lib/pgsql/include -I/var/lib/pgsql/backend switches look > like rather generic guesses as to where they are... > > All the other errors are probably just cascading from that. > > regards, tom lane -- ------------------------------------------------------------------------ Scott Cain, Ph. D. cain@cshl.edu GMOD Coordinator (http://www.gmod.org/) 216-392-3087 Cold Spring Harbor Laboratory