kermitt2 / pdfalto

PDF to XML ALTO file converter
GNU General Public License v2.0
216 stars 70 forks source link

Building on arm64 Ubuntu Server 22.04 fails #157

Open vrurg opened 1 year ago

vrurg commented 1 year ago

Something to do with the late changes to the language standard, I guess. Though my days of C++ programming are over too long ago... Anyway, here are diagnostics:

cmake . && cmake --build . ends up with the following output:

[  1%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/AcroForm.cc.o
[  2%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Annot.cc.o
[  2%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Array.cc.o
[  3%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/BuiltinFont.cc.o
[  4%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/BuiltinFontTables.cc.o
[  5%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Catalog.cc.o
[  5%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/CharCodeToUnicode.cc.o
[  6%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/CMap.cc.o
[  7%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Decrypt.cc.o
[  8%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Dict.cc.o
[  8%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/DisplayState.cc.o
[  9%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Error.cc.o
[ 10%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/FontEncodingTables.cc.o
[ 11%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Function.cc.o
[ 11%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Gfx.cc.o
[ 12%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/GfxFont.cc.o
[ 13%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/GfxState.cc.o
[ 14%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/GlobalParams.cc.o
In file included from /home/vrurg/src/pdfalto/xpdf-4.03/xpdf/GlobalParams.cc:70:
/home/vrurg/src/pdfalto/xpdf-4.03/xpdf/UnicodeToUnicodeFontRules.h:28:10: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   28 |         {"AdvTT3f84ef53", 61550, advtt3f84ef53}
      |          ^~~~~~~~~~~~~~~
[ 14%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/JArithmeticDecoder.cc.o
[ 15%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/JBIG2Stream.cc.o
[ 16%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/JPXStream.cc.o
[ 17%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Lexer.cc.o
[ 18%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Link.cc.o
[ 18%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/NameToCharCode.cc.o
[ 19%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Object.cc.o
[ 20%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/OptionalContent.cc.o
[ 21%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Outline.cc.o
[ 21%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/OutputDev.cc.o
[ 22%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Page.cc.o
[ 23%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Parser.cc.o
[ 24%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/PDFCore.cc.o
[ 24%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/PDF417Barcode.cc.o
[ 25%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/PDFDoc.cc.o
[ 26%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/PDFDocEncoding.cc.o
[ 27%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/PSTokenizer.cc.o
[ 27%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/SecurityHandler.cc.o
[ 28%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Stream.cc.o
[ 29%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/TextString.cc.o
[ 30%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/UnicodeMap.cc.o
[ 30%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/UnicodeRemapping.cc.o
[ 31%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/UnicodeTypeTable.cc.o
[ 32%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/UTF8.cc.o
[ 33%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/XFAScanner.cc.o
[ 33%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/XRef.cc.o
[ 34%] Building CXX object xpdf-4.03/xpdf/CMakeFiles/xpdf.dir/Zoox.cc.o
[ 35%] Linking CXX static library ../build/xpdf/lib/libxpdf.a
[ 35%] Built target xpdf
[ 35%] Building CXX object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/FixedPoint.cc.o
[ 36%] Building CXX object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/GHash.cc.o
[ 37%] Building CXX object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/GList.cc.o
[ 38%] Building CXX object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/GString.cc.o
[ 38%] Building CXX object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/gfile.cc.o
[ 39%] Building CXX object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/gmem.cc.o
[ 40%] Building CXX object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/gmempp.cc.o
[ 41%] Building C object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/parseargs.c.o
[ 41%] Building CXX object xpdf-4.03/goo/CMakeFiles/goo_objs.dir/Trace.cc.o
[ 41%] Built target goo_objs
[ 42%] Linking CXX static library libgoo.a
[ 42%] Built target goo
[ 43%] Building CXX object xpdf-4.03/fofi/CMakeFiles/fofi_objs.dir/FoFiBase.cc.o
[ 44%] Building CXX object xpdf-4.03/fofi/CMakeFiles/fofi_objs.dir/FoFiEncodings.cc.o
[ 45%] Building CXX object xpdf-4.03/fofi/CMakeFiles/fofi_objs.dir/FoFiIdentifier.cc.o
[ 45%] Building CXX object xpdf-4.03/fofi/CMakeFiles/fofi_objs.dir/FoFiTrueType.cc.o
[ 46%] Building CXX object xpdf-4.03/fofi/CMakeFiles/fofi_objs.dir/FoFiType1.cc.o
[ 47%] Building CXX object xpdf-4.03/fofi/CMakeFiles/fofi_objs.dir/FoFiType1C.cc.o
[ 47%] Built target fofi_objs
[ 47%] Linking CXX static library libfofi.a
[ 47%] Built target fofi
[ 48%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/Splash.cc.o
[ 48%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashBitmap.cc.o
[ 49%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashClip.cc.o
[ 50%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashFTFont.cc.o
[ 51%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashFTFontEngine.cc.o
[ 52%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashFTFontFile.cc.o
[ 52%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashFont.cc.o
[ 53%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashFontEngine.cc.o
[ 54%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashFontFile.cc.o
[ 55%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashFontFileID.cc.o
[ 55%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashPath.cc.o
[ 56%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashPattern.cc.o
[ 57%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashScreen.cc.o
[ 58%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashState.cc.o
[ 58%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashXPath.cc.o
[ 59%] Building CXX object xpdf-4.03/splash/CMakeFiles/splash_objs.dir/SplashXPathScanner.cc.o
[ 59%] Built target splash_objs
[ 60%] Linking CXX static library libsplash.a
[ 60%] Built target splash
[ 61%] Building CXX object CMakeFiles/pdfalto.dir/src/AnnotsXrce.cc.o
[ 62%] Building CXX object CMakeFiles/pdfalto.dir/src/ConstantsUtils.cc.o
[ 63%] Building CXX object CMakeFiles/pdfalto.dir/src/ConstantsXML.cc.o
[ 63%] Building CXX object CMakeFiles/pdfalto.dir/src/Parameters.cc.o
[ 64%] Building CXX object CMakeFiles/pdfalto.dir/src/PDFDocXrce.cc.o
[ 65%] Building C object CMakeFiles/pdfalto.dir/src/whereami.c.o
[ 66%] Building CXX object CMakeFiles/pdfalto.dir/src/pdfalto.cc.o
[ 66%] Building CXX object CMakeFiles/pdfalto.dir/src/XmlAltoOutputDev.cc.o
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc: In constructor ‘TextWord::TextWord(GList*, int, int, int, int, GBool, GfxState*, TextFontInfo*, double, int, int)’:
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:713:93: error: call of overloaded ‘UnicodeString(wchar_t)’ is ambiguous
  713 |                         baseChar = new UnicodeString(wchar_t(getStandardBaseChar(chPrev->c)));
      |                                                                                             ^
In file included from /home/vrurg/src/pdfalto/libs/icu/common/unicode/uniset.h:17,
                 from /home/vrurg/src/pdfalto/libs/icu/common/unicode/normalizer2.h:32,
                 from /home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:45:
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3322:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(icu_62::UnicodeString&&)’
 3322 |   UnicodeString(UnicodeString &&src) U_NOEXCEPT;
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3314:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(const icu_62::UnicodeString&)’
 3314 |   UnicodeString(const UnicodeString& that);
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2984:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(UChar32)’
 2984 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(UChar32 ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2973:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(char16_t)’
 2973 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(char16_t ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:717:85: error: call of overloaded ‘UnicodeString(wchar_t)’ is ambiguous
  717 |                     baseChar = new UnicodeString(wchar_t(getStandardBaseChar(ch->c)));
      |                                                                                     ^
In file included from /home/vrurg/src/pdfalto/libs/icu/common/unicode/uniset.h:17,
                 from /home/vrurg/src/pdfalto/libs/icu/common/unicode/normalizer2.h:32,
                 from /home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:45:
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3322:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(icu_62::UnicodeString&&)’
 3322 |   UnicodeString(UnicodeString &&src) U_NOEXCEPT;
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3314:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(const icu_62::UnicodeString&)’
 3314 |   UnicodeString(const UnicodeString& that);
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2984:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(UChar32)’
 2984 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(UChar32 ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2973:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(char16_t)’
 2973 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(char16_t ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:721:74: error: call of overloaded ‘UnicodeString(wchar_t)’ is ambiguous
  721 |                     diacriticChar = new UnicodeString(wchar_t(diactritic));
      |                                                                          ^
In file included from /home/vrurg/src/pdfalto/libs/icu/common/unicode/uniset.h:17,
                 from /home/vrurg/src/pdfalto/libs/icu/common/unicode/normalizer2.h:32,
                 from /home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:45:
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3322:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(icu_62::UnicodeString&&)’
 3322 |   UnicodeString(UnicodeString &&src) U_NOEXCEPT;
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3314:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(const icu_62::UnicodeString&)’
 3314 |   UnicodeString(const UnicodeString& that);
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2984:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(UChar32)’
 2984 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(UChar32 ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2973:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(char16_t)’
 2973 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(char16_t ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc: In member function ‘void TextRawWord::addChar(GfxState*, double, double, double, double, Unicode, CharCode, int, GBool, TextFontInfo*, double, SplashFont*, int, int, GBool)’:
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:1091:81: error: call of overloaded ‘UnicodeString(wchar_t)’ is ambiguous
 1091 |                     baseChar = new UnicodeString(wchar_t(getStandardBaseChar(u)));
      |                                                                                 ^
In file included from /home/vrurg/src/pdfalto/libs/icu/common/unicode/uniset.h:17,
                 from /home/vrurg/src/pdfalto/libs/icu/common/unicode/normalizer2.h:32,
                 from /home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:45:
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3322:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(icu_62::UnicodeString&&)’
 3322 |   UnicodeString(UnicodeString &&src) U_NOEXCEPT;
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3314:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(const icu_62::UnicodeString&)’
 3314 |   UnicodeString(const UnicodeString& that);
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2984:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(UChar32)’
 2984 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(UChar32 ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2973:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(char16_t)’
 2973 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(char16_t ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:1099:83: error: call of overloaded ‘UnicodeString(wchar_t)’ is ambiguous
 1099 |                 baseChar = new UnicodeString(wchar_t(getStandardBaseChar(prvChar)));
      |                                                                                   ^
In file included from /home/vrurg/src/pdfalto/libs/icu/common/unicode/uniset.h:17,
                 from /home/vrurg/src/pdfalto/libs/icu/common/unicode/normalizer2.h:32,
                 from /home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:45:
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3322:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(icu_62::UnicodeString&&)’
 3322 |   UnicodeString(UnicodeString &&src) U_NOEXCEPT;
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3314:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(const icu_62::UnicodeString&)’
 3314 |   UnicodeString(const UnicodeString& that);
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2984:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(UChar32)’
 2984 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(UChar32 ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2973:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(char16_t)’
 2973 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(char16_t ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:1103:70: error: call of overloaded ‘UnicodeString(wchar_t)’ is ambiguous
 1103 |                 diacriticChar = new UnicodeString(wchar_t(diactritic));
      |                                                                      ^
In file included from /home/vrurg/src/pdfalto/libs/icu/common/unicode/uniset.h:17,
                 from /home/vrurg/src/pdfalto/libs/icu/common/unicode/normalizer2.h:32,
                 from /home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:45:
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3322:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(icu_62::UnicodeString&&)’
 3322 |   UnicodeString(UnicodeString &&src) U_NOEXCEPT;
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:3314:3: note: candidate: ‘icu_62::UnicodeString::UnicodeString(const icu_62::UnicodeString&)’
 3314 |   UnicodeString(const UnicodeString& that);
      |   ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2984:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(UChar32)’
 2984 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(UChar32 ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/libs/icu/common/unicode/unistr.h:2973:29: note: candidate: ‘icu_62::UnicodeString::UnicodeString(char16_t)’
 2973 |   UNISTR_FROM_CHAR_EXPLICIT UnicodeString(char16_t ch);
      |                             ^~~~~~~~~~~~~
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc: In member function ‘void TextPage::testLinkedText(xmlNodePtr, double, double, double, double)’:
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:3130:78: warning: ‘%g’ directive output may be truncated writing between 1 and 13 bytes into a region of size between 0 and 4 [-Wformat-truncation=]
 3130 |                                             snprintf(tmp, sizeof(tmp), "p-%d %g %g", page, x, y);
      |                                                                              ^~
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:3130:72: note: assuming directive output of 12 bytes
 3130 |                                             snprintf(tmp, sizeof(tmp), "p-%d %g %g", page, x, y);
      |                                                                        ^~~~~~~~~~~~
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:3130:72: note: assuming directive output of 12 bytes
/home/vrurg/src/pdfalto/src/XmlAltoOutputDev.cc:3130:53: note: ‘snprintf’ output between 8 and 42 bytes into a destination of size 8
 3130 |                                             snprintf(tmp, sizeof(tmp), "p-%d %g %g", page, x, y);
      |                                             ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/pdfalto.dir/build.make:174: CMakeFiles/pdfalto.dir/src/XmlAltoOutputDev.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:180: CMakeFiles/pdfalto.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
jonasrenault commented 4 months ago

I'm getting the same error when trying to compile pdfalto in a docker container running Ubuntu with aarch64 architecture. Any tips or ideas on how to fix these errors would be greatly appreciated...