tce-load -i compiletc cmake libwebp1-dev openjpeg-dev giflib7-dev https://github.com/DanBloomberg/leptonica/releases/download/1.78.0/leptonica-1.78.0.tar.gz leptonica-1.78.0 mkdir build cd build cmake -LAH -DCMAKE_C_FLAGS_RELEASE="-flto -fuse-linker-plugin -mtune=generic -Os -pipe" -DCMAKE_CXX_FLAGS_RELEASE="-flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=TRUE ../ make [0m 53.77s] sudo make install /usr/src/leptonica-1.78.0/src/gifio.c: In function 'gifToPix': /usr/src/leptonica-1.78.0/src/gifio.c:241:9: error: too many arguments to function 'DGifCloseFile' DGifCloseFile(gif, &giferr);