Search results

  1. N

    /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 on centos

    [nobin@CentOS9 tc-dump]$ CGO_ENABLED=1 go build # github.com/Asphaltt/tc-dump /usr/local/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1 /usr/bin/ld: cannot find -lresolv /usr/bin/ld: cannot find -lpthread /usr/bin/ld: cannot find -lc collect2: error: ld returned 1 exit status...
  2. N

    No rule to make target '/home/pegasus/Documents/bpftime/third_party/bpftool/include/linux/err.h', needed by 'prog.o'. Stop

    I'm building a Docker image. docker build . Here's the Dockerfile FROM ubuntu:23.10 WORKDIR /bpftime RUN apt-get update && apt-get install -y --no-install-recommends \ libelf1 libelf-dev zlib1g-dev make cmake git libboost1.74-all-dev \ binutils-dev libyaml-cpp-dev gcc g++...
  3. N

    Detect and capture openconnect traffic using eBPF/XDP

    I'm new to networking. I'm also learning the usage of eBPF. Currently I'm working on a project where I've to capture the inner packet of a openconnect traffic. This is my code: https://github.com/inspektors-io/xdp-tutorial/tree/nobin/xdp_dump_with_grpc xdp_dump.c // Copyright (c) 2019 Dropbox...
  4. N

    invalid access to map value, value_size=128 off=0 size=0; libbpf: prog 'xdp_parser_func': failed to load: -13

    I've completed the assignment as mentioned in the solutions. Here's the repo I'm trying to test on my local machine: https://github.com/xdp-project/xdp-tutorial/blob/master/packet01-parsing/README.org Here's my C code: /* SPDX-License-Identifier: GPL-2.0 */ #include <stddef.h> #include...
  5. N

    go install shows permission denied

    I'm new to Go. How can I find cmd? what is the <PATH_TO> here? How to set GOPATH? pegasus@pegasus:~$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/pegasus/.cache/go-build" GOENV="/home/pegasus/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux"...
  6. N

    protoc-gen-go: program not found or is not executable

    I have installed the go plugins. Still when I try to run events.proto code it shows error: sudo go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest sudo go install google.golang.org/protobuf/cmd/protoc-gen-go@latest pegasus@pegasus:~/Documents/eBPF/go-xdp-examples/gRPC_test$ tree ...
  7. N

    go install shows permission denied

    Whenever I try to install any package in go. using go install it says permission denied. Then I have to do sudo go install. Is it normal? Or do I have to change some permissions? How can I fix it? pegasus@pegasus:~$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest...
  8. N

    Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-UFOYK2/org.freedesktop.Platform-FJ9MK2

    When I try to install using flatpak install I get this error. How can I fix it? Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-UFOYK2/org.freedesktop.Platform.Locale-LEOYK2: Child process exited with code 1 Warning: Could not unmount revokefs-fuse filesystem at...
  9. N

    No openjdk development package found, please install JDK package,

    I have my java installed and linked. Still when I run another config it shows no openjdk development package found. pegasus@pegasus:~/Documents/perf-6.4.0$ make -C tools/perf/ make: Entering directory '/home/pegasus/Documents/perf-6.4.0/tools/perf' BUILD: Doing 'make -j16' parallel build...
  10. N

    Failing to build linux perf

    I have a custom built kernel. I want to build and install perf. How can I do it? pegasus@pegasus:/usr/src/linux-headers-6.4.0-060400-generic/tools/perf$ make BUILD: Doing 'make -j16' parallel build Makefile.perf:8: ../scripts/utilities.mak: No such file or directory make[1]: *** No rule to...
  11. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    I solved the issue. It was an issue with libelf. I downloaded a latest libelf version. Then Configured and installed it. libelf also had some dependency missing like specific versions of sqlite, libcurl, libarchive.
  12. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    I have uninstalled libelf-dev and now I found this pegasus@pegasus:~/Documents/eBPF/libbpf/src$ sudo apt search libelf Sorting... Done Full Text Search... Done libdwarf++0/lunar 0.3-3 amd64 C++11 DWARF parser libelf++0/lunar 0.3-3 amd64 C++11 ELF parser libelf-dev/lunar 0.188-2.1 amd64...
  13. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    You could also refer to here. Where I had a small chat about this issue. https://github.com/libbpf/libbpf/issues/784
  14. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    Also there are so many usdt.c. I'm not sure which one is getting used. pegasus@pegasus:~/Documents/eBPF/xdp-tutorial/libbpf/src$ locate usdt.c /home/pegasus/.local/share/Trash/files/bcc/build/src/cc/CMakeFiles/bcc-static.dir/usdt/usdt.cc.o...
  15. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    Also these are the library function they shouldn't be edited. It should work without be manipulating the source
  16. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    I'm not concerned about warnings. But the error message. I'm unable to build all the tools that comes in https://github.com/libbpf/libbpf libbpf repo. On a fresh ubuntu installation it works well. But on my local machine I've some kind of dependency conflicts. But unable to figure it out. It's...
  17. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    Whenever I'm trying to build libbpf. I'm facing the following error. When I try to build tools related libbpf I also face the same errors. pegasus@pegasus:~/Documents/eBPF/libbpf/src$ make MKDIR staticobjs CC staticobjs/bpf.o CC staticobjs/btf.o CC...
  18. N

    Baobab (Disk Usage Analyzer) not fully showing usage?

    Here's the output of Baobab. It shows that I have 750 GB total. But when I press on it I could only find 566.7 GB. Where is the rest of the 124 GB? Why is it not showing? pegasus@pegasus:~$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 1.6G 3.9M 1.5G 1% /run...
Top