[GRASS5] PostgreSQL interface compilation

Glynn Clements glynn.clements at virgin.net
Thu Dec 20 16:20:46 EST 2001


Markus Neteler wrote:

> > > (thanks Alex, for re-adding the missing files). I tried
> > > to compile the
> > > src.garden/grass.postgresql
> > > today, but there is a problem with
> > > #include <postgres_fe.h>
> > > that is named postgres.h on Redhat.
> > 
> > Or is it libpq-fe.h? That's the one which configure currently checks
> > for.
> 
> libpq-fe.h is also included. The only thing needed from
> #include <postgres_fe.h>
> is 
> VARHDRSZ
> (whatever define that is). See
> src.garden/grass.postgresql/g.column.pg/infxColumn.c

OK.

> > > It seems that the name
> > > depends on the PostgreSQL version and the Linux distro.
> > > Can we add some trick to support both filenames or
> > > find out the name with "configure"?
> > 
> > That's not hard; we already check for either fftw.h or dfftw.h.
> 
> Maybe we can change above VARHDRSZ not to need postgres[_fe].h at all.

Well, we could hardcode sizeof(int), but it should probably be done
properly.

I'll update configure[.in] to check for postgres.h/postgres_fe.h.

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



More information about the grass-dev mailing list