[Debichem-devel] Bug#1054707: Help with catch2 transition needed
Andreas Tille
andreas at an3as.eu
Tue Nov 7 13:18:00 GMT 2023
Hi,
as per bug #1054707 libodsstream failed to build from source due to
/<<PKGBUILDDIR>>/test/test_ods.cpp:3:10: fatal error: catch2/catch.hpp: No such file or directory
3 | #include <catch2/catch.hpp>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
I noticed that catch2 does not contain the header file catch.hpp any
more. There is now some catch_all.hpp. So I replaced this header file
in a patch[1] but obviously this problem can't be solved by pure wild
guessing since this has lead to
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
and my manually added main() function (also in patch[2]) did not
enhanced the situation much since its now running into linker errors[2].
Any hint how to fix this catch2 issue properly would be welcome
Andreas.
[1] https://salsa.debian.org/debichem-team/libodsstream/-/blob/master/debian/patches/new_catch2_usage.patch
[2] https://salsa.debian.org/debichem-team/libodsstream/-/jobs/4898134
--
http://fam-tille.de
More information about the Debichem-devel
mailing list