[gdal-dev] Cygwin x86_64 complie gdal-1.11.0 fail

Zhang, Shuai shuai at illinois.edu
Wed Sep 10 14:51:00 PDT 2014


Hi there,

I think I just found a bug when I tried to compile gdal-1.11.0 using cygwin in my laptop. it returns a fail info as below. I did a little search and found that setmod function is no longer supported by the cygwin. it is said that this kind of problem can only seen in x86_64 platform and can walk around by include <io.h>. 

hope anyone get a better idea~

yours,
Hanson

see: https://cygwin.com/ml/cygwin/2010-09/msg00267.html

/home/Hanson/gdal-1.11.0/frmts/o/.libs/egif_lib.o: In function `EGifOpenFileHandle':
/home/Hanson/gdal-1.11.0/frmts/gif/giflib/egif_lib.c:137: undefined reference to `setmode'
/home/Hanson/gdal-1.11.0/frmts/gif/giflib/egif_lib.c:137:(.text+0x4f7): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `setmode'
collect2: error: ld returned 1 exit status
GNUmakefile:41: recipe for target 'libgdal.la' failed
make[1]: *** [libgdal.la] Error 1
make[1]: Leaving directory '/home/Hanson/gdal-1.11.0'
GNUmakefile:50: recipe for target 'check-lib' failed
make: *** [check-lib] Error 2


More information about the gdal-dev mailing list