I tried to compile 24.2.0.1 tarball, but always fails with zlib: /bin/ld: /var/uhubuild/work/compile/workdir/UnpackedTarball/libcdr/src/lib/.libs/libcdr-0.1.a(CDRInternalStream.o): in function `libcdr::CDRInternalStream::CDRInternalStream(librevenge::RVNGInputStream*, unsigned long, bool)': CDRInternalStream.cpp:(.text+0x36c): undefined reference to `inflateInit_' /bin/ld: CDRInternalStream.cpp:(.text+0x419): undefined reference to `inflate' /bin/ld: CDRInternalStream.cpp:(.text+0x52e): undefined reference to `inflateEnd' /bin/ld: CDRInternalStream.cpp:(.text+0x5af): undefined reference to `inflateEnd' /bin/ld: /var/uhubuild/work/compile/workdir/UnpackedTarball/libfreehand/src/lib/.libs/libfreehand-0.1.a(FHInternalStream.o): in function `libfreehand::FHInternalStream::FHInternalStream(librevenge::RVNGInputStream*, unsigned long, bool)': FHInternalStream.cpp:(.text+0x2bc): undefined reference to `inflateInit_' /bin/ld: FHInternalStream.cpp:(.text+0x369): undefined reference to `inflate' /bin/ld: FHInternalStream.cpp:(.text+0x47e): undefined reference to `inflateEnd' /bin/ld: FHInternalStream.cpp:(.text+0x4ff): undefined reference to `inflateEnd' /bin/ld: /var/uhubuild/work/compile/workdir/UnpackedTarball/libmspub/src/lib/.libs/libmspub-0.1.a(libmspub_utils.o): in function `libmspub::inflateData(librevenge::RVNGBinaryData)': libmspub_utils.cpp:(.text+0x385): undefined reference to `inflateInit2_' /bin/ld: libmspub_utils.cpp:(.text+0x413): undefined reference to `inflate' /bin/ld: libmspub_utils.cpp:(.text+0x455): undefined reference to `inflateEnd' /bin/ld: libmspub_utils.cpp:(.text+0x474): undefined reference to `inflateEnd' [build BIN] filter /bin/ld: /var/uhubuild/work/compile/workdir/UnpackedTarball/libzmf/src/lib/.libs/libzmf-0.0.a(BMIParser.o): in function `libzmf::BMIParser::readData(unsigned int)': BMIParser.cpp:(.text+0x513): undefined reference to `inflateInit2_' /bin/ld: BMIParser.cpp:([build MOD] forms .text+0x5ea): undefined reference to `inflate' /bin/ld: BMIParser.cpp:(.text+0x609): undefined reference to `inflateEnd' I tried with --with-system-zlib / --without-system-zlib, --with-system-librevenge / --without-system-librevenge, but the build always fails.
Usually build problems are discussed on the developer mailing list. Which Linux distribution? Which compiler & version?
This is a small distribution. I use gcc 12.3.0 and binutils 2.41. Because I can compile the 7.6.4.1 without any errors, I searched the differences between 7.6.4.1 and (now) 24.2.0.2. I found this commit as relevant: https://github.com/LibreOffice/core/commit/6f60670877208612b5ea320b3677480ef6508abb I added again the "zlib" to writerperfect/Library_wpftcalc.mk, writerperfect/Library_wpftdraw.mk and writerperfect/Library_wpftimpress.mk. With tis modification I compiled LO 24.2.0.2 succesfully.
[Automated Action] NeedInfo-To-Unconfirmed
Gábor: can you re-review your 6f60670877208612b5ea320b3677480ef6508abb in light of this?
It could be fixed with the commit: https://git.libreoffice.org/libcdr/+/66791028583cb177627cc46b013f9e89dd13c469 It is also caused issues described at: https://git.libreoffice.org/core/+/05aedcba6672979d317b540bbfa74f5c9b409402