Hi,
(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. 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"?
I am not sure how to fix this problem (appears in g.column.pg).
Thanks for help,
Markus
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.
What functions is the header supposed to define?
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.
--
Glynn Clements <glynn.clements@virgin.net>
On Thu, Dec 20, 2001 at 07:50:17PM +0000, Glynn Clements wrote:
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
What functions is the header supposed to define?
> 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.
Markus
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@virgin.net>
Hi,
the updated manual pages for the postgres interface
are now adequate to the modules. I suggest removing
two old bugs that complained on that issue.
--alex
__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
On Fri, Dec 21, 2001 at 03:22:10AM -0800, Alex Shevlakov wrote:
the updated manual pages for the postgres interface
are now adequate to the modules. I suggest removing
two old bugs that complained on that issue.
You should have write access to the bugtracker,
just close the bugs then. 