How To Repair Cannot Determine Linux Version When Cross-compiling Pcap (Solved)

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

Cannot Determine Linux Version When Cross-compiling Pcap

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 Please don't fill out this field. Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. No, thanks skip to main | skip to sidebar 幻滅名為不動 記錄閱讀與思考的心得。 2009年6月5日 星期五 如何將tcpdump移植到arm嵌入式系統 下面介紹一下具體過程。1.在http://www.tcpdump.org下載libpcap-0.9.8.tar.gz和tcpdump-3.9.8.tar.gz兩個文件。2.將這兩個文件放在/home下解壓。3.編譯,安裝libpcap-0.9.8: (1)進入libpcap目錄,打開configure。將下面兩端代碼註釋掉 #if test -z "$with_pcap" && test "$cross_compiling" = yes; then # { { echo

Terms Privacy Opt Out Choices Advertise Get latest updates about Open Source Projects, Conferences and News. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 2 Star 2 Fork 0 karlhiramoto/embedded_gentoo_portage Code Issues 0 Pull requests 0 Projects In our instance we are cross-compiling the Android binary on an Ubuntu Linux system targetting the ARM architecture. 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.

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 Trademarks | Privacy Policy | Terms of Use SourceForge Browse Enterprise Blog Deals Help Create Log In or Join Solution Centers Go Parallel Resources Newsletters Cloud Storage Providers Business VoIP Providers TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these Sitemap Copyright © 2016 Android tcpdump.

  1. make Strip the symbol information to make the binary even smaller.
  2. 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.
  3. Please refer to our Privacy Policy or Contact Us for more details You seem to have CSS turned off.

All Rights Reserved. Cross-Compiling is a method of compiling one operating system binary on another operating system. The Nmap configure script should be fixed to allow cross compiling, but you are going to have to deal with these issues anyway, because you have to cross-compile libpcap at any nochecking whether to build parser debugging code...

Building There are multiple ways of building or compiling Android tcpdump. 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 So this would work: ./configure --with-libpcap=included --with-pcap=linux except that there appears to be a later check for the Linux version that will also fail when cross compiling. Source Website Inquiries: [email protected] Nmap Security Scanner Intro Ref Guide Install Guide Download Changelog Book Docs Security Lists Nmap Announce Nmap Dev Bugtraq Full Disclosure Pen Test Basics More Security Tools

We grab the first "2". The one outlined below is the method we use to build the Android tcpdump binary that you will find in our downloads section. 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. Use of the information on this site may require a license from a third party, or a license from TI.

The specific configure error is: configure: error: cannot determine linux version when cross-compiling Failed I would humbly suggest simply deleting the check. The NDK uses a different set of libraries, tool-chains, and compile tools. Sign up for the SourceForge newsletter: I agree to receive quotes, newsletters and other information from and its partners regarding IT services and products. One way to work around it is with ac_cv_linux_vers=X.X.XX ./configure --with-libpcap=included --with-pcap=linux where "X.X.XX" is the kernel version you'll be compiling against.

We're trying to get release 0.5 finalized and this is a showstopper for us. The test for the system copy is broken with respect to cross-compiling, but using the included copy should avoid that. unknown configure: error: cannot determine linux version when cross-compiling [email protected]:~/Downloads/tcpdump-4.2.1$ What are commands needed to cross-compile libpcap and tcpdump? export CC=arm-linux-gnueabi-gcc We need to compile the LIBPCAP first.

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. export ac_cs_linux_vers=2 Export the following variables required for compiling. 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. wget Since tcpdump is dependent on the libpcap, we will need to download this as well.

I understand that I can withdraw my consent at any time. 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 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

Below, mine is 2.6.32-042stab094.8.

I have tried both cross compiling from source and BitBake/Arago and unfortunately I have not had much success with it either method. No license, either express or implied, by estoppel or otherwise, is granted by TI. You may need to "yum" or "apt-get" the appropriate building libraries or toolchains. Follow Us TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | (Mobile Version) TI is a global semiconductor design and manufacturing company.

In this case, we will compile the latest version, tcpdump-4.8.1. Note: These libraries may not be available by default on your linux operating system. You seem to have CSS turned off. check over here The "--host=arm-linux" tells the compiler that we are cross compiling to ARM.

Innovate TI Live @... David Fifield Sorry, not on the mailing list, so didn't see it. Since we want the executable to be self-contain (ie. 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

checking for library containing putmsg... dnl if test -z "$with_pcap" && test "$cross_compiling" = yes; then - AC_MSG_ERROR(pcap type not determined when cross-compiling; use --with-pcap=...) + case $host in + *-linux*) with_pcap="linux";; + *) AC_MSG_ERROR(pcap type Reload to refresh your session. This will build the tcpdump binary.

Please don't fill out this field. 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 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. Download the latest libpcap source code from wget Extract the source code into the respective directories.

until you comment out that check from configure (or comment it out from and run autoreconf). Discussion Guy Harris - 2011-05-05 OK, I've gotten rid of the check in the trunk and 1.2 branch. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these