As title, I entered the bcc/src/cc/libbpf dir and checkout the branch to main then make
Link error occured as bellow, could someone help me to check this?
[ 36%] Linking CXX executable bps
/usr/bin/ld: ../src/cc/libbcc_bpf.a(libbpf.c.o): in function `bpf_program__attach_uprobe_multi':
libbpf.c:(.text+0x11d7d): undefined reference to `elf_resolve_pattern_offsets'
/usr/bin/ld: libbpf.c:(.text+0x11f4f): undefined reference to `elf_resolve_syms_offsets'
/usr/bin/ld: ../src/cc/libbcc_bpf.a(libbpf.c.o): in function `bpf_program__attach_uprobe_opts':
libbpf.c:(.text+0x12455): undefined reference to `elf_find_func_offset'
/usr/bin/ld: libbpf.c:(.text+0x124c7): undefined reference to `elf_find_func_offset_from_file'
/usr/bin/ld: ../src/cc/libbcc_bpf.a(libbpf.c.o): in function `kernel_supports':
libbpf.c:(.text+0x3e45): undefined reference to `feat_supported'
/usr/bin/ld: libbpf.c:(.text+0x3e58): undefined reference to `feat_supported'
/usr/bin/ld: ../src/cc/libbcc_bpf.a(bpf.c.o): in function `bump_rlimit_memlock':
bpf.c:(.text+0x2c8): undefined reference to `feat_supported'
/usr/bin/ld: ../src/cc/libbcc_bpf.a(bpf.c.o): in function `bpf_map_create':
bpf.c:(.text+0x402): undefined reference to `feat_supported'
/usr/bin/ld: bpf.c:(.text+0x642): undefined reference to `feat_supported'
/usr/bin/ld: ../src/cc/libbcc_bpf.a(bpf.c.o):bpf.c:(.text+0xa08): more undefined references to `feat_supported' follow
/usr/bin/ld: ../src/cc/libbcc_bpf.a(usdt.c.o): in function `usdt_manager_attach_usdt':
usdt.c:(.text+0x7ce): undefined reference to `elf_open'
/usr/bin/ld: usdt.c:(.text+0xff7): undefined reference to `elf_close'
/usr/bin/ld: usdt.c:(.text+0x18be): undefined reference to `elf_close'
collect2: error: ld returned 1 exit status
make[2]: *** [introspection/CMakeFiles/bps.dir/build.make:98: introspection/bps] Error 1
make[1]: *** [CMakeFiles/Makefile2:1046: introspection/CMakeFiles/bps.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
As title, I entered the bcc/src/cc/libbpf dir and checkout the branch to main then
make
Link error occured as bellow, could someone help me to check this?