[GRASS5] Re: grass51

Glynn Clements glynn.clements at virgin.net
Mon Mar 18 04:09:15 EST 2002


Markus Neteler wrote:

> I have exactly the same problem and no idea how to solve it.
> 
> Dear developers, we try to compile GRASS51/nviz with PostgreSQL
> support, since recently it doesn't compile any more.

More precisely, since I added the option of building using GNU make
rather than gmake5.

> Any suggestions?

The whole of src/runInfxQry.c (which defines the missing symbols
"runInfxQry" and "runqry") is now conditionalised upon:

#if defined(HAVE_POSTGRES_H) || defined(HAVE_POSTGRES_FE_H)

The grass51 version of config.h.in doesn't have either of these
symbols, but instead has HAVE_POSTGRES. The grass51 configure.in
script appears to be based upon a rather old version of configure.in.

For a quick fix, just define the symbols manually in config.h, or in a
Makefile.

If "grass51" is to use code from the grass5 tree, it needs to have
(more or less) the same versions of configure.in, config.h.in,
src/CMD/* etc, to ensure that any necessary #define's or -D switches
are provided.

FWIW, I think that having three separate branches is unrealistic for a
project which only has around half a dozen active developers.

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



More information about the grass-dev mailing list