Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Dependency updates / trivial fixes #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

ceggers-arri
Copy link

Hi Łukasz,

I am just evaluating your comprehensive cpp-can-isotp library. In order to be compatible with
my compiler / C++ library, I had to update the external dependencies first.

I cannot yet tell yet whether I will actually use it in my STM32 project. I would like to exchange NanoPb
messages via ISO-TP, preferably transferring the encoded data on-the-fly (without requiring an intermediate
buffer for the full ISO-TP message).

Please let me know whether contributions are still welcome.

Compatibility with CMake < 3.5 is beeing deprecated starting from CMake
3.27:

https://cmake.org/cmake/help/latest/release/3.27.html#deprecated-and-removed-features

Signed-off-by: Christian Eggers <ceggers@arri.de>
test/socket-test/main.cc:76:9: error: ‘fd_set’ was not declared in this scope
test/socket-test/main.cc:79:27: error: ‘rdfs’ was not declared in this scope
...

Signed-off-by: Christian Eggers <ceggers@arri.de>
deps/fmt/include/fmt/core.h:361:6: warning: identifier ‘char8_t’ is a
keyword in C++20 [-Wc++20-compat]

socket-test links fine without fmt/src/posix.cc (this has been renamed
to os.cc)

Signed-off-by: Christian Eggers <ceggers@arri.de>
deps/etl/include/etl/map.h:577:34: warning: ‘template<class _Category,
class _Tp, class _Distance, class _Pointer, class _Reference> struct
std::iterator’ is deprecated [-Wdeprecated-declarations]

Separate inclusion of <etl/array.h> is required as this header is not
leaked via <etl/map.h> anymore.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Catch2 < v2.13.5 does not work with glibc >= 2.34 as MINSIGSTKSZ and
SIGSTKSZ are not constant anymore on Linux:

https://sourceware.org/pipermail/libc-alpha/2021-August/129718.html

test/unit-test/catch.hpp:9041:58: error: call to non-‘constexpr’
function ‘long int sysconf(int)’
 9041 |     constexpr static std::size_t sigStackSize = 32768 >=
MINSIGSTKSZ ? 32768 : MINSIGSTKSZ;

This is been been addressed by Catch2 here:
https://github.com/catchorg/Catch2/blob/v2.x/docs/release-notes.md#2135

Include Catch2 via Git submodule as done for other dependencies.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Christian Eggers <ceggers@arri.de>
Just for clarity / constistency with other operations, the result is the
same.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Christian Eggers <ceggers@arri.de>
@iwasz
Copy link
Owner

iwasz commented Jan 15, 2025

Hey, I'll take a look at this on weekend, thanks.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants