Fix Cannot Determine Linux Version When Cross-compiling Tcpdump (Solved)

Home > Cannot Determine > Cannot Determine Linux Version When Cross-compiling Tcpdump

Cannot Determine Linux Version When Cross-compiling Tcpdump

Note: These libraries may not be available by default on your linux operating system. Download the latest libpcap source code from wget Extract the source code into the respective directories. But there are alternatives to compiling/building. We grab the first "2".

No, thanks Home Downloads Compiling Uses About Contact Cross-Compiling or Building Android tcpdump? Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff. © Copyright 1995-2016 Texas Instruments Incorporated. Execute the uname -a command. The NDK uses a different set of libraries, tool-chains, and compile tools.

Any help would be greatly appreciated. This should create the libpcap library. port 80 and !

  1. Enlightened: The TI DLP® Blog Fully Charged Industrial Strength Launch Your Design Learn E2E Motor Drive & Control MSP Low-Power Plays On the Grid Power House Precision Hub The Process Think.
  2. Please refer to our Privacy Policy or Contact Us for more details You seem to have CSS turned off.
  3. Please don't fill out this field.
  4. These symbols are only useful in debugging the application.
  5. Tools Insider University Program Groups Corporate Citizenship TI University Program Russian E2E (сообщество E2E) Japanese E2E (日本語コミュニティ) Learn E2E Launch Your Design Motor Drive & Control Videos More Cancel Linux Linux
  6. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at
  7. Innovate TI Live @...

Content on this site may contain or be subject to specific guidelines or limitations on use. But i am using vanilla tcpdump, just from its git. make Strip the symbol information to make the binary even smaller. This check doesn't seem very important anyway, who uses linux < 2.0 ?!

The one outlined below is the method we use to build the Android tcpdump binary that you will find in our downloads section. You can also try using the NDK from Google. Website Inquiries: petershina的专栏 目录视图 摘要视图 订阅 移动信息安全的漏洞和逆向原理 【观点】世界上最好的语言是什么 Get IT技能知识库,50个领域一键直达 tcpdump交叉编译和一些简单命令 2013-05-25 14:20 2117人阅读 评论(0) 收藏 举报 本文章已收录于: 分类: 抓包程序(3) 作者同类文章X 工具(2) 作者同类文章X 版权声明:本文为博主原创文章,未经博主允许不得转载。 下面介绍一下具体过程。 1.在http://www.tcpdump.org下载libpcap-1.0.0.tar.gz和tcpdump-4.0.0.tar.gz两个文件。 The tcpdump we offer in our downloads section was compiled with a method called Cross-Compiling.

Terms Privacy Opt Out Choices Advertise Get latest updates about Open Source Projects, Conferences and News. You may need to "yum" or "apt-get" the appropriate building libraries or toolchains. It is just that easy. 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?

Reply Cancel Cancel Reply Suggest as Answer Use rich formatting TI E2E™ Community Support Forums Blogs Videos Groups Site Support & Feedback Settings TI E2E™ Community Groups TI University Program Make Follow Us TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | (Mobile Version) TI is a global semiconductor design and manufacturing company. export ac_cs_linux_vers=2 Export the following variables required for compiling. You seem to have CSS turned off.

not reliant on external libraries, we provide the following flags to build it statically. Sitemap Copyright © 2016 Android tcpdump. So the binary can only run on Android devices running on the ARM architecture. Discussion Guy Harris - 2011-05-05 OK, I've gotten rid of the check in the trunk and 1.2 branch.

I have tried both cross compiling from source and BitBake/Arago and unfortunately I have not had much success with it either method. Since we want the executable to be self-contain (ie. Ubuntu Compile Tools To install the compile tools and tool chains we used, execute the following on your Ubuntu Linux Server: sudo apt-get install gcc-arm-linux-gnueabi sudo apt-get install byacc sudo apt-get All rights reserved.

Building There are multiple ways of building or compiling Android tcpdump. All rights reserved. The ARM architecture is used in 95% of the Androids in the market, so the binary you will find in our downloads is for the ARM architecture.

Sign up for the SourceForge newsletter: I agree to receive quotes, newsletters and other information from and its partners regarding IT services and products.

If you do not have access to a Linux system, or ran into difficulties compiling, you can always just download the latest version from our Downloads area. export CC=arm-linux-gnueabi-gcc We need to compile the LIBPCAP first. bind出现Address already in use解决方法 u012789847: 我设置了端口可以重用但是还是出现那种地址在使用的问题 Your finished binary should be in your tcpdump directory.

Now you have the instructions we use to build android tcpdump. the type of packet capture could be found in configure 6914 if test ! -z "$with_pcap" ; then 6915 V_PCAP="$withval" 6916 elif test -r /dev/bpf -o -h /dev/bpf ; then 6917 uname -a The above command produced the following output: Linux androidtcpdump 2.6.32-042stab094.8 #1 SMP Tue Dec 16 20:36:56 MSK 2014 i686 i686 i686 GNU/Linux Set the ac_cv_linux_vers variable to the major check over here Prodigy 690 points Ricardo Zepeda Feb 2, 2012 11:31 PM Reply Cancel Cancel Reply Suggest as Answer Use rich formatting All Responses Answers Only Intellectual 580 points gxk Feb 3,

In our instance we are cross-compiling the Android binary on an Ubuntu Linux system targetting the ARM architecture. port 110 -w /tmp/xxx.cap 抓vlan 1的包 tcpdump -i eth1 port 80 and vlan 1 -w /tmp/xxx.cap 抓pppoe的密码 tcpdump -i eth1 pppoes -w /tmp/xxx.cap 以100m大小分割保存文件, 超过100m另开一个文件 -C 100m 抓10000个包后退出 -c 10000 后台抓包, Change your directory to where you extracted your LIBPCAP cd libpcap-1.8.1 Execute the configure file which came with LIBPCAP with a few switches. Once the binary or program is created, it can only run on the targetted operating system.

Note: Your output may be different, but look for something which looks like a version number. checking Linux kernel version... Please don't fill out this field. skip to main | skip to sidebar Owen's 2011年3月10日 星期四 [Embedded] How to Cross Compile tcpdump 0.assume that your toolchain is arm-linux-gcc arm-linux-g++ arm-linux-ar arm-linux-ld arm-linux-as arm-linux-strip ...and under your $PATH

arm-linux-gnueabi-strip tcpdump Done. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations cd tcpdump-$TCPDUMP export ac_cv_linux_vers=2 export CFLAGS=-static export CPPFLAGS=-static export LDFLAGS=-static ./configure --host=arm-linux --disable-ipv6 make arm-linux-gnueabi-strip tcpdump Your Done. In this case, we will compile the latest version, tcpdump-4.8.1.

This will build the tcpdump binary. All-In-One Script Below are all the steps listed above in an easy script. The "--host=arm-linux" tells the compiler that we are cross compiling to ARM. Cross-Compiling is a method of compiling one operating system binary on another operating system.

The "--with-pcap=linux" will tell the compiler which packet capture type we are compiling. ./configure --host=arm-linux --with-pcap=linux Then execute the "make" command. I understand that I can withdraw my consent at any time.