This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux arping utility for OMAPL137

Hi,

Have anyone used Arping utility in Linux for OMAPL137 board.

I am having compilation issue of Arping utility for OMAPL137 board. I am getting libnet 1.1 not found error, even though i have installed libnet 1.1

When compiling for the host x86, it compiles properly without giving any error.

If anybody have successfully used arping please provide me solution.

 

Thanks & Regards

Jitendra

  • Which Arping version are you using/building?

  • Hi Sanjeev,

    I am using Arping version 2.09 & libnet-1.1.2.1.

    Thanks for your reply

    Please revert back on above query.

    Thanks & Regards

     

  • How are you compiling? Can you paste the command?

    What error are you getting while compiling?

    BTW, you can get direct help from synscan mailing list "synscan@googlegroups.com" on any issues you face. (They will also have the same questions).

  • Hello Sanjeev,

    I am compiling Arping-2.09 & libnet-1.1

    First I am compiling libnet-1.1 using following command

    sudo ./configure  CC=/home/acevin1/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc --host=arm --target=arm --bindir=/home/acevin1/libnet/build1/ --sbindir=/home/acevin1/libnet/build1/ --libexecdir=/home/acevin1/libnet/build1/ --datadir=/home/acevin1/libnet/build1/ --sysconfdir=/home/acevin1/libnet/build1/ --sharedstatedir=/home/acevin1/libnet/build1/ localstatedir=/home/acevin1/libnet/build1/ --libdir=/home/acevin1/libnet/build1/ --includedir=/home/acevin1/libnet/build1/ --oldincludedir=/home/acevin1/libnet/build1/ --infodir=/home/acevin1/libnet/build1/ --mandir=/home/acevin1/libnet/build1/

    sudo make

    sudo make install

    Then I am compiling Arping-2.09 using following command

    sudo ./configure --host=arm --target=arm-linux CC=/home/acevin1/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc CPPFLAGS=-I/home/acevin1/libnet/build1

    And it gives me following errors

    configure: WARNING: If you wanted to set the --build type, don't use --host.
        If a cross compiler is detected then cross compile mode will be used.
    checking build system type... i686-pc-linux-gnu
    checking host system type... arm-unknown-none
    checking target system type... arm-unknown-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for arm-strip... no
    checking for strip... strip
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking for arm-gcc... /home/acevin1/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... yes
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether /home/acevin1/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc accepts -g... yes
    checking for /home/acevin1/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of /home/acevin1/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc... gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether make sets $(MAKE)... (cached) yes
    checking for socket in -lsocket... no
    checking for gethostbyname in -lnsl... yes
    checking for libnet_name_resolve in -lnet... no
    checking for libnet_init in -lnet... no
    configure: error: libnet 1.1.x not found

    Please can you help us in above issue

    Thanks & Regards

    Jitendra

     

     

     

  • You are ignoring an important warning in your log.

    configure: WARNING: If you wanted to set the --build type, don't use --host.

    Check this link: http://www.gnu.org/s/hello/manual/autoconf/Specifying-Target-Triplets.html

    Also, values you are using for --host and --target are not correct for the codesourcery tool chain. Infact, it differs across libnet and arping. You should read the document to get the right values.

    Where does "make install" install the libnet?

    How will linker get to know this path?