Scott Cain <cain@cshl.edu> 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