[Gdal-dev] compile problems re: GIF on RHEL 5/64-bit platform
Frank Warmerdam
warmerdam at pobox.com
Tue Jul 10 16:31:05 EDT 2007
John Cartwright wrote:
> Hello All,
>
> I'm trying to compile 1.4.2 on a RHEL 5 platform. I configured using
> "--with-gif=internal", but during the compilation process I'm stopped by:
> ...
> gcc -c -I/extra/contrib/src/gdal-1.4.2/port
> -I/extra/contrib/src/gdal-1.4.2/gcore
> -I/extra/contrib/src/gdal-1.4.2/alg -I/extra/contrib/src/gdal-1.4.2/ogr
> -I/extra/contrib/src/gdal-1.4.2/ogr/ogrsf_frmts -DOGR_ENABLED
> -Df2cFortran -D_POSIX_SOURCE -I/extra/contrib/src/gdal-1.4.2/port
> -I/extra/contrib/netcdf-3.6.2 -I/extra/contrib/netcdf-3.6.2/include
> -Ilibungif -Wall -O2 libungif/egif_lib.c -fPIC -DPIC
> -o../o/.libs/egif_lib.o
> libungif/egif_lib.c: In function 'EGifOpenFileName':
> libungif/egif_lib.c:79: error: 'S_IREAD' undeclared (first use in this
> function)
> libungif/egif_lib.c:79: error: (Each undeclared identifier is reported
> only once
> libungif/egif_lib.c:79: error: for each function it appears in.)
> libungif/egif_lib.c:79: error: 'S_IWRITE' undeclared (first use in this
> function)
John,
Could you try substituting:
http://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/gif/libungif/egif_lib.c?format=raw
for gdal/frmts/gif/libungif/egif_lib.c and see if that builds? If so,
please file a bug against GDAL and I'll make sure this fix makes it into
the 1.4 branch too. I'm guessing that RHEL 5 is removing some deprecated
macros, like S_IREAD and S_IWRITE as part of a cleanup-and-modernize
effort.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list