[GRASS5] [bug #1926] (grass) Compilation error in function main

this bug's URL: http://intevation.de/rt/webrt?serial_num=1926
-------------------------------------------------------------------------

Subject: Compilation error in function main

make[2]: Entering in directory `/root/Grass5/grass51_exp_2003_05_31/vector/v.
in.
ogr'
gcc -g -O2 -Wall -I/root/Grass5/grass51_exp_2003_05_31/include
-I/root/Grass5/
grass51_exp_2003_05_31/dist.i686-pc-linux-gnu/include -I/usr/local/include
-DUS
E_GDAL_H -I/usr/local/pgsql/include/
-I/root/Grass5/grass51_exp_2003_05_31/incl
ude -I/root/Grass5/grass51_exp_2003_05_31/dist.i686-pc-linux-gnu/include \
        -o OBJ.i686-pc-linux-gnu/geom.o -c geom.c
/root/Grass5/grass51_exp_2003_05_31/include/gis.h:36: warning:
`GRASS_copyright'
defined but not used
gcc -g -O2 -Wall -I/root/Grass5/grass51_exp_2003_05_31/include
-I/root/Grass5/
grass51_exp_2003_05_31/dist.i686-pc-linux-gnu/include -I/usr/local/include
-DUS
E_GDAL_H -I/usr/local/pgsql/include/
-I/root/Grass5/grass51_exp_2003_05_31/incl
ude -I/root/Grass5/grass51_exp_2003_05_31/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:
/root/Grass5/grass51_exp_2003_05_31/include/gis.h:36: warning:
`GRASS_copyright'
defined but not used
make[2]: ** [OBJ.i686-pc-linux-gnu/main.o] Erro 1
make[2]: Saindo do diretório `/root/Grass5/grass51_exp_2003_05_31/vector/v.in.
og
r'
make[1]: ** [subdirs] Error 1
make[1]: Saindo do diretório `/root/Grass5/grass51_exp_2003_05_31/vector'
make: ** [default] Error 1

-------------------------------------------- Managed by Request Tracker

Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=1926
-------------------------------------------------------------------------

Subject: Compilation error in function main

make[2]: Entering in directory `/root/Grass5/grass51_exp_2003_05_31/vector/v.
in.
ogr'
gcc -g -O2 -Wall -I/root/Grass5/grass51_exp_2003_05_31/include -I/root/Grass5/
grass51_exp_2003_05_31/dist.i686-pc-linux-gnu/include -I/usr/local/include -DUS
E_GDAL_H -I/usr/local/pgsql/include/ -I/root/Grass5/grass51_exp_2003_05_31/incl
ude -I/root/Grass5/grass51_exp_2003_05_31/dist.i686-pc-linux-gnu/include \
        -o OBJ.i686-pc-linux-gnu/geom.o -c geom.c
/root/Grass5/grass51_exp_2003_05_31/include/gis.h:36: warning: `GRASS_copyright'
defined but not used
gcc -g -O2 -Wall -I/root/Grass5/grass51_exp_2003_05_31/include -I/root/Grass5/
grass51_exp_2003_05_31/dist.i686-pc-linux-gnu/include -I/usr/local/include -DUS
E_GDAL_H -I/usr/local/pgsql/include/ -I/root/Grass5/grass51_exp_2003_05_31/incl
ude -I/root/Grass5/grass51_exp_2003_05_31/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:
/root/Grass5/grass51_exp_2003_05_31/include/gis.h:36: warning: `GRASS_copyright'
defined but not used
make[2]: ** [OBJ.i686-pc-linux-gnu/main.o] Erro 1
make[2]: Saindo do diretório `/root/Grass5/grass51_exp_2003_05_31/vector/v.in.
og
r'
make[1]: ** [subdirs] Error 1
make[1]: Saindo do diretório `/root/Grass5/grass51_exp_2003_05_31/vector'
make: ** [default] Error 1

-------------------------------------------- Managed by Request Tracker

Had you ./configured with GDAL/OGR support ?
You have to do it with
--with-gdal[=path/gdal-config]

Piero,

it looks like the requestor answered your question in the
webinterface of the bug.

When you answer to bugs in the request-tracker,
it most of the time is good style to send a copy there, too.
This way it get's registered.
(Keeping the quotes short is a plus for this.)

On Fri, Jun 06, 2003 at 04:07:45PM +0200, Piero Cavalieri wrote:

Request Tracker wrote:
>this bug's URL: http://intevation.de/rt/webrt?serial_num=1926
>-------------------------------------------------------------------------

Had you ./configured with GDAL/OGR support ?
You have to do it with
--with-gdal[=path/gdal-config]

On Fri, 6 Jun 2003, Piero Cavalieri wrote:

Had you ./configured with GDAL/OGR support ?
You have to do it with
--with-gdal[=path/gdal-config]

Should --with-gdal be made the default for 5.1? As I understand it both
r.in.gdal and v.in.ogr use GDAL; r.in.gdal will work without --with-gdal
as it uses the gdalbridge code (but anecdotal evidence suggests this may
be buggy) but v.in.ogr needs --with-gdal to be specified. So at least
the configure script should disable building v.in.ogr if --with-gdal is
not specified.

But I think it would probably be good to make GDAL an absolute dependency
for 5.1, as PROJ.4 is now. I intend to add some functions for exporting
the projection information in a location to other formats and this will
also use the ogrspatialreference functions in GDAL.

Bernhard Reiter wrote:

Piero,

it looks like the requestor answered your question in the
webinterface of the bug.

When you answer to bugs in the request-tracker,
it most of the time is good style to send a copy there, too.
This way it get's registered.
(Keeping the quotes short is a plus for this.)

On Fri, Jun 06, 2003 at 04:07:45PM +0200, Piero Cavalieri wrote:

Request Tracker wrote:

this bug's URL: http://intevation.de/rt/webrt?serial_num=1926
-------------------------------------------------------------------------

Had you ./configured with GDAL/OGR support ?
You have to do it with
--with-gdal[=path/gdal-config]

I apologize, I was only thinking this wasn't a bug,
so better to reply in the m.l.
  Piero

On Mon, Jun 09, 2003 at 09:45:29AM +0200, Piero Cavalieri wrote:

Bernhard Reiter wrote:
>
>When you answer to bugs in the request-tracker,
>it most of the time is good style to send a copy there, too.
>This way it get's registered.

(and mailed to the requestor, too).

>On Fri, Jun 06, 2003 at 04:07:45PM +0200, Piero Cavalieri wrote:
>>Request Tracker wrote:
>>>this bug's URL: http://intevation.de/rt/webrt?serial_num=1926

I apologize,

No problem, it is very appreciated that you help answering questions.

I was only thinking this wasn't a bug,
so better to reply in the m.l.

It was a request which was registered in the tracker
you can see that from the URL and the number above.
  Bernhard