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

  1. Accueil
  2. General Discussion
  3. Linux at work
  4. Dev
  5. Build nethogs

Build nethogs

Planifié Épinglé Verrouillé Déplacé Dev
buildnethogsarm
33 Messages 1 Publieurs 331 Vues
  • Du plus ancien au plus récent
  • Du plus récent au plus ancien
  • Les plus votés
Répondre
  • Répondre à l'aide d'un nouveau sujet
Se connecter pour répondre
Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
  • F Hors-ligne
    F Hors-ligne
    FredR
    a écrit sur dernière édition par
    #22

    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'
    
    1 réponse Dernière réponse
    0
    • F Hors-ligne
      F Hors-ligne
      FredR
      a écrit sur dernière édition par FredR
      #23

      Ajout :

      apt-get install dpdk
      apt-get install dpdk-dev
      
      1 réponse Dernière réponse
      0
      • F Hors-ligne
        F Hors-ligne
        FredR
        a écrit sur dernière édition par
        #24

        Il me faut faire du armv7l

        1 réponse Dernière réponse
        0
        • F Hors-ligne
          F Hors-ligne
          FredR
          a écrit sur dernière édition par
          #25

          Ajout de :

          apt-get install libc6-dev-armel-cross
          
          1 réponse Dernière réponse
          0
          • F Hors-ligne
            F Hors-ligne
            FredR
            a écrit sur dernière édition par
            #26

            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'
            
            
            1 réponse Dernière réponse
            0
            • F Hors-ligne
              F Hors-ligne
              FredR
              a écrit sur dernière édition par
              #27

              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
              
              1 réponse Dernière réponse
              0
              • F Hors-ligne
                F Hors-ligne
                FredR
                a écrit sur dernière édition par
                #28

                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'
                
                
                1 réponse Dernière réponse
                0
                • F Hors-ligne
                  F Hors-ligne
                  FredR
                  a écrit sur dernière édition par
                  #29

                  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
                  
                  
                  1 réponse Dernière réponse
                  0
                  • F Hors-ligne
                    F Hors-ligne
                    FredR
                    a écrit sur dernière édition par
                    #30

                    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

                    1 réponse Dernière réponse
                    0
                    • F Hors-ligne
                      F Hors-ligne
                      FredR
                      a écrit sur dernière édition par
                      #31

                      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
                      
                      1 réponse Dernière réponse
                      0
                      • F Hors-ligne
                        F Hors-ligne
                        FredR
                        a écrit sur dernière édition par
                        #32

                        Bilan : 3 heures …

                        1 réponse Dernière réponse
                        0
                        • F Hors-ligne
                          F Hors-ligne
                          FredR
                          a écrit sur dernière édition par
                          #33

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

                          1 réponse Dernière réponse
                          0

                          Bonjour ! Vous semblez intéressé par cette conversation, mais vous n’avez pas encore de compte.

                          Marre de refaire défiler les mêmes messages ? Créez un compte pour retrouver votre position, recevoir des notifications des nouvelles réponses, sauvegarder vos favoris et voter pour les messages que vous appréciez.

                          Grâce à votre participation, ce message peut devenir encore meilleur 💗

                          S'inscrire Se connecter
                          Répondre
                          • Répondre à l'aide d'un nouveau sujet
                          Se connecter pour répondre
                          • Du plus ancien au plus récent
                          • Du plus récent au plus ancien
                          • Les plus votés


                          • 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