• Resolved

Cross compile libpcap and tcpdump

I would like to cross compile libpcap and tcpdump. I have tried both cross compiling from source and BitBake/Arago and unfortunately I have not had much success with it either method.

This is the command I execute when I try to cross compile tcpdump.

./configure --target=arm-arago-linux-gnueabi --host=arm-arago-linux-gnueabi --build=i386-linux

When I execute this command, the end result is....

checking Linux kernel version... unknown

configure: error: cannot determine linux version when cross-compiling

ricyutp@ricyutp-laptop:~/Downloads/tcpdump-4.2.1$

What are commands needed to cross-compile libpcap and tcpdump? Any help would be greatly appreciated.

  • You can try to run it like

    ac_cv_linux_vers=2 ./configure --target=arm-arago-linux-gnueabi --host=arm-arago-linux-gnueabi --build=i386-linux

    It fixes the problem with "kernel version" for me. But i am using vanilla tcpdump, just from its git.

    This is my command:

    ac_cv_linux_vers=2 ./configure --host=arm-none-linux-gnueabi

  • In reply to gxk:

    gxk,

    Unfortunately that did not work but thanks anyway. I decided to use  Arago/OpenEmbedded and BitBake to create the package.