compile fails on i686
Problem:
Compile fails at about 26% with:
[ 26%] Building CXX object CMakeFiles/poppler.dir/poppler/NSSCryptoSignBackend.cc.o
[ 26%] Building CXX object CMakeFiles/poppler.dir/poppler/GPGMECryptoSignBackend.cc.o
In Datei, eingebunden von /home/tmp/i686/poppler/build/poppler-23.06.0/poppler/GPGMECryptoSignBackend.cc:11:
/usr/include/gpgme.h:111:2: Fehler: #error GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section "Largefile support (LFS)" in the GPGME manual.
111 | #error GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section "Largefile support (LFS)" in the GPGME manual.
| ^~~~~
[ 26%] Building CXX object CMakeFiles/poppler.dir/poppler/JPEG2000Stream.cc.o
make[2]: *** [CMakeFiles/poppler.dir/build.make:1714: CMakeFiles/poppler.dir/poppler/GPGMECryptoSignBackend.cc.o] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet …
make[1]: *** [CMakeFiles/Makefile2:429: CMakeFiles/poppler.dir/all] Fehler 2
make: *** [Makefile:146: all] Fehler 2
System: 32-bit Linux
Distro: Linux From Scratch
Relevant package versions:
- poppler 23.06.0
- gpgme 1.20.0
Possible solution:
I've added a '#include "config.h"' to poppler/GPGMECryptoSignBackend.cc by executing
sed -e "/#include \"GPGMECryptoSignBackend.h\"/i#include \"config.h\"" \
-i poppler/GPGMECryptoSignBackend.cc
With config.h included in GPGMECryptoSignBackend.cc, compile runs pretty fine.