[GRASS-dev] current CVS: v.in.ogr doesn't build

Markus Neteler neteler at itc.it
Fri Jul 7 18:09:15 EDT 2006


On Fri, Jul 07, 2006 at 07:39:00PM +0100, Glynn Clements wrote:
> 
> Maciek Sieczka wrote:
> 
> > CVS fetched just a while ago:
> > 
> > Errors in:
> > /home/fishoo/src/straight/grass6/vector/v.in.ogr
> > 
> > $ cd /home/fishoo/src/straight/grass6/vector/v.in.ogr
> > $ make
> > 
> > gcc -I/home/fishoo/src/straight/grass6/dist.i686-pc-linux-gnu/include
> > -g -O2  -I/usr/local/include     -DPACKAGE=\""grassmods"\"
> > -I/usr/local/include
> > -I/home/fishoo/src/straight/grass6/dist.i686-pc-linux-gnu/include \ -o
> > OBJ.i686-pc-linux-gnu/main.o -c main.c main.c: In function `main':
> > main.c:632: error: `OFTDate' undeclared (first use in this function)
> > main.c:632: error: (Each undeclared identifier is reported only once
> > main.c:632: error: for each function it appears in.) make: ***
> > [OBJ.i686-pc-linux-gnu/main.o] Error 1
> > 
> > 
> > 
> > Last time I built on 05 July and all was OK. Since then in GRASS-COMMIT
> > Markus wrote, on 2006.07.06:
> > 
> > Modified Files:
> > 	main.c 
> > Log Message:
> > 'NULL' support activated for OFTInteger and OFTReal
> > 
> > Modified Files:
> > 	main.c 
> > Log Message:
> > OFTDate added; OFTIntegerList hack polished
> 
> You need the most recent version of GDAL/OGR; the NEWS file at:
> 
> 	http://www.remotesensing.org/gdal/NEWS.html
> 
> says:
> 
> 	OGR 1.3.2 - Overview of Changes
> 	-------------------------------
> 	
> 	OGRFeature:
> 	 - Added support for OFTDate, OFTTime and OFTDateTime field types. 
> 	 - Also applied to a few drivers (shapefile, mysql, postgres)
> 
> As 1.3.2 has only been out a couple of months, I doubt that you will
> be able to get an "official" package from your distribution vendor yet
> (the 1.3.2 ebuild for Gentoo is still masked on all platforms).

To make everybody happy, I have conditionalized OFTDate on
GDAL_VERSION_NUM >= 1320. It doesn't make the code more readable but
we can take it out in a couple of months.

Maciek, please test this before updating your GDAL installation.

Markus




More information about the grass-dev mailing list