[GRASS5] compile problem...

Yann st027364 at ait.ac.th
Tue May 27 23:47:51 EDT 2003


Hello Moritz,

it seems there is a problem in recognizing include of pgsql during
compile, while configure mentions that checks for postgres and
libpq-fe.h are successful...

----------------------------------
in dig_structs.h i changed:
FROM:
#ifdef HAVE_POSTGRES
#include "libpq-fe.h"
#endif

TO:
#ifdef HAVE_POSTGRES
#include "/usr/local/pgsql/include/libpq-fe.h"
#endif

it worked...

----------------------------------
Now it bugs in main.c of v.in.ogr where wkbLinearRing is used
undeclared:

gcc -g -O2  -Wall  -I/home/yann/grass51/include
-I/home/yann/grass51/dist.i686-pc-linux-gnu/include  -I/usr/include
-DUSE_GDAL_H  -I/usr/local/pgsql/include -I/home/yann/grass51/include
-I/home/yann/grass51/dist.i686-pc-linux-gnu/include \
        -o OBJ.i686-pc-linux-gnu/main.o -c main.c
main.c: In function `main':
main.c:142: `wkbLinearRing' undeclared (first use in this function)
main.c:142: (Each undeclared identifier is reported only once
main.c:142: for each function it appears in.)
/usr/include/ctype.h: At top level:
/home/yann/grass51/include/gis.h:36: warning: `GRASS_copyright' defined
but not used
make[2]: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1
make[2]: Leaving directory `/home/yann/grass51/vector/v.in.ogr'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/yann/grass51/vector'
make: *** [default] Error 1



On Wed, 2003-05-28 at 01:41, Moritz Lennert wrote:
> Yann said:
> > Hello,
> > I had a complete cvs built made few days back, and grass51 was working
> > from it... now it is making some trouble around libpq-fe.h, any idea,
> > suggestion please.
> >
> > Thank you
> > Yann
> >
> > ------------------------------------------------------------------
> >
> > Mandrake 9.1, postgres, postgis, gdal, ogr, proj, freetype (all built
> > from source except freetype)
> >
> > fresh cvs of Grass5.0 (cvs up -dP grass)
> > Grass built cleanly except for some non-critical g3d error
> >
> > cvs up -dP grass51
> > make clean
> > Config command => ./configure --with-grass50=/home/yann/grass
> > --with-postgres-includes=/usr/local/pgsql/include --with-gdal
> > --with-proj --with-ogr --with-postgrass --with-postgis
> > --with-freetype-includes=/usr/include/freetype2
> > make mix
> > make result in:
> >
> > make[2]: Entering directory `/home/yann/grass51/display/d.extract'
> > gcc -g -O2  -Wall  -I/home/yann/grass51/include
> > -I/home/yann/grass51/dist.i686-pc-linux-gnu/include
> > -I/home/yann/grass51/include
> > -I/home/yann/grass51/dist.i686-pc-linux-gnu/include \
> >         -o OBJ.i686-pc-linux-gnu/extract.o -c extract.c
> > In file included from /home/yann/grass51/include/vect/digit.h:3,
> >                  from /home/yann/grass51/include/Vect.h:4,
> >                  from extract.c:8:
> > /home/yann/grass51/include/vect/dig_structs.h:22:22: libpq-fe.h: No such
> > file or directory
> 
> Maybe a dumb question, but where is libpq-fe.h on your machine ?
> 
> Moritz
> 
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
> 




More information about the grass-dev mailing list