Hi,
libpodofo fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.
The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/libpodofo_arm64.build.xz
The last lines of the build log are at the end of this report.
To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html
Please only close this issue after double-checking that the package can be
built correctly with GCC 16.
Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.
[...]
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text+0x280c): undefined reference to `_ZN6PoDoFo17PdfEncryptAESBaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptSHABaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:457:(.text+0x2810): undefined reference to `_ZTVN6PoDoFo17PdfEncryptSHABaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:457:(.text+0x2814): undefined reference to `_ZTVN6PoDoFo17PdfEncryptSHABaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo15PdfEncryptAESV2D4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text+0x2a30): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV2E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text+0x2a34): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV2E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text+0x2a44): undefined reference to `_ZN6PoDoFo17PdfEncryptAESBaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptMD5BaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text+0x2a48): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text+0x2a4c): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text+0x2a5c): undefined reference to `_ZN6PoDoFo17PdfEncryptRC4BaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text+0x2aa4): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text+0x2aa8): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text+0x2ab8): undefined reference to `_ZN6PoDoFo17PdfEncryptRC4BaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo15PdfEncryptAESV3D4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text+0x2ae8): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV3E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text+0x2aec): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV3E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text+0x2afc): undefined reference to `_ZN6PoDoFo17PdfEncryptAESBaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptSHABaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:457:(.text+0x2b00): undefined reference to `_ZTVN6PoDoFo17PdfEncryptSHABaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:457:(.text+0x2b04): undefined reference to `_ZTVN6PoDoFo17PdfEncryptSHABaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo15PdfEncryptAESV3D4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text._ZN6PoDoFo15PdfEncryptAESV3D0Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x14): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV3E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text._ZN6PoDoFo15PdfEncryptAESV3D0Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x18): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV3E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text._ZN6PoDoFo15PdfEncryptAESV3D0Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x28): undefined reference to `_ZN6PoDoFo17PdfEncryptAESBaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptSHABaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:457:(.text._ZN6PoDoFo15PdfEncryptAESV3D0Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x2c): undefined reference to `_ZTVN6PoDoFo17PdfEncryptSHABaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:457:(.text._ZN6PoDoFo15PdfEncryptAESV3D0Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x30): undefined reference to `_ZTVN6PoDoFo17PdfEncryptSHABaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptMD5BaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo13PdfEncryptRC4D0Ev[_ZN6PoDoFo13PdfEncryptRC4D5Ev]+0x14): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo13PdfEncryptRC4D0Ev[_ZN6PoDoFo13PdfEncryptRC4D5Ev]+0x18): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo13PdfEncryptRC4D0Ev[_ZN6PoDoFo13PdfEncryptRC4D5Ev]+0x28): undefined reference to `_ZN6PoDoFo17PdfEncryptRC4BaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo15PdfEncryptAESV2D4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text._ZN6PoDoFo15PdfEncryptAESV2D0Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x14): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV2E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text._ZN6PoDoFo15PdfEncryptAESV2D0Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x18): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV2E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text._ZN6PoDoFo15PdfEncryptAESV2D0Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x28): undefined reference to `_ZN6PoDoFo17PdfEncryptAESBaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptMD5BaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo15PdfEncryptAESV2D0Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x2c): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo15PdfEncryptAESV2D0Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x30): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo15PdfEncryptAESV2D0Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x40): undefined reference to `_ZN6PoDoFo17PdfEncryptRC4BaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo15PdfEncryptAESV2D2Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text._ZN6PoDoFo15PdfEncryptAESV2D2Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x14): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV2E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text._ZN6PoDoFo15PdfEncryptAESV2D2Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x18): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV2E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:684:(.text._ZN6PoDoFo15PdfEncryptAESV2D2Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x28): undefined reference to `_ZN6PoDoFo17PdfEncryptAESBaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptMD5BaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo15PdfEncryptAESV2D2Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x2c): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo15PdfEncryptAESV2D2Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x30): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo15PdfEncryptAESV2D2Ev[_ZN6PoDoFo15PdfEncryptAESV2D5Ev]+0x40): undefined reference to `_ZN6PoDoFo17PdfEncryptRC4BaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo15PdfEncryptAESV3D2Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text._ZN6PoDoFo15PdfEncryptAESV3D2Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x14): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV3E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text._ZN6PoDoFo15PdfEncryptAESV3D2Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x18): undefined reference to `_ZTVN6PoDoFo15PdfEncryptAESV3E'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:735:(.text._ZN6PoDoFo15PdfEncryptAESV3D2Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x28): undefined reference to `_ZN6PoDoFo17PdfEncryptAESBaseD2Ev'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptSHABaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:457:(.text._ZN6PoDoFo15PdfEncryptAESV3D2Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x2c): undefined reference to `_ZTVN6PoDoFo17PdfEncryptSHABaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:457:(.text._ZN6PoDoFo15PdfEncryptAESV3D2Ev[_ZN6PoDoFo15PdfEncryptAESV3D5Ev]+0x30): undefined reference to `_ZTVN6PoDoFo17PdfEncryptSHABaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: CMakeFiles/podofo-test.dir/EncryptTest.cpp.o: in function `_ZN6PoDoFo17PdfEncryptMD5BaseD4Ev':
./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo13PdfEncryptRC4D2Ev[_ZN6PoDoFo13PdfEncryptRC4D5Ev]+0x14): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo13PdfEncryptRC4D2Ev[_ZN6PoDoFo13PdfEncryptRC4D5Ev]+0x18): undefined reference to `_ZTVN6PoDoFo17PdfEncryptMD5BaseE'
/usr/bin/aarch64-linux-gnu-ld.bfd: ./obj-aarch64-linux-gnu/test/unit/./src/podofo/base/PdfEncrypt.h:590:(.text._ZN6PoDoFo13PdfEncryptRC4D2Ev[_ZN6PoDoFo13PdfEncryptRC4D5Ev]+0x28): undefined reference to `_ZN6PoDoFo17PdfEncryptRC4BaseD2Ev'
collect2: error: ld returned 1 exit status
/usr/bin/c++ -g -O2 -ffile-prefix-map=/build/reproducible-path/libpodofo-0.9.8+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Woverloaded-virtual -Wswitch -Wcast-qual -Wwrite-strings -Wredundant-decls -Wreorder -Wno-deprecated-declarations -Wl,-z,relro -Wl,-z,now -Wl,--dependency-file=CMakeFiles/podofo-test.dir/link.d "CMakeFiles/podofo-test.dir/main.cpp.o" "CMakeFiles/podofo-test.dir/ColorTest.cpp.o" "CMakeFiles/podofo-test.dir/DeviceTest.cpp.o" "CMakeFiles/podofo-test.dir/ElementTest.cpp.o" "CMakeFiles/podofo-test.dir/EncodingTest.cpp.o" "CMakeFiles/podofo-test.dir/EncryptTest.cpp.o" "CMakeFiles/podofo-test.dir/FilterTest.cpp.o" "CMakeFiles/podofo-test.dir/FontTest.cpp.o" "CMakeFiles/podofo-test.dir/NameTest.cpp.o" "CMakeFiles/podofo-test.dir/PagesTreeTest.cpp.o" "CMakeFiles/podofo-test.dir/PageTest.cpp.o" "CMakeFiles/podofo-test.dir/PainterTest.cpp.o" "CMakeFiles/podofo-test.dir/ParserTest.cpp.o" "CMakeFiles/podofo-test.dir/TokenizerTest.cpp.o" "CMakeFiles/podofo-test.dir/StringTest.cpp.o" "CMakeFiles/podofo-test.dir/VariantTest.cpp.o" "CMakeFiles/podofo-test.dir/BasicTypeTest.cpp.o" "CMakeFiles/podofo-test.dir/TestUtils.cpp.o" "CMakeFiles/podofo-test.dir/DateTest.cpp.o" -o podofo-test -L/build/reproducible-path/libpodofo-0.9.8+dfsg/obj-aarch64-linux-gnu/src/podofo -Wl,-rpath,"\$ORIGIN/../../src/podofo" -lpodofo -lfontconfig -lfreetype /usr/lib/aarch64-linux-gnu/libz.so /usr/lib/aarch64-linux-gnu/libidn.so -L/usr/lib/aarch64-linux-gnu -lcrypto -lcrypto /usr/lib/aarch64-linux-gnu/libssl.so /usr/lib/aarch64-linux-gnu/libjpeg.so /usr/lib/aarch64-linux-gnu/libfreetype.so /usr/lib/aarch64-linux-gnu/libpng.so /usr/lib/aarch64-linux-gnu/libz.so /usr/lib/aarch64-linux-gnu/libtiff.so /usr/lib/aarch64-linux-gnu/libunistring.so /usr/lib/aarch64-linux-gnu/libcppunit.so /usr/lib/aarch64-linux-gnu/libidn.so -lcrypto -lcrypto /usr/lib/aarch64-linux-gnu/libssl.so /usr/lib/aarch64-linux-gnu/libjpeg.so /usr/lib/aarch64-linux-gnu/libfreetype.so /usr/lib/aarch64-linux-gnu/libpng.so /usr/lib/aarch64-linux-gnu/libtiff.so /usr/lib/aarch64-linux-gnu/libunistring.so /usr/lib/aarch64-linux-gnu/libcppunit.so
make[3]: *** [test/unit/CMakeFiles/podofo-test.dir/build.make:410: test/unit/podofo-test] Error 1
make[3]: Leaving directory '/build/reproducible-path/libpodofo-0.9.8+dfsg/obj-aarch64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:1388: test/unit/CMakeFiles/podofo-test.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/libpodofo-0.9.8+dfsg/obj-aarch64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/libpodofo-0.9.8+dfsg/obj-aarch64-linux-gnu'
dh_auto_build: error: cd obj-aarch64-linux-gnu && make -j128 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2