[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with catch2 transition needed



Hi, you may want to see #1054706.
Best wishes,
Jerome

On 07/11/2023 14:18, Andreas Tille wrote:
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



--
Jerome BENOIT | calculus+at-rezozer^dot*net
https://qa.debian.org/developer.php?login=calculus@rezozer.net
AE28 AE15 710D FF1D 87E5  A762 3F92 19A6 7F36 C68B

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: