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.
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
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:184: parse error before
"PGconn"
/home/yann/grass51/include/vect/dig_structs.h:184: warning: no semicolon
at end of struct or union
/home/yann/grass51/include/vect/dig_structs.h:186: parse error before
'}' token
/home/yann/grass51/include/vect/dig_structs.h:204: field `post' has
incomplete type
/home/yann/grass51/include/vect/dig_structs.h:209: confused by earlier
errors, bailing out
make[2]: *** [OBJ.i686-pc-linux-gnu/extract.o] Error 1
make[2]: Leaving directory `/home/yann/grass51/display/d.extract'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/yann/grass51/display'
make: *** [default] Error 1
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.
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 ?
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 ?
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...
How PQINCPATH is defined in grass51/include/Make/Platform.make?
----------------------------------
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)
Is it possible that you have old version of GDAL/OGR?
In gdal/ogr/ogr_core.h should be wkbLinearRing = 101
but it seems to be a new feature:
* Revision 1.16 2003/02/19 02:57:49 warmerda
* added wkbLinearRing support
How PQINCPATH is defined in grass51/include/Make/Platform.make? #PostgreSQL:
PQINCPATH = -I/usr/local/pgsql/include
PQLIBPATH =
PQLIB = -lpq
GDAL/OGR version
GDAL-cvs-030410
I just rebuild GDAL from same source and rebuilt Grass51, it compiled
OK.
I am not sure what happened...
On Wed, 2003-05-28 at 15:00, Radim Blazek wrote:
On Wednesday 28 May 2003 05:47, Yann wrote:
> 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...
How PQINCPATH is defined in grass51/include/Make/Platform.make?
> ----------------------------------
> 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)
Is it possible that you have old version of GDAL/OGR?
In gdal/ogr/ogr_core.h should be wkbLinearRing = 101
but it seems to be a new feature:
* Revision 1.16 2003/02/19 02:57:49 warmerda
* added wkbLinearRing support