Opened 7 years ago

Closed 7 years ago

#5519 closed defect (fixed)

error compiling with giflib 5.1.0

Reported by: saultdon Owned by: warmerdam
Priority: normal Milestone: 1.11.1
Component: GDAL_Raster Version: 1.11.0
Severity: normal Keywords:
Cc:

Description

I can't get GDAL 1.11 to compile on linux after updating giflib to 5.1.

If I downgrade to giflib 5.0.6 it will compile fine.

$ uname -a
Linux archdell 3.14.6-1-ARCH #1 SMP PREEMPT Sun Jun 8 10:08:38 CEST 2014 x86_64 GNU/Linux

Here are the errors I see:

gifdataset.cpp: In static member function ‘static GDALDataset* GIFDataset::Open(GDALOpenInfo*)’:
gifdataset.cpp:389:37: error: too few arguments to function ‘int DGifCloseFile(GifFileType*, int*)’
             DGifCloseFile( hGifFile );
                                     ^
In file included from gifabstractdataset.h:36:0,
                 from gifdataset.cpp:33:
/usr/include/gif_lib.h:183:9: note: declared here
     int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
         ^
gifdataset.cpp:395:29: error: too few arguments to function ‘int DGifCloseFile(GifFileType*, int*)’
     DGifCloseFile( hGifFile );
                             ^
In file included from gifabstractdataset.h:36:0,
                 from gifdataset.cpp:33:
/usr/include/gif_lib.h:183:9: note: declared here
     int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
         ^
gifdataset.cpp:420:31: error: too few arguments to function ‘int DGifCloseFile(GifFileType*, int*)’
         DGifCloseFile(hGifFile);
                               ^
In file included from gifabstractdataset.h:36:0,
                 from gifdataset.cpp:33:
/usr/include/gif_lib.h:183:9: note: declared here
     int DGifCloseFile(GifFileType * GifFile, int *ErrorCode);
         ^
gifdataset.cpp: In static member function ‘static GDALDataset* GIFDataset::CreateCopy(const char*, GDALDataset*, int, char**, GDALProgressFunc, void*)’:
gifdataset.cpp:652:31: error: too few arguments to function ‘int EGifCloseFile(GifFileType*, int*)’
         EGifCloseFile(hGifFile);
                               ^
In file included from gifabstractdataset.h:36:0,
                 from gifdataset.cpp:33:
/usr/include/gif_lib.h:132:5: note: declared here
 int EGifCloseFile(GifFileType *GifFile, int *ErrorCode);
     ^
gifdataset.cpp:676:31: error: too few arguments to function ‘int EGifCloseFile(GifFileType*, int*)’
         EGifCloseFile(hGifFile);
                               ^
In file included from gifabstractdataset.h:36:0,
                 from gifdataset.cpp:33:
/usr/include/gif_lib.h:132:5: note: declared here
 int EGifCloseFile(GifFileType *GifFile, int *ErrorCode);
     ^
gifdataset.cpp:759:31: error: too few arguments to function ‘int EGifCloseFile(GifFileType*, int*)’
     if (EGifCloseFile(hGifFile) == GIF_ERROR)
                               ^
In file included from gifabstractdataset.h:36:0,
                 from gifdataset.cpp:33:
/usr/include/gif_lib.h:132:5: note: declared here
 int EGifCloseFile(GifFileType *GifFile, int *ErrorCode);
     ^
gifdataset.cpp:810:31: error: too few arguments to function ‘int EGifCloseFile(GifFileType*, int*)’
         EGifCloseFile(hGifFile);
                               ^
In file included from gifabstractdataset.h:36:0,
                 from gifdataset.cpp:33:
/usr/include/gif_lib.h:132:5: note: declared here
 int EGifCloseFile(GifFileType *GifFile, int *ErrorCode);
     ^
../../GDALmake.opt:562: recipe for target '../o/gifdataset.o' failed
make[2]: *** [../o/gifdataset.o] Error 1
make[2]: Leaving directory '/home/saultdon/Development/aur/gdal-filegdb/src/gdal-1.11.0/frmts/gif'
GNUmakefile:10: recipe for target 'gif-install-obj' failed
make[1]: *** [gif-install-obj] Error 2
make[1]: Leaving directory '/home/saultdon/Development/aur/gdal-filegdb/src/gdal-1.11.0/frmts'
GNUmakefile:63: recipe for target 'frmts-target' failed
make: *** [frmts-target] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Change History (1)

comment:1 Changed 7 years ago by Even Rouault

Component: defaultGDAL_Raster
Milestone: 1.11.1
Resolution: fixed
Status: newclosed

trunk r27456, branches/1.11 r27459 "GIF: add compatibility with giflib 5.1 (#5519)"

Note: See TracTickets for help on using tickets.