kata-containers / packaging

Kata Containers version 1.x packaging (for version 2.x see https://github.com/kata-containers/kata-containers).
https://katacontainers.io/
Apache License 2.0
119 stars 92 forks source link

static-build: qemu5: update qemu build dependecies #1058

Closed devimc closed 4 years ago

devimc commented 4 years ago

Add libselinux1-dev, libffi-dev and libmount-dev as build dependencies to fix the following error

16:11:15 /usr/bin/ld: cannot find -lselinux
16:11:15 /usr/bin/ld: cannot find -lmount
16:11:15 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libgmodule-2.0.a(libgmodule_2_0_la-gmodule.o): In function `g_module_open':
16:11:15 (.text+0x4f5): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
16:11:15 /usr/bin/ld: cannot find -lffi
16:11:15 /usr/bin/ld: cannot find -lselinux
16:11:15 /usr/bin/ld: cannot find -lmount
16:11:15 /usr/bin/ld: cannot find -lffi
16:11:15 collect2: error: ld returned 1 exit status
16:11:15 make[1]: *** [qemu-system-x86_64] Error 1
16:11:15 Makefile:208: recipe for target 'qemu-system-x86_64' failed
16:11:15 make: *** [x86_64-softmmu/all] Error 2
16:11:15 Makefile:527: recipe for target 'x86_64-soft