[Debichem-devel] Bug#1054707: libodsstream: FTBFS: test_ods.cpp:3:10: fatal error: catch2/catch.hpp: No such file or directory
Andreas Tille
andreas at an3as.eu
Tue Nov 7 07:27:57 GMT 2023
Hi,
seems the usage of the catch2 library has changed. I've tried
#define CATCH_CONFIG_MAIN
-#include <catch2/catch.hpp>
+#include <catch2/catch_all.hpp>
#include "config.h"
which 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'
Thus I've added a main() function in my patch[1] but this leads to linker
errors[2].
Just summarizing the situation here in the bug log. Will ask for help by catch2
experts.
Kind regards
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