[Debichem-devel] Bug#1054707: Help with catch2 transition needed

Andreas Tille andreas at an3as.eu
Tue Nov 7 13:50:32 GMT 2023


Hi Petr,

Am Tue, Nov 07, 2023 at 02:41:00PM +0100 schrieb Petr Kubánek:
> catch2 is a bit complicated story. Look on GitHub, unfortunately catch2 v2.x
> changed headers, just for catch2 v3.x to change it back. Best is to use catch2
> v3.x, but that comes with a static library you need to link ASIK.

As you can see in the build log on Salsa[2] catch2 3.4.0-1 is used -
just the version that is in unstable.  Do you want to tell me that I
need to add some extra library in the linker command line (via
test/CMakeLists.txt) and if yes which library is this?

Kind regards
    Andreas.
 
> Dne 7. 11. 2023 14:18 napsal uživatel Andreas Tille <andreas at an3as.eu>:
> 
> 
>     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 
>      
> 
> 

-- 
http://fam-tille.de



More information about the Debichem-devel mailing list