Fri, Jun 6 2003
15:38:28
|
|
Request created by guest
|
|
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 |
|
Fri, Jun 6 2003
16:28:31
|
|
Mail sent by guest
|
|
That was the line of configure:
./configure --with-grass50=/root/Grass5/grass50_exp_2003_05_31 --with-x
--enable-another-button --with-cxx --with-freetype
--with-gdal=/usr/local/bin/gdal-config
--with-proj-includes=/usr/local/include/ --with-proj-libs=/usr/lib/
--with-proj-includes=/usr/include/ --with-freetype-libs=/usr/lib/
--with-freetype-includes=/usr/include/freetype2/ --with-motif --with-opengl
--with-postgres-includes=/usr/local/pgsql/include/
--with-postgres-libs=/usr/local/pgsql/lib/ --with-fftw-libs=/usr/local/lib/
--with-fftw-includes=/usr/local/include/ --with-proj
Now, gdal-config:
# gdal-config --libs
-L/usr/local/lib -lgdal.1.1
# gdal-config --ogr-enabled
yes
# gdal-config --formats
gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 bsb xpm sdts raw dted mem jdem
envisat elas fit vrt usgsdem l1b nitf bmp jpeg2000 gif jpeg png
# whereis gdal-config
gdal-config: /usr/local/bin/gdal-config
Tks |
|
Mon, Jun 9 2003
10:21:33
|
|
Mail sent by guest
|
|
I don't understand if you have added the gdal-config path after or befor
my reply. If after (i.e. you still have the problem), I see now that
wkbLinearRing was added in ogr_core.h in date 2003/02/19,
so maybe you have a too old version of gdal. |
|
Fri, Jul 4 2003
12:38:38
|
|
Mail sent by mneteler
|
|
This problem should be resolved now.
Markus
|
|
Fri, Jul 4 2003
12:38:49
|
|
Status changed to resolved by mneteler
|
|