[Gdal-dev] strange shapefile DBF error [fixed]

Dylan Beaudette dylan at iici.no-ip.org
Mon Apr 25 14:19:04 EDT 2005


sorry for the false alarm - a re-compile without some CFLAGS resulted in a 
working GDAL installation.

Dylan

On Friday 22 April 2005 05:08 pm, Dylan Beaudette wrote:
> Greetings,
>
> recently installed gdal-1.2.6 and mapserver-4.4.2 on a slackware 10 box.
>
> trying to access a simple shapefile with ogrinfo yields an 'illegal
> instruction' after only 1 record in the shapefile has been processed.
>
> i know that this shapefile is in working order.
>
> trying to re-create this shapefile (it is a tile index for mapserver) seems
> to fail as well...
>
> ----------------------
> tile4ms list test
> Aborted. Unable to open DBF:o34115d1ne.tif
> Processed 0 of 1 files
> ----------------------
>
> here is the output from ogrinfo;
>
> ------------------------------
> ogrinfo -al doqq_index.shp
> INFO: Open of `doqq_index.shp'
> using driver `ESRI Shapefile' successful.
>
> Layer name: doqq_index
> Geometry: Polygon
> Feature Count: 312
> Extent: (-2527391.972465, -374934.820857) - (-2007497.075791,
> 174428.925500) Layer SRS WKT:
> PROJCS["North_America_Albers_Equal_Area_Conic",
>     GEOGCS["GCS_North_American_1983",
>         DATUM["North_American_Datum_1983",
>             SPHEROID["GRS_1980",6378137.0,298.257222101]],
>         PRIMEM["Greenwich",0.0],
>         UNIT["Degree",0.0174532925199433]],
>     PROJECTION["Albers_Conic_Equal_Area"],
>     PARAMETER["False_Easting",0.0],
>     PARAMETER["False_Northing",0.0],
>     PARAMETER["longitude_of_center",-96.0],
>     PARAMETER["Standard_Parallel_1",20.0],
>     PARAMETER["Standard_Parallel_2",60.0],
>     PARAMETER["latitude_of_center",40.0],
>     UNIT["Meter",1.0]]
> location: String (255.0)
> OGRFeature(doqq_index):0
>   location (String) = o34115d1ne.tif
> Illegal instruction
> ^^^^^^^^^^^^^^^^
> ----------------------------------------
>
> and here are my compile-time options for gdal:
>
> -------------------
> export CHOST="i686-pc-linux-gnu"
> export CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
> export CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
>
> ./configure --prefix=/usr --with-png=internal --with-jpeg=internal \
>             --with-gif=internal --with-libtiff=internal \
>             --with-geotiff=internal --with-libz=internal\
>             --without-pg --without-ogdi --with-python \
> 	    --with-threads=yes
> -------------------
>
> any ideas.. ? could this be an issue that is due to some other library not
> being present?
>
> thanks in advance!



More information about the Gdal-dev mailing list