Aller directement au contenu
  • Catégories
  • Récent
  • Mots-clés
  • Populaire
  • Web
  • Utilisateurs
  • Groupes
Habillages
  • Clair
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Sombre
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Défaut (Darkly)
  • Aucun habillage
Réduire

NodeBB

F

FredR

@FredR
À propos
Messages
116
Sujets
54
Partages
0
Groupes
0
Abonnés
2
Abonnements
0

Messages

Récent Meilleur sujets Contesté

  • Docker issue : failed to write "a *:* rwm": write /sys/fs/cgroup/devices/docker/...../devices.allow: operation not permitted: unknown
    F FredR

    Check /etc/pve/lxc/*.conf :

    lxc.apparmor.profile: unconfined
    lxc.cgroup.devices.allow: a
    lxc.cap.drop:
    
    Linux

  • Docker issue : failed to write "a *:* rwm": write /sys/fs/cgroup/devices/docker/...../devices.allow: operation not permitted: unknown
    F FredR

    Sur un autre serveur en Ubuntu 22 :

    $ cat /etc/os-release
    PRETTY_NAME="Ubuntu 22.04.5 LTS"
    NAME="Ubuntu"
    VERSION_ID="22.04"
    VERSION="22.04.5 LTS (Jammy Jellyfish)"
    VERSION_CODENAME=jammy
    ID=ubuntu
    ID_LIKE=debian
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    UBUNTU_CODENAME=jammy
    $ stat -fc %T /sys/fs/cgroup/
    cgroup2fs
    $ cat /etc/default/grub | grep "^GRUB"
    GRUB_DEFAULT=0
    GRUB_TIMEOUT_STYLE=hidden
    GRUB_TIMEOUT=0
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT=""
    GRUB_CMDLINE_LINUX=""
    $ docker --version
    Docker version 29.3.1, build c2be9cc
    $ mount|grep cgroup
    cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
    
    Linux

  • Docker issue : failed to write "a *:* rwm": write /sys/fs/cgroup/devices/docker/...../devices.allow: operation not permitted: unknown
    F FredR

    Voir https://oneuptime.com/blog/post/2026-02-08-how-to-understand-docker-container-cgroups-in-depth/view

    ls /sys/fs/cgroup/cgroup.controllers 2>/dev/null && echo "cgroups v2" || echo "cgroups v1"
    stat -fc %T /sys/fs/cgroup/
    
    Linux

  • Docker issue : failed to write "a *:* rwm": write /sys/fs/cgroup/devices/docker/...../devices.allow: operation not permitted: unknown
    F FredR

    A faire :

    cat /sys/fs/cgroup/devices/devices.list
    

    Voir aussi le paramètre :

    lxc.cgroup.devices.allow = a
    
    Linux

  • Docker issue : failed to write "a *:* rwm": write /sys/fs/cgroup/devices/docker/...../devices.allow: operation not permitted: unknown
    F FredR

    Le problème :

    docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: failed to write "a *:* rwm": write /sys/fs/cgroup/devices/docker/9062e5fe97eaccd163ea072644a4593a1dc707e090298a08d959ae5dc8f510b3/devices.allow: operation not permitted: unknown.
    

    Version :

    #  lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 22.04.5 LTS
    Release:        22.04
    Codename:       jammy
    
    # docker --version
    Docker version 24.0.2, build cb74dfc
    
    # docker info | grep Cgroup
     Cgroup Driver: cgroupfs
     Cgroup Version: 1
    
    # grep cgroup /proc/filesystems
    nodev   cgroup
    nodev   cgroup2
    
    # stat -fc %T /sys/fs/cgroup/
    tmpfs
    
    # dpkg -l | grep docker
    ii  docker-buildx-plugin              0.10.5-1~ubuntu.18.04~bionic                     amd64        Docker Buildx cli plugin.
    ii  docker-ce                         5:24.0.2-1~ubuntu.18.04~bionic                   amd64        Docker: the open-source application container engine
    ii  docker-ce-cli                     5:24.0.2-1~ubuntu.18.04~bionic                   amd64        Docker CLI: the open-source application container engine
    ii  docker-ce-rootless-extras         5:24.0.2-1~ubuntu.18.04~bionic                   amd64        Rootless support for Docker.
    ii  docker-compose-plugin             2.18.1-1~ubuntu.18.04~bionic                     amd64        Docker Compose (V2) plugin for the Docker CLI.
    
    Linux

  • Crash de Ubuntu quand on lance le WIFI ( MacBook Air )
    F FredR

    Pour le menu recovery il faut appuyer une fois sur ESC ou ALT.
    noapic + nomodeset => Blocage.
    noapic => Blocage. ( Boot long car DISABLE IRQ 11 ).

    C’est pas gagné.

    Linux

  • Abuse IP
    F FredR

    Link Preview Image
    GitHub - borestad/blocklist-abuseipdb: Aggregated AbuseIPDB blocklists with worst IPv4 & IPv6 offenders (~99% confidence)

    Aggregated AbuseIPDB blocklists with worst IPv4 & IPv6 offenders (~99% confidence) - borestad/blocklist-abuseipdb

    favicon

    GitHub (github.com)

    ❯ abuseipdb-s100-1d (53363 ips)
    ❯ abuseipdb-s100-3d (58143 ips)
    ❯ abuseipdb-s100-7d (69300 ips)
    ❯ abuseipdb-s100-14d (86898 ips)
    ❯ abuseipdb-s100-30d (125070 ips)
    ❯ abuseipdb-s100-60d (183928 ips)
    ❯ abuseipdb-s100-90d (247119 ips)
    ❯ abuseipdb-s100-120d (357106 ips)
    ❯ abuseipdb-s100-180d (654007 ips)
    ❯ abuseipdb-s100-365d (1173988 ips)
    ❯ abuseipdb-s100-all (1830085 ips)

    Scan Attack

  • Abuse IP
    F FredR

    https://raw.githubusercontent.com/borestad/blocklist-abuseipdb/refs/heads/main/abuseipdb-s100-3d.ipv4

    58.140 IPs.

    Scan Attack

  • Build nethogs
    F FredR

    Voir : https://xtom.com/blog/what-is-nethogs-and-how-to-monitor-network-traffic/

    Dev build nethogs arm

  • Build nethogs
    F FredR

    Bilan : 3 heures …

    Dev build nethogs arm

  • Build nethogs
    F FredR

    J’ai donc :

    # ls -l *.so*
    -rw-r--r--    1 root     rezi         95556 Nov  4 15:15 libncurses.so.6
    lrwxrwxrwx    1 root     rezi            27 Nov  4 15:14 libpcap.so.0.8 -> /home/root/libpcap.so.1.9.1
    -rw-r--r--    1 root     rezi       1068652 Nov  4 14:59 libpcap.so.1.9.1
    -rw-r--r--    1 root     rezi        125064 Nov  4 15:16 libtinfo.so.6
    
    Dev build nethogs arm

  • Build nethogs
    F FredR

    J’ai fait :

     export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/root/"
    ln -s /home/root/libpcap.so.1.9.1 /home/root/libpcap.so.0.8
    # ./nethogs
    

    image.png

    Dev build nethogs arm

  • Build nethogs
    F FredR

    Avec 0.8 :

    # wget https://github.com/the-tcpdump-group/libpcap/archive/libpcap-0.8.tar.gz
    # tar xvf libpcap-0.8.tar.gz
    # cd libpcap-libpcap-0.8/
    # CROSS_COMPILE=arm-linux-gnueabihf- CC=${CROSS_COMPILE}gcc ./configure --host=arm-linux-gnueabihf --prefix=$(pwd)/libpcap-0.8-arm-linux-gnueabihf
    # CROSS_COMPILE=arm-linux-gnueabihf- CC=${CROSS_COMPILE}gcc make
    arm-linux-gnueabihf-gcc -O2 -I.  -DHAVE_CONFIG_H  -D_U_="" -c ./pcap-linux.c
    ./pcap-linux.c: In function ‘pcap_read_packet’:
    ./pcap-linux.c:626:31: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGRARP’?
      626 |         if (ioctl(handle->fd, SIOCGSTAMP, &pcap_header.ts) == -1) {
          |                               ^~~~~~~~~~
          |                               SIOCGRARP
    ./pcap-linux.c:626:31: note: each undeclared identifier is reported only once for each function it appears in
    make: *** [Makefile:71: pcap-linux.o] Error 1
    
    
    Dev build nethogs arm

  • Build nethogs
    F FredR

    Pas mieux :

    # make
    make -C src -f MakeApp.mk decpcap_test
    make[1]: Entering directory '/home/farias/nethogs/src'
    arm-linux-gnueabihf-g++  -Wall -Wextra -march=armv7-a  -mfpu=vfp -mfloat-abi=hard -I/usr/arm-linux-gnueabihf/include  -Wno-missing-field-initializers -std=c++14  decpcap_test.cpp decpcap.o -o decpcap_test -static -static-libgcc -static-libstdc++  -ldbus-1 -lpcap -L../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib  -lm -Wl,--start-group -lc -lresolv -Wl,--end-group  `pkg-config --libs --cflags dbus-1 -march=armv7-a  -mfpu=vfp -mfloat-abi=hard`
    Unknown option -march=armv7-a
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(nametoaddr.o): in function `pcap_nametoaddrinfo':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./nametoaddr.c:190: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(nametoaddr.o): in function `pcap_nametoaddr':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./nametoaddr.c:165: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(nametoaddr.o): in function `pcap_nametonetaddr':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./nametoaddr.c:249: warning: Using 'getnetbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(nametoaddr.o): in function `pcap_nametoproto':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./nametoaddr.c:506: warning: Using 'getprotobyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(pcap-dbus.o): in function `dbus_write':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:114: undefined reference to `dbus_message_demarshal'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:120: undefined reference to `dbus_connection_send'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:121: undefined reference to `dbus_connection_flush'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:123: undefined reference to `dbus_message_unref'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:116: undefined reference to `dbus_error_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(pcap-dbus.o): in function `dbus_read':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:66: undefined reference to `dbus_connection_pop_message'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:80: undefined reference to `dbus_connection_pop_message'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:70: undefined reference to `dbus_connection_read_write'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:83: undefined reference to `dbus_message_is_signal'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:88: undefined reference to `dbus_message_marshal'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:100: undefined reference to `dbus_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(pcap-dbus.o): in function `dbus_cleanup':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:143: undefined reference to `dbus_connection_unref'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(pcap-dbus.o): in function `dbus_activate':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:207: undefined reference to `dbus_connection_open'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:213: undefined reference to `dbus_bus_register'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:285: undefined reference to `dbus_bus_add_match'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:286: undefined reference to `dbus_error_is_set'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:198: undefined reference to `dbus_bus_get'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:287: undefined reference to `dbus_error_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:290: undefined reference to `dbus_bus_add_match'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:291: undefined reference to `dbus_error_is_set'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:293: undefined reference to `dbus_error_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(pcap-dbus.o): in function `dbus_cleanup':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:143: undefined reference to `dbus_connection_unref'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(pcap-dbus.o): in function `dbus_activate':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:191: undefined reference to `dbus_bus_get'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:200: undefined reference to `dbus_error_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:282: undefined reference to `dbus_connection_set_max_received_size'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(pcap-dbus.o): in function `dbus_cleanup':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:143: undefined reference to `dbus_connection_unref'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: ../libpcap-libpcap-1.9.1/libpcap-1.9.1-arm-linux-gnueabihf/lib/libpcap.a(pcap-dbus.o): in function `dbus_activate':
    /home/farias/nethogs/libpcap-libpcap-1.9.1/./pcap-dbus.c:215: undefined reference to `dbus_error_free'
    
    
    Dev build nethogs arm

  • Build nethogs
    F FredR

    Ajout de :

    # apt-get install flex yacc
    #  wget https://github.com/the-tcpdump-group/libpcap/archive/libpcap-1.9.1.tar.gz
    # tar zxf libpcap-1.9.1.tar.gz
    # cd ./libpcap-libpcap-1.9.1/
    # CROSS_COMPILE=arm-linux-gnueabihf- CC=${CROSS_COMPILE}gcc ./configure --host=arm-linux-gnueabihf --prefix=$(pwd)/libpcap-1.9.1-arm-linux-gnueabihf
    # CROSS_COMPILE=arm-linux-gnueabihf- CC=${CROSS_COMPILE}gcc make install
    
    Dev build nethogs arm

  • Build nethogs
    F FredR

    Pas mieux :

    # make
    make -C src -f MakeApp.mk decpcap_test
    make[1]: Entering directory '/home/farias/nethogs/src'
    arm-linux-gnueabihf-gcc  -Wall -Wextra -march=armv7-a  -mfpu=vfp -mfloat-abi=hard -I/usr/arm-linux-gnueabihf/include -c decpcap.c
    arm-linux-gnueabihf-g++  -Wall -Wextra -march=armv7-a  -mfpu=vfp -mfloat-abi=hard -I/usr/arm-linux-gnueabihf/include  -Wno-missing-field-initializers -std=c++14  decpcap_test.cpp decpcap.o -o decpcap_test -static -static-libgcc -static-libstdc++  -ldbus-1  -lpcap -lm -Wl,--start-group -lc -lresolv -Wl,--end-group  `pkg-config --libs --cflags dbus-1 -march=armv7-a  -mfpu=vfp -mfloat-abi=hard`
    Unknown option -march=armv7-a
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(nametoaddr.o): in function `pcap_nametoaddrinfo':
    (.text+0x56): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(nametoaddr.o): in function `pcap_nametoaddr':
    (.text+0x2): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(nametoaddr.o): in function `pcap_nametonetaddr':
    (.text+0xbc): warning: Using 'getnetbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(nametoaddr.o): in function `pcap_nametoproto':
    (.text+0x380): warning: Using 'getprotobyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(pcap-dbus.o): in function `dbus_write':
    (.text+0xe4): undefined reference to `dbus_message_demarshal'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0xf4): undefined reference to `dbus_connection_send'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0xfc): undefined reference to `dbus_connection_flush'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x102): undefined reference to `dbus_message_unref'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x140): undefined reference to `dbus_error_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(pcap-dbus.o): in function `dbus_read':
    (.text+0x180): undefined reference to `dbus_connection_pop_message'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x190): undefined reference to `dbus_connection_pop_message'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x19c): undefined reference to `dbus_connection_read_write'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x1f0): undefined reference to `dbus_message_is_signal'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x1fe): undefined reference to `dbus_message_marshal'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x23e): undefined reference to `dbus_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(pcap-dbus.o): in function `dbus_cleanup':
    (.text+0x294): undefined reference to `dbus_connection_unref'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(pcap-dbus.o): in function `dbus_activate':
    (.text+0x30e): undefined reference to `dbus_connection_open'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x31e): undefined reference to `dbus_bus_register'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x3ac): undefined reference to `dbus_bus_add_match'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x3b2): undefined reference to `dbus_error_is_set'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x3c4): undefined reference to `dbus_bus_get'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x3da): undefined reference to `dbus_error_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x3e8): undefined reference to `dbus_bus_add_match'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x3ee): undefined reference to `dbus_error_is_set'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x414): undefined reference to `dbus_error_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x420): undefined reference to `dbus_connection_unref'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x44a): undefined reference to `dbus_bus_get'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x47a): undefined reference to `dbus_error_free'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x484): undefined reference to `dbus_connection_set_max_received_size'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x492): undefined reference to `dbus_connection_unref'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x4e2): undefined reference to `dbus_error_free'
    
    
    Dev build nethogs arm

  • Build nethogs
    F FredR

    Ajout de :

    apt-get install libc6-dev-armel-cross
    
    Dev build nethogs arm

  • Build nethogs
    F FredR

    Il me faut faire du armv7l

    Dev build nethogs arm

  • Build nethogs
    F FredR

    Ajout :

    apt-get install dpdk
    apt-get install dpdk-dev
    
    Dev build nethogs arm

  • Build nethogs
    F FredR

    Pas mieux avec : pkg-config --libs --cflags dbus-1

    # make
    make -C src -f MakeApp.mk decpcap_test
    make[1]: Entering directory '/home/farias/nethogs/src'
    arm-linux-gnueabihf-gcc  -Wall -Wextra -c decpcap.c
    arm-linux-gnueabihf-g++  -Wall -Wextra -Wno-missing-field-initializers -std=c++14  decpcap_test.cpp decpcap.o -o decpcap_test -static -static-libgcc -static-libstdc++  -ldbus-1  -lpcap -lm -Wl,--start-group -lc -lresolv -Wl,--end-group `pkg-config --libs --cflags dbus-1`
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): in function `fill_user_info':
    (.text+0x1d6): warning: Using 'getgrouplist' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x13a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0xf6): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(nametoaddr.o): in function `pcap_nametoaddrinfo':
    (.text+0x56): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(nametoaddr.o): in function `pcap_nametoaddr':
    (.text+0x2): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(nametoaddr.o): in function `pcap_nametonetaddr':
    (.text+0xbc): warning: Using 'getnetbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libpcap.a(nametoaddr.o): in function `pcap_nametoproto':
    (.text+0x380): warning: Using 'getprotobyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: /lib/arm-linux-gnueabihf/libdbus-1.a(libdbus_1_la-dbus-sysdeps-unix.o): in function `_dbus_listen_systemd_sockets':
    (.text+0x15d0): undefined reference to `sd_listen_fds'
    /usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: (.text+0x15ee): undefined reference to `sd_is_socket'
    
    Dev build nethogs arm
  • Se connecter

  • Vous n'avez pas de compte ? S'inscrire

  • Connectez-vous ou inscrivez-vous pour faire une recherche.
Powered by NodeBB Contributors
  • Premier message
    Dernier message
0
  • Catégories
  • Récent
  • Mots-clés
  • Populaire
  • Web
  • Utilisateurs
  • Groupes