[GRASS5] Re: [GRASS-CVS] CVS update: grass/src/include

Glynn Clements glynn.clements at virgin.net
Fri Apr 12 10:04:20 EDT 2002


Alex Shevlakov wrote:

> the 7.2 Postgres has changed directory structure.
> This leads to error on configure run, because the
> configure searches include file a catalogue upper
> from the one called "internal" where header is now.

Configure looks wherever you tell it to. Using:

./configure --with-postgres-includes=/usr/include/postgresql/internal ...

works for me with PostgreSQL 7.2 on Cygwin. Alternatively, you may
need to specify both directories, e.g.

./configure --with-postgres-includes='/usr/include/postgresql /usr/include/postgresql/internal' ...

In any case, the "internal" directory is not part of the header's
specification. Examine the other PostgreSQL headers; none of them
specify the "internal" directory in the #include directive.

What the PostgreSQL developers probably *should* have done, was to
make the directory part of the header specification, in the same way
as X11 uses <X11/X.h>, <X11/Xaw/Label.h> etc and OpenGL uses
<GL/gl.h>.

But they didn't, so if you include any PostgreSQL headers which
include other PostgreSQL headers (e.g. libpq-int.h), the "internal"
directory *must* be in the include path.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list