vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

[BUG]: Compiler error on Ubuntu 20.04 due the missing vector header

Open nate-li-ps opened this issue 1 year ago • 4 comments

vSomeip Version

v3.4.10

Boost Version

1.7*

Environment

Ubuntu 20.04

Describe the bug

The header file "interface/vsomeip/handler.hpp" uses the "std::vector" type without including the relative header file "". It compiles OK on higher versions of GCC on Ubuntu 22.04, but it is just pure luck.

The "handler.h" header should explicitly include to avoid relying on the implementational details of other headers.

Reproduction Steps

No response

Expected behaviour

No response

Logs and Screenshots

No response

nate-li-ps avatar Aug 29 '24 01:08 nate-li-ps

hi @nate-li-parasoft thanks for the input. what are the reproduction steps for this bug? building vsomeip on Ubuntu 20.04?

duartenfonseca avatar Sep 06 '24 09:09 duartenfonseca

I think the compiling error can be reproducted by compiling the project using GCC-9.

nate-li-ps avatar Sep 09 '24 06:09 nate-li-ps

here is a log of me building vsomeip on gcc9: logs.txt

is there any other specific characteristic of the environment that could be creating this fail? could you send logs?

duartenfonseca avatar Sep 10 '24 09:09 duartenfonseca

The compiler error appears when I tried to compile the library using javacpp(a JNI helper library).

I managed to extract the step generating the error as follows. Put the following code inside a "test.cpp" at the root of the repository, and run command "g++ -I./interface test.cpp"

#include <vsomeip/enumeration_types.hpp>
#include <vsomeip/handler.hpp>

int main()
{
  return 1;
}

nate-li-ps avatar Sep 20 '24 03:09 nate-li-ps

should be fixed with latest sw

fcmonteiro avatar Nov 19 '25 15:11 fcmonteiro