-
Notifications
You must be signed in to change notification settings - Fork 102
Description
i tried installing polycube for ubuntu 22,04 following the installation guide, the /scripts/install.sh throws error, as it tries to install dependencies for ubuntu 18.0 so, manually i tried installing all the dependencies and followed the installation steps like:
git clone https://github.com/polycube-network/polycube
cd polycube
git submodule update --init --recursive
mkdir build && cd build
use 'ccmake ..' to change different compilation options as
enable/disable some services for example
cmake ..
make -j $(getconf _NPROCESSORS_ONLN)
sudo make install
However while build process , i m getting this FOLOWING Errors:
89%] Building CXX object src/polycubed/src/CMakeFiles/polycubed.dir/extiface_xdp.cpp.o
In file included from /usr/include/pcap/pcap.h:133,
from /usr/include/pcap.h:43,
from /usr/local/include/tins/packet_writer.h:40,
from /usr/local/include/tins/tins.h:50,
from /home/arish/polycube/src/polycubed/src/controller.cpp:29:
/usr/include/pcap/bpf.h:245:8: error: redefinition of ‘struct bpf_insn’
245 | struct bpf_insn {
| ^~~~~~~~
In file included from /home/arish/polycube/src/libs/bcc/src/cc/bcc_syms.h:24,
from /home/arish/polycube/src/libs/bcc/src/cc/api/BPFTable.h:30,
from /home/arish/polycube/src/libs/bcc/src/cc/api/BPF.h:25,
from /home/arish/polycube/src/polycubed/src/patchpanel.h:21,
from /home/arish/polycube/src/polycubed/src/base_cube.h:21,
from /home/arish/polycube/src/polycubed/src/cube.h:19,
from /home/arish/polycube/src/polycubed/src/cube_tc.h:19,
from /home/arish/polycube/src/polycubed/src/controller.h:19,
from /home/arish/polycube/src/polycubed/src/controller.cpp:19:
/home/arish/polycube/src/libs/bcc/src/cc/libbpf/include/uapi/linux/bpf.h:71:8: note: previous definition of ‘struct bpf_insn’
71 | struct bpf_insn {
| ^~~~~~~~
[ 89%] Building CXX object src/polycubed/src/CMakeFiles/polycubed.dir/service_controller.cpp.o
/home/arish/polycube/src/polycubed/src/controller.cpp: In member function ‘void polycube::polycubed::Controller::log_msg(const polycube::service::LogMsg*)’:
/home/arish/polycube/src/polycubed/src/controller.cpp:408:68: warning: taking address of packed member of ‘polycube::service::LogMsg’ may result in an unaligned pointer value [-Waddress-of-packed-member]
408 | polycube::service::utils::format_debug_string(msg->msg, msg->args);
| ~~~~~^~~~
[ 89%] Building CXX object src/polycubed/src/CMakeFiles/polycubed.dir/patchpanel.cpp.o
[ 89%] Building CXX object src/polycubed/src/CMakeFiles/polycubed.dir/datapath_log.cpp.o
make[2]: *** [src/polycubed/src/CMakeFiles/polycubed.dir/build.make:342: src/polycubed/src/CMakeFiles/polycubed.dir/controller.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:5276: src/polycubed/src/CMakeFiles/polycubed.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
any suggestions , what changes should i make, and how to install polycube services for ubuntu 22.04?