//pcap library (libpcap)
$ CC=arm-none-linux-gnueabi-gcc ac_cv_linux_vers=2 ./configure --host=arm-none-linux-gnueabi --prefix=/home/no1no1no1/temp/tcpdump --with-pcap=linux
$ make
$ make install


// tcpdump
$ CC=arm-none-linux-gnueabi-gcc ac_cv_linux_vers=2 ./configure --host=arm-none-linux-gnueabi --prefix=/home/no1no1no1/temp/tcpdump --with-pcap=linux
$ make
$ make install



/* --prefix 항목이 설치 되는 위치 인데.. 이게 지정이 않되어 있으면 아래와 같은 에러가 발생.*/
no1no1no1@ipphone-dev-ubuntu:~/MoIP_Capture_Agent/src/tcpdump/tcpdump-4.3.0$ CC=arm-none-linux-gnueabi-gcc LD=arm-none-linux-gnueabi-ld ac_cv_linux_vers=2  ./configure --host=arm-none-linux-gnueabi --with-pcap=linux
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-none-linux-gnueabi
checking for arm-none-linux-gnueabi-gcc... arm-none-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
                           :
                           :
checking for local pcap library... not found
checking for arm-none-linux-gnueabi-pcap-config... no
checking for pcap-config... no
checking for main in -lpcap... nno
configure: error: see the INSTALL doc for more info

/* --width-pcap=null 로 입력 했을 때 문제점.*/
tcpdump를 실행 하면 "live packet capture not supported on this system" 로 실행이 안됨.

Posted by 다크쌍피