Re: Include files for SPI are not installed

From: Lamar Owen <lamar(dot)owen(at)wgcr(dot)org>
To: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Include files for SPI are not installed
Date: 2001-02-06 19:09:06
Message-ID: 3A804BD2.EFC57933@wgcr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oliver Elphick wrote:
> Certain include files are installed by src/include/Makefile and by
> interfaces/libpq++/Makefile. However, they in turn include others that
> are not installed, thus obviating the usefulness of the ones that are.

> The missing files are these:
[snip]
> The list can be regenerated with the attached script.

Or use this one-liner (CWD=the include directory in the source dist):

/lib/cpp -M -I. -I../backend executor/spi.h | \
xargs -n 1| \
grep \\W| \
grep -v ^/| \
grep -v spi.o | \
grep -v spi.h | \
sort
(There are better ways of doing the regexps, I know). I use this in the
RPM spec file to pull over the SPI headers, and have had to do so since
6.5.x days.

Bruce, can we add a TODO item for make install to install _all_
necessary headers, including SPI ones? It is not at all necessary to
have a source tree lying around to do SPI development (or at least it
_shouldn't_ be necessary). A full source tree, configured and built,
according to du, takes about 48MB of space (a pristine tree takes 36MB
or so in comparison). The complete set of headers takes a little less
than 1MB of space. (1MB of _headers_? Yow!)
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Lamar Owen 2001-02-06 19:12:06 Re: Include files for SPI are not installed
Previous Message Nathan Myers 2001-02-06 19:04:06 Re: using the same connection?