<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic cross compiling tcpdump in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540124#M60146</link>
    <description>Hi there&lt;BR /&gt;I'm compiling tcpdump for my Linksys router.&lt;BR /&gt;libcap compiles fine but compiling tcpdump  gives me a bunch of errors.&lt;BR /&gt;&lt;BR /&gt;I'm dooing this:&lt;BR /&gt;&lt;BR /&gt;wget &lt;A href="http://www.tcpdump.org/release/libpcap-1.0.0.tar.gz" target="_blank"&gt;http://www.tcpdump.org/release/libpcap-1.0.0.tar.gz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;wget &lt;A href="http://www.tcpdump.org/release/tcpdump-4.0.0.tar.gz" target="_blank"&gt;http://www.tcpdump.org/release/tcpdump-4.0.0.tar.gz&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;wget &lt;A href="ftp://ftp.dd-wrt.com/others/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2" target="_blank"&gt;ftp://ftp.dd-wrt.com/others/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;tar -xvf libpcap-1.0.0.tar.gz&lt;BR /&gt;&lt;BR /&gt;tar -xvf tcpdump-4.0.0.tar.gz&lt;BR /&gt;&lt;BR /&gt;cd /root/libpcap-1.0.0&lt;BR /&gt;&lt;BR /&gt;CC=mipsel-linux-uclibc-gcc ac_cv_linux_vers=2 ./configure --host=mipsel-linux --with-pcap=linux&lt;BR /&gt;&lt;BR /&gt;make &lt;BR /&gt;&lt;BR /&gt;cd ../tcpdump-4.0.0&lt;BR /&gt;&lt;BR /&gt;CC=mipsel-linux-uclibc-gcc ac_cv_linux_vers=2 ./configure --host=mipsel-linux --with-pcap=linux&lt;BR /&gt;&lt;BR /&gt;make&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(pcap.o): In function `pcap_datalink_name_to_val':&lt;BR /&gt;pcap.c:(.text+0x1b8): multiple definition of `pcap_datalink_name_to_val'&lt;BR /&gt;dlnames.o:dlnames.c:(.text+0xe8): first defined here&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(pcap.o): In function `pcap_datalink_val_to_name':&lt;BR /&gt;pcap.c:(.text+0x26c): multiple definition of `pcap_datalink_val_to_name'&lt;BR /&gt;dlnames.o:dlnames.c:(.text+0x0): first defined here&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(pcap.o): In function `pcap_datalink_val_to_description':&lt;BR /&gt;pcap.c:(.text+0x2d4): multiple definition of `pcap_datalink_val_to_description'&lt;BR /&gt;dlnames.o:dlnames.c:(.text+0x68): first defined here&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(pcap.o): In function `pcap_list_datalinks':&lt;BR /&gt;pcap.c:(.text+0xfbc): multiple definition of `pcap_list_datalinks'&lt;BR /&gt;datalinks.o:datalinks.c:(.text+0x0): first defined here&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(savefile.o): In function `pcap_dump_ftell':&lt;BR /&gt;savefile.c:(.text+0xd8): multiple definition of `pcap_dump_ftell'&lt;BR /&gt;pcap_dump_ftell.o:pcap_dump_ftell.c:(.text+0x0): first defined here&lt;BR /&gt;print-enc.o: In function `enc_if_print':&lt;BR /&gt;print-enc.c:(.text+0x1e0): undefined reference to `ip6_print'&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(grammar.o): In function `pcap_parse':&lt;BR /&gt;grammar.c:(.text+0x5e0): undefined reference to `pcap_lex'&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;make: *** [tcpdump] Error 1&lt;BR /&gt;&lt;BR /&gt;Anyone knows how to sort it out ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter</description>
    <pubDate>Wed, 25 Nov 2009 20:24:37 GMT</pubDate>
    <dc:creator>Piotr Kirklewski</dc:creator>
    <dc:date>2009-11-25T20:24:37Z</dc:date>
    <item>
      <title>cross compiling tcpdump</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540124#M60146</link>
      <description>Hi there&lt;BR /&gt;I'm compiling tcpdump for my Linksys router.&lt;BR /&gt;libcap compiles fine but compiling tcpdump  gives me a bunch of errors.&lt;BR /&gt;&lt;BR /&gt;I'm dooing this:&lt;BR /&gt;&lt;BR /&gt;wget &lt;A href="http://www.tcpdump.org/release/libpcap-1.0.0.tar.gz" target="_blank"&gt;http://www.tcpdump.org/release/libpcap-1.0.0.tar.gz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;wget &lt;A href="http://www.tcpdump.org/release/tcpdump-4.0.0.tar.gz" target="_blank"&gt;http://www.tcpdump.org/release/tcpdump-4.0.0.tar.gz&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt;wget &lt;A href="ftp://ftp.dd-wrt.com/others/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2" target="_blank"&gt;ftp://ftp.dd-wrt.com/others/sourcecode/toolchains/toolchains.x86.debian.sp1.tar.bz2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;tar -xvf libpcap-1.0.0.tar.gz&lt;BR /&gt;&lt;BR /&gt;tar -xvf tcpdump-4.0.0.tar.gz&lt;BR /&gt;&lt;BR /&gt;cd /root/libpcap-1.0.0&lt;BR /&gt;&lt;BR /&gt;CC=mipsel-linux-uclibc-gcc ac_cv_linux_vers=2 ./configure --host=mipsel-linux --with-pcap=linux&lt;BR /&gt;&lt;BR /&gt;make &lt;BR /&gt;&lt;BR /&gt;cd ../tcpdump-4.0.0&lt;BR /&gt;&lt;BR /&gt;CC=mipsel-linux-uclibc-gcc ac_cv_linux_vers=2 ./configure --host=mipsel-linux --with-pcap=linux&lt;BR /&gt;&lt;BR /&gt;make&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(pcap.o): In function `pcap_datalink_name_to_val':&lt;BR /&gt;pcap.c:(.text+0x1b8): multiple definition of `pcap_datalink_name_to_val'&lt;BR /&gt;dlnames.o:dlnames.c:(.text+0xe8): first defined here&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(pcap.o): In function `pcap_datalink_val_to_name':&lt;BR /&gt;pcap.c:(.text+0x26c): multiple definition of `pcap_datalink_val_to_name'&lt;BR /&gt;dlnames.o:dlnames.c:(.text+0x0): first defined here&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(pcap.o): In function `pcap_datalink_val_to_description':&lt;BR /&gt;pcap.c:(.text+0x2d4): multiple definition of `pcap_datalink_val_to_description'&lt;BR /&gt;dlnames.o:dlnames.c:(.text+0x68): first defined here&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(pcap.o): In function `pcap_list_datalinks':&lt;BR /&gt;pcap.c:(.text+0xfbc): multiple definition of `pcap_list_datalinks'&lt;BR /&gt;datalinks.o:datalinks.c:(.text+0x0): first defined here&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(savefile.o): In function `pcap_dump_ftell':&lt;BR /&gt;savefile.c:(.text+0xd8): multiple definition of `pcap_dump_ftell'&lt;BR /&gt;pcap_dump_ftell.o:pcap_dump_ftell.c:(.text+0x0): first defined here&lt;BR /&gt;print-enc.o: In function `enc_if_print':&lt;BR /&gt;print-enc.c:(.text+0x1e0): undefined reference to `ip6_print'&lt;BR /&gt;./../libpcap-1.0.0/libpcap.a(grammar.o): In function `pcap_parse':&lt;BR /&gt;grammar.c:(.text+0x5e0): undefined reference to `pcap_lex'&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;make: *** [tcpdump] Error 1&lt;BR /&gt;&lt;BR /&gt;Anyone knows how to sort it out ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 25 Nov 2009 20:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540124#M60146</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2009-11-25T20:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: cross compiling tcpdump</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540125#M60147</link>
      <description>What is your host OS?  What is your target OS?&lt;BR /&gt;&lt;BR /&gt;You appear to have both duplicate symbols and unsats.&lt;BR /&gt;pcap_datalink_name_to_val appears to be in both pcap.c and dlnames.c.  Etc.&lt;BR /&gt;You are also missing: ip6_print pcap_lex</description>
      <pubDate>Wed, 25 Nov 2009 23:10:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540125#M60147</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-25T23:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: cross compiling tcpdump</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540126#M60148</link>
      <description>Hi &lt;BR /&gt;My OS is Red Hat Linux 7.2.&lt;BR /&gt;My target OS is a firmware for Linksys WRT54GL called DD-WRT.&lt;BR /&gt;I downloaded the toolchains from here: &lt;A href="ftp://ftp.dd-wrt.com/others/sourcecode/toolchains/" target="_blank"&gt;ftp://ftp.dd-wrt.com/others/sourcecode/toolchains/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And I know it works: &lt;BR /&gt;&lt;BR /&gt;touch /root/hello.c&lt;BR /&gt;&lt;BR /&gt;cat &amp;gt; ~/hello.c&amp;lt;&amp;lt; "EOF"&lt;BR /&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;int main ( void ) {&lt;BR /&gt;printf( "Hello world!\n" );&lt;BR /&gt;}&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;mipsel-linux-uclibc-gcc hello.c -o hello&lt;BR /&gt;&lt;BR /&gt;Above commands work fine and the hello program works fine on my router :)&lt;BR /&gt;&lt;BR /&gt;So I'm absolutely sure that it's not broken toolchains that affects me.&lt;BR /&gt;&lt;BR /&gt;I know it's not linux forum but the linux forum does not have a "programming" section.&lt;BR /&gt;So I hope somebody will be so kind to help me here. &lt;BR /&gt;&lt;BR /&gt;Can anyone check how the compilation goes on your system ?&lt;BR /&gt;&lt;BR /&gt;I pretty much gave the instructions on what I'm doing in the initial post. &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STDIO.H&gt;</description>
      <pubDate>Thu, 26 Nov 2009 00:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540126#M60148</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2009-11-26T00:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: cross compiling tcpdump</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540127#M60149</link>
      <description>Willingness or no of folks watching this forum to help notwithstanding, you may have better luck going straight to the tcpdump-workers mailing list:  tcpdump-workers@lists.tcpdump.org&lt;BR /&gt;&lt;BR /&gt;I cannot recall if one needs to be subscribed first, but I suspect that there will be links off of &lt;A href="http://www.tcpdump.org" target="_blank"&gt;www.tcpdump.org&lt;/A&gt; with that information.</description>
      <pubDate>Mon, 30 Nov 2009 17:31:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cross-compiling-tcpdump/m-p/4540127#M60149</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2009-11-30T17:31:13Z</dc:date>
    </item>
  </channel>
</rss>

