(Solved) Cannot Determine Linux Version When Cross Compiling Libpcap Tutorial

Home > Cannot Determine > Cannot Determine Linux Version When Cross Compiling Libpcap

Cannot Determine Linux Version When Cross Compiling Libpcap

This is my command: ac_cv_linux_vers=2 ./configure --host=arm-none-linux-gnueabi Reply Cancel Cancel Reply Suggest as Answer Use rich formatting Prodigy 690 points Ricardo Zepeda Feb 8, 2012 5:22 PM In reply to gxk: You only need to change the versioning information and perhaps your linux Kernel version in the "ac_cv_linux_vers" variable export TCPDUMP=4.8.1 export LIBPCAP=1.8.1 wget http://www.tcpdump.org/release/tcpdump-$TCPDUMP.tar.gz wget http://www.tcpdump.org/release/libpcap-$LIBPCAP.tar.gz tar zxvf tcpdump-$TCPDUMP.tar.gz tar zxvf arm-linux-gnueabi-strip tcpdump Done. Follow Us TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | m.ti.com (Mobile Version) TI is a global semiconductor design and manufacturing company. http://inviewsoftware.com/cannot-determine/cannot-determine-linux-version-when-cross-compiling.html

No, thanks To use Google Groups Discussions, please enable JavaScript in your browser settings, and then refresh this page. . 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. All-In-One Script Below are all the steps listed above in an easy script. Sitemap Copyright © 2016 Android tcpdump.

We grab the first "2". If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Guy Harris - 2011-05-05 status: open --> closed-fixed If you 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. Terms Privacy Opt Out Choices Advertise Get latest updates about Open Source Projects, Conferences and News.

until you comment out that check from configure (or comment it out from configure.ac and run autoreconf). The specific configure error is: configure: error: cannot determine linux version when cross-compiling Failed I would humbly suggest simply deleting the check. Use of the information on this site may require a license from a third party, or a license from TI. make Now, change your directory to where you extracted your TCPDUMP file cd tcpdump-4.8.1 We need to find out what major version our Ubuntu (or Linux) operation system kernel is running.

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. 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 not reliant on external libraries, we provide the following flags to build it statically. https://sourceforge.net/p/libpcap/bugs/148/ make Strip the symbol information to make the binary even smaller.

Note: Your output may be different, but look for something which looks like a version number. 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. Please refer to our Privacy Policy or Contact Us for more details You seem to have CSS turned off. 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,

Note: These libraries may not be available by default on your linux operating system. Please don't fill out this field. tar zxvf tcpdump-4.8.1.tar.gz tar zxvf libpcap-1.8.1.tar.gz Export your compiler to point to the ARM Linux build tool. Aside Note: The Architecture could be ARM, i386 or MIPS.

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? http://inviewsoftware.com/cannot-determine/cannot-determine-the-version-of-the-linux-kernel.html 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. You seem to have CSS turned off. 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.

  • 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.
  • Below, mine is 2.6.32-042stab094.8.
  • You can also try using the NDK from Google.
  • Execute the uname -a command.
  • Cross-Compiling is a method of compiling one operating system binary on another operating system.
  • Innovate TI Live @...
  • So the binary can only run on Android devices running on the ARM architecture.

Any help would be greatly appreciated. Sign up for the SourceForge newsletter: I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. 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.... http://inviewsoftware.com/cannot-determine/cannot-determine-linux-version-when-cross-compiling-pcap.html 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

No license, either express or implied, by estoppel or otherwise, is granted by TI. These symbols are only useful in debugging the application. Download the latest libpcap source code from http://www.tcpdump.org wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz Extract the source code into the respective directories.

This will build the tcpdump binary.

export ac_cs_linux_vers=2 Export the following variables required for compiling. The one outlined below is the method we use to build the Android tcpdump binary that you will find in our downloads section. All rights reserved. wget http://www.tcpdump.org/release/tcpdump-4.8.1.tar.gz Since tcpdump is dependent on the libpcap, we will need to download this as well.

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 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 You may need to "yum" or "apt-get" the appropriate building libraries or toolchains. http://inviewsoftware.com/cannot-determine/cannot-determine-linux-version-when-cross-compiling-tcpdump.html 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

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 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 Since we want the executable to be self-contain (ie. My AccountSearchMapsYouTubePlayNewsGmailDriveCalendarGoogle+TranslatePhotosMoreShoppingWalletFinanceDocsBooksBloggerContactsHangoutsEven more from GoogleSign inHidden fieldsSearch for groups or messages 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"

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 The "--host=arm-linux" tells the compiler that we are cross compiling to ARM. 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 Please don't fill out this field.

This check doesn't seem very important anyway, who uses linux < 2.0 ?! I decided to use Arago/OpenEmbedded and BitBake to create the package. If you would like to refer to this comment somewhere else in this project, copy and paste the following link: SourceForge About Site Status @sfnet_ops Powered by Apache Allura™ Find and It is just that easy.

Your finished binary should be in your tcpdump directory. 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