Skip to content

Commit

Permalink
fix(userspace/libsinsp): Include cri.hpp in container.cpp
Browse files Browse the repository at this point in the history
Include cri.hpp in container.cpp in order to avoid

```
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/libsinsp.so: undefined reference to `libsinsp::cri::cri_interface<libsinsp::cri::cri_api_v1>::get_cri_runtime_type() const'
collect2: error: ld returned 1 exit status
```

when building with shared libs on Linux.

Signed-off-by: Gerald Combs <gerald@wireshark.org>
  • Loading branch information
geraldcombs authored and poiana committed Jun 11, 2024
1 parent 7472524 commit e3eb9f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions userspace/libsinsp/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ limitations under the License.

#if !defined(MINIMAL_BUILD) && !defined(__EMSCRIPTEN__)
#include <libsinsp/container_engine/cri.h>
#include <libsinsp/cri.hpp>
#ifndef _WIN32
#include <libsinsp/container_engine/docker/docker_linux.h>
#include <libsinsp/container_engine/docker/podman.h>
Expand Down

0 comments on commit e3eb9f4

Please sign in to comment.