mcbridematt / vyos-arm64-builder

Bootstrap VyOS for ARM64
37 stars 7 forks source link

Compile Error #4

Open stormanger opened 2 years ago

stormanger commented 2 years ago

Hi,

I have this problem when I run the build, Can you help me take a look? My build ENV: Debian11, arm64 CPU; I am using the source code of this repository: $ git clone -b current --single-branch https://github.com/vyos/vyos-build

Follow is the error:


gcc -g -Wall -I../include/ -c -o common_user_bpf_xdp.o common_user_bpf_xdp.c
common_user_bpf_xdp.c: In function ‘load_bpf_and_xdp_attach’:
common_user_bpf_xdp.c:277:2: warning: ‘bpf_program__title’ is deprecated: BPF program title is confusing term; please use bpf_program__section_name() instead [-Wdeprecated-declarations]
  277 |  strncpy(cfg->progsec, bpf_program__title(bpf_prog, false), sizeof(cfg->progsec));
      |  ^~~~~~~
In file included from common_user_bpf_xdp.c:1:
/usr/include/bpf/libbpf.h:203:13: note: declared here
  203 | const char *bpf_program__title(const struct bpf_program *prog, bool needs_copy);
      |             ^~~~~~~~~~~~~~~~~~
gcc -g -Wall -I../include/ -c -o common_libbpf.o common_libbpf.c
make[4]: Leaving directory '/tmp/vyos-build-arm64/build/vyos-1x/src/xdp/common'
cc -Wall  -Wl,-z,relro -o xdp_prog_user common/common_params.o common/common_user_bpf_xdp.o \
 xdp_prog_user.c -l:libbpf.a -lelf
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/10/../../../aarch64-linux-gnu/libbpf.a(libbpf.o): undefined reference to symbol 'gzopen64@@ZLIB_1.2.3.3'
/usr/bin/ld: /lib/aarch64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[3]: *** [common/common.mk:89: xdp_prog_user] Error 1
make[3]: Leaving directory '/tmp/vyos-build-arm64/build/vyos-1x/src/xdp'
make[2]: *** [Makefile:69: vyxdp] Error 2
make[2]: Leaving directory '/tmp/vyos-build-arm64/build/vyos-1x'
make[1]: *** [debian/rules:30: override_dh_auto_build] Error 2
make[1]: Leaving directory '/tmp/vyos-build-arm64/build/vyos-1x'
make: *** [debian/rules:19: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2```