Compile error with latest source code on CentOS Stream
./configure --disable-ssl
make
...
In file included from /usr/include/zlib.h:34,
from ../../src/shared/image_disk.h:26,
from imagefile.h:22,
from imagefile.cpp:36:
/usr/include/zlib.h:1631:32: note: initializing argument 1 of ‘int gzclose(gzFile)’
ZEXTERN int ZEXPORT gzclose OF((gzFile file));
^~
imagefile.cpp: In member function ‘void CImage::closeWriting()’:
imagefile.cpp:611:20: error: cannot convert ‘gzFile_s**’ to ‘gzFile’ {aka ‘gzFile_s*’}
nRes = gzclose(m_gzImageFile);
^~~~~~~~~~~~~
In file included from /usr/include/zlib.h:34,
from ../../src/shared/image_disk.h:26,
from imagefile.h:22,
from imagefile.cpp:36:
/usr/include/zlib.h:1631:32: note: initializing argument 1 of ‘int gzclose(gzFile)’
ZEXTERN int ZEXPORT gzclose OF((gzFile file));
^~
make[4]: *** [Makefile:419: imagefile.o] Error 1
make[4]: Leaving directory '/home/deyinche/partimage-0.6.9/src/client'
make[3]: *** [Makefile:455: all-recursive] Error 1
make[3]: Leaving directory '/home/deyinche/partimage-0.6.9/src/client'
make[2]: *** [Makefile:292: all-recursive] Error 1
make[2]: Leaving directory '/home/deyinche/partimage-0.6.9/src'
make[1]: *** [Makefile:385: all-recursive] Error 1
make[1]: Leaving directory '/home/deyinche/partimage-0.6.9'
make: *** [Makefile:294: all] Error 2
Edited by Chen, Dylan