[gdal-dev] Re: gdal segmentation fault when reading NetCDF grid files

Roger André randre at gmail.com
Mon Nov 24 14:57:51 EST 2008


Sorry, should have trolled the Web first.  I see now that this is nothing
new, and is caused by a conflict between libnetcdf and libhdf4/5.  I've
resolved this by doing the following:

1. Removing all hdf libs from my system:
$ sudo apt-get remove libhdf4g libhdf4g-dev libhdf5-serial-1.6.5-0
libhdf5-serial-dev

2. Doing a "sudo make clean" in my /usr/local/gdal dir

3. Doing a new configure with "--with-hdf4=no --with-hdf5=no", then running
make.

Seems to work now,

Thanks.
--

On Mon, Nov 24, 2008 at 10:07 AM, Roger André <randre at gmail.com> wrote:

> Hi everyone,
>
> I'm having some problems getting gdal to read netCDF grid files using
> gdal-1.5.2 which I have built from source.  It is running on an Ubuntu 8.04
> machine, and was built after the following dependencies were installed:
>
>     $ sudo apt-get install libnetcdf4 libnetcdf-dev netcdfg-dev netcdf-doc
> libhdf4g libhdf4g-dev libhdf5-serial-1.6.5-0 libhdf5-serial-1.6.5-0
> libhdf5-serial-dev
>
> I built gdal with the following options:
>
>     $ sudo ./configure --with-libz --with-pg=/usr/local/pgsql/bin/pg_config
> --with-netcdf --with-png --with-geotiff --with-jpeg --with-gif --with-hdf4
> --with-hdf5 --with-jasper --with-geos=/usr/local/bin/geos-config
> --with-python
>
> When I try to open the file with gdalinfo, I get the following seg fault in
> /var/log/syslog:
>
>     Nov 24 09:42:34 randre-linux kernel: [ 1921.499150] gdalinfo[6971]:
> segfault at 00001031 eip b713d886 esp bfefb390 error 4
>
> The same file can be opened with no problem using gdalinfo from
> FWTools-2.0.6
>
> Is it possible I am missing some netCDF/HDF fu needed for gdal to work with
> these sorts of files?
>
> Thanks in advance for any suggestions,
>
> Roger
> --
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081124/3b1687b3/attachment.html


More information about the gdal-dev mailing list