TCPDUMP 4.1.1 / LIBPCAP 1.1.1
解压至
/home/src/tcpdump/libpcap-1.1.1
/home/src/tcpdump/tcpdump-4.1.1
libcap:配置
ac_cv_linux_vers=2.6.30.1 ./configure --prefix=/home/src/tcpdump/install --host=arm-linux --with-pcap=linux
make
make install
tcpdump:配置
ac_cv_linux_vers=2.6.30.1 ac_cv_lib_crypto_DES_cbc_encrypt=no ./configure --prefix=/home/src/tcpdump/install --disable-FEATURE --host=arm-linux
configure 成功之后需要修改Makefile,不修改会造成编译器内部错误,或者汇编指令错误,当然都是误报的.就是将"/usr/include"和"/usr/lib"修改为我们的$(prefix)/include和$(prefix)/lib, 也就是我们安装libpcap的地方(以加粗):
INCLS = -I. -I./../libpcap-1.0.0 -I$(prefix)/include -I$(srcdir)/missing
DEFS = -DHAVE_CONFIG_H -I./../libpcap-1.0.0 -I$(prefix)/include -I$(srcdir)/missing -D_U_="__attribute__((unused))"
# Standard LDFLAGS
LDFLAGS = -L$(prefix)/lib
make && make install
参考:
http://sugarxu.spaces.live.com/blog/cns!9856F970F427DCD6!1597.trak
阅读(1497) | 评论(0) | 转发(0) |