* recipes for sniffer tool @ 2011-04-07 13:24 João Henrique Freitas 2011-04-07 13:27 ` Koen Kooi 0 siblings, 1 reply; 10+ messages in thread From: João Henrique Freitas @ 2011-04-07 13:24 UTC (permalink / raw) To: yocto Hi, Is there any recipes to build a sniffer the network? I searched but does not found any recipes about it. I am trying to build tcpdump and/or wireshark (tshark only). Is interesting for Yocto project to have a sniffer? Thanks. -- ----------------------------------------------------------- João Henrique Freitas - joaohf_at_gmail.com Campinas-SP-Brasil BSD051283 LPI 1 http://www.joaohfreitas.eti.br ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-07 13:24 recipes for sniffer tool João Henrique Freitas @ 2011-04-07 13:27 ` Koen Kooi 2011-04-07 18:11 ` João Henrique Freitas 0 siblings, 1 reply; 10+ messages in thread From: Koen Kooi @ 2011-04-07 13:27 UTC (permalink / raw) To: João Henrique Freitas; +Cc: yocto Op 7 apr 2011, om 15:24 heeft João Henrique Freitas het volgende geschreven: > Hi, > > Is there any recipes to build a sniffer the network? > > I searched but does not found any recipes about it. > > I am trying to build tcpdump and/or wireshark (tshark only). You can move the recipes over from oe.dev to meta-oe if you wish. Should be a matter of adding the license info and building them. regards, Koen ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-07 13:27 ` Koen Kooi @ 2011-04-07 18:11 ` João Henrique Freitas 2011-04-07 18:40 ` Gary Thomas 0 siblings, 1 reply; 10+ messages in thread From: João Henrique Freitas @ 2011-04-07 18:11 UTC (permalink / raw) To: Koen Kooi; +Cc: yocto Hi > > You can move the recipes over from oe.dev to meta-oe if you wish. Should be a matter of adding the license info and building them. > I get tcpdump from oe.dev and put it inside my meta-test layer. I am using yocto (bernard track). When I run 'bitbake tcpdump': | configure: WARNING: unrecognized options: --with-libtool-sysroot | NOTE: Checking autotools environment for common misconfiguration | ERROR: This autoconf log indicates errors, it looked at host include and/or library paths while determining system capabilities. I think this problem is trivial but I can't figure how to solve. Any hint? -- ----------------------------------------------------------- João Henrique Freitas - joaohf_at_gmail.com Campinas-SP-Brasil BSD051283 LPI 1 http://www.joaohfreitas.eti.br ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-07 18:11 ` João Henrique Freitas @ 2011-04-07 18:40 ` Gary Thomas 2011-04-07 19:48 ` João Henrique Freitas 0 siblings, 1 reply; 10+ messages in thread From: Gary Thomas @ 2011-04-07 18:40 UTC (permalink / raw) To: João Henrique Freitas; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 1003 bytes --] On 04/07/2011 12:11 PM, João Henrique Freitas wrote: > Hi > >> >> You can move the recipes over from oe.dev to meta-oe if you wish. Should be a matter of adding the license info and building them. >> > > I get tcpdump from oe.dev and put it inside my meta-test layer. I am > using yocto (bernard track). > > When I run 'bitbake tcpdump': > > | configure: WARNING: unrecognized options: --with-libtool-sysroot > | NOTE: Checking autotools environment for common misconfiguration > | ERROR: This autoconf log indicates errors, it looked at host include > and/or library paths while determining system capabilities. > > I think this problem is trivial but I can't figure how to solve. I used this recipe, along with the attached patch to build tcpdump. -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ [-- Attachment #2: tcpdump_4.1.1.bb --] [-- Type: text/plain, Size: 1139 bytes --] DESCRIPTION = "A sophisticated network protocol analyzer" HOMEPAGE = "http://www.tcpdump.org/" LICENSE = "BSD" SECTION = "console/network" PRIORITY = "optional" DEPENDS = "libpcap" PR = "r1" SRC_URI = " \ http://www.tcpdump.org/release/tcpdump-${PV}.tar.gz \ file://tcpdump_configure_no_-O2.patch \ file://0001-minimal-IEEE802.15.4-allowed.patch \ file://ipv6-cross.patch \ file://configure.patch \ file://not-building-for-solaris.patch \ " LIC_FILES_CHKSUM = " \ file://LICENSE;md5=1d4b0366557951c84a94fabe3529f867 \ " inherit autotools # ac_cv_linux_vers=${ac_cv_linux_vers=2} EXTRA_OECONF = "--without-crypto \ ${@base_contains('DISTRO_FEATURES', 'ipv6', '--enable-ipv6', '--disable-ipv6', d)}" do_configure() { gnu-configize autoconf oe_runconf sed -i 's:/usr/lib:${STAGING_LIBDIR}:' ./Makefile sed -i 's:/usr/include:${STAGING_INCDIR}:' ./Makefile } do_install_append() { # tcpdump 4.0.0 installs a copy to /usr/sbin/tcpdump.4.0.0 rm -f ${D}${sbindir}/tcpdump.${PV} } SRC_URI[md5sum] = "d0dd58bbd6cd36795e05c6f1f74420b0" SRC_URI[sha256sum] = "e6cd4bbd61ec7adbb61ba8352c4b4734f67b8caaa845d88cb826bc0b9f1e7f0a" [-- Attachment #3: not-building-for-solaris.patch --] [-- Type: text/x-patch, Size: 504 bytes --] diff -ur tcpdump-4.1.1.ORIG/configure.in tcpdump-4.1.1/configure.in --- tcpdump-4.1.1.ORIG/configure.in 2011-03-30 11:14:46.000000000 -0600 +++ tcpdump-4.1.1/configure.in 2011-03-31 06:00:18.187813636 -0600 @@ -715,9 +715,6 @@ fi fi -# libdlpi is needed for Solaris 11 and later. -AC_CHECK_LIB(dlpi, dlpi_walk, LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS", ,-L/lib) - dnl portability macros for getaddrinfo/getnameinfo dnl dnl Check for sa_len Only in tcpdump-4.1.1: configure.in~ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-07 18:40 ` Gary Thomas @ 2011-04-07 19:48 ` João Henrique Freitas 2011-04-07 20:20 ` Gary Thomas 0 siblings, 1 reply; 10+ messages in thread From: João Henrique Freitas @ 2011-04-07 19:48 UTC (permalink / raw) To: Gary Thomas; +Cc: yocto > > I used this recipe, along with the attached patch to build tcpdump. > I am using the same recipes, without the patch. But it fails. With not-building-for-solaris.patch, fails too. I will try delete my build and try again. Thanks. -- ----------------------------------------------------------- João Henrique Freitas - joaohf_at_gmail.com Campinas-SP-Brasil BSD051283 LPI 1 http://www.joaohfreitas.eti.br ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-07 19:48 ` João Henrique Freitas @ 2011-04-07 20:20 ` Gary Thomas 2011-04-09 21:19 ` João Henrique Freitas 0 siblings, 1 reply; 10+ messages in thread From: Gary Thomas @ 2011-04-07 20:20 UTC (permalink / raw) To: João Henrique Freitas; +Cc: yocto On 04/07/2011 01:48 PM, João Henrique Freitas wrote: >> >> I used this recipe, along with the attached patch to build tcpdump. >> > > I am using the same recipes, without the patch. But it fails. > > With not-building-for-solaris.patch, fails too. > > I will try delete my build and try again. Be sure and start rebuilding the tcpdump package completely. Just running 'bitbake tcpdump' is probably not good enough. Here's what I would try: % bitbake tcpdump -c clean % rm -f sstate-cache/sstate-tcpdump* % bitbake tcpdump -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-07 20:20 ` Gary Thomas @ 2011-04-09 21:19 ` João Henrique Freitas 2011-04-12 15:07 ` João Henrique Freitas 0 siblings, 1 reply; 10+ messages in thread From: João Henrique Freitas @ 2011-04-09 21:19 UTC (permalink / raw) To: Gary Thomas; +Cc: yocto Hello, I need to confirm same data but it works. I have two build hosts Ubuntu 10.10 (OK, at home) Mandriva 2010.1 (FAIL, at work). Thanks. 2011/4/7 Gary Thomas <gary@mlbassoc.com>: > On 04/07/2011 01:48 PM, João Henrique Freitas wrote: >>> >>> I used this recipe, along with the attached patch to build tcpdump. >>> >> >> I am using the same recipes, without the patch. But it fails. >> >> With not-building-for-solaris.patch, fails too. >> >> I will try delete my build and try again. > > Be sure and start rebuilding the tcpdump package completely. > Just running 'bitbake tcpdump' is probably not good enough. > Here's what I would try: > % bitbake tcpdump -c clean > % rm -f sstate-cache/sstate-tcpdump* > % bitbake tcpdump > > -- > ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > ------------------------------------------------------------ > -- ----------------------------------------------------------- João Henrique Freitas - joaohf_at_gmail.com Campinas-SP-Brasil BSD051283 LPI 1 http://www.joaohfreitas.eti.br ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-09 21:19 ` João Henrique Freitas @ 2011-04-12 15:07 ` João Henrique Freitas 2011-04-12 15:22 ` Gary Thomas 0 siblings, 1 reply; 10+ messages in thread From: João Henrique Freitas @ 2011-04-12 15:07 UTC (permalink / raw) To: Gary Thomas; +Cc: yocto Hi, I found the problem: host contamination. tcpdump search by pcap-config script and runs it to get where pcap library lives. On my ubuntu box I haven't the pcap-devel package installed. But on mandriva box I had. I have two question: How Yocto can protect against this situation? Is any guide or hint about how I can patch a autotools based and removes this host contamination? Thanks. 2011/4/9 João Henrique Freitas <joaohf@gmail.com>: > Hello, > > I need to confirm same data but it works. > > I have two build hosts Ubuntu 10.10 (OK, at home) Mandriva 2010.1 > (FAIL, at work). > > Thanks. > > 2011/4/7 Gary Thomas <gary@mlbassoc.com>: >> On 04/07/2011 01:48 PM, João Henrique Freitas wrote: >>>> >>>> I used this recipe, along with the attached patch to build tcpdump. >>>> >>> >>> I am using the same recipes, without the patch. But it fails. >>> >>> With not-building-for-solaris.patch, fails too. >>> >>> I will try delete my build and try again. >> >> Be sure and start rebuilding the tcpdump package completely. >> Just running 'bitbake tcpdump' is probably not good enough. >> Here's what I would try: >> % bitbake tcpdump -c clean >> % rm -f sstate-cache/sstate-tcpdump* >> % bitbake tcpdump >> >> -- >> ------------------------------------------------------------ >> Gary Thomas | Consulting for the >> MLB Associates | Embedded world >> ------------------------------------------------------------ >> > > > > -- > ----------------------------------------------------------- > João Henrique Freitas - joaohf_at_gmail.com > Campinas-SP-Brasil > BSD051283 > LPI 1 > http://www.joaohfreitas.eti.br > -- ----------------------------------------------------------- João Henrique Freitas - joaohf_at_gmail.com Campinas-SP-Brasil BSD051283 LPI 1 http://www.joaohfreitas.eti.br ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-12 15:07 ` João Henrique Freitas @ 2011-04-12 15:22 ` Gary Thomas 2011-04-13 19:01 ` João Henrique Freitas 0 siblings, 1 reply; 10+ messages in thread From: Gary Thomas @ 2011-04-12 15:22 UTC (permalink / raw) To: João Henrique Freitas; +Cc: yocto On 04/12/2011 09:07 AM, João Henrique Freitas wrote: > Hi, > > I found the problem: host contamination. > > tcpdump search by pcap-config script and runs it to get where pcap > library lives. > > On my ubuntu box I haven't the pcap-devel package installed. But on > mandriva box I had. > > I have two question: > > How Yocto can protect against this situation? Everything that the package needs to be able to build, include stuff discovered via configure (autotools) should be built and available totally within Poky. > > Is any guide or hint about how I can patch a autotools based and > removes this host contamination? It should not be looking at any host tools to build tcpdump. Can you send the config.log from each of the systems (Ubuntu which works, Mandriva which fails)? > 2011/4/9 João Henrique Freitas<joaohf@gmail.com>: >> Hello, >> >> I need to confirm same data but it works. >> >> I have two build hosts Ubuntu 10.10 (OK, at home) Mandriva 2010.1 >> (FAIL, at work). >> >> Thanks. >> >> 2011/4/7 Gary Thomas<gary@mlbassoc.com>: >>> On 04/07/2011 01:48 PM, João Henrique Freitas wrote: >>>>> >>>>> I used this recipe, along with the attached patch to build tcpdump. >>>>> >>>> >>>> I am using the same recipes, without the patch. But it fails. >>>> >>>> With not-building-for-solaris.patch, fails too. >>>> >>>> I will try delete my build and try again. >>> >>> Be sure and start rebuilding the tcpdump package completely. >>> Just running 'bitbake tcpdump' is probably not good enough. >>> Here's what I would try: >>> % bitbake tcpdump -c clean >>> % rm -f sstate-cache/sstate-tcpdump* >>> % bitbake tcpdump >>> >>> -- >>> ------------------------------------------------------------ >>> Gary Thomas | Consulting for the >>> MLB Associates | Embedded world >>> ------------------------------------------------------------ >>> >> >> >> >> -- >> ----------------------------------------------------------- >> João Henrique Freitas - joaohf_at_gmail.com >> Campinas-SP-Brasil >> BSD051283 >> LPI 1 >> http://www.joaohfreitas.eti.br >> > > > -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: recipes for sniffer tool 2011-04-12 15:22 ` Gary Thomas @ 2011-04-13 19:01 ` João Henrique Freitas 0 siblings, 0 replies; 10+ messages in thread From: João Henrique Freitas @ 2011-04-13 19:01 UTC (permalink / raw) To: Gary Thomas; +Cc: yocto [-- Attachment #1: Type: text/plain, Size: 432 bytes --] Hi, > It should not be looking at any host tools to build tcpdump. Can you send > the config.log from each of the systems (Ubuntu which works, Mandriva which > fails)? I can, The attached file have two config.log Thanks. -- ----------------------------------------------------------- João Henrique Freitas - joaohf_at_gmail.com Campinas-SP-Brasil BSD051283 LPI 1 http://www.joaohfreitas.eti.br [-- Attachment #2: tcpdump_config.tgz --] [-- Type: application/x-gzip, Size: 47941 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-04-13 19:01 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-04-07 13:24 recipes for sniffer tool João Henrique Freitas 2011-04-07 13:27 ` Koen Kooi 2011-04-07 18:11 ` João Henrique Freitas 2011-04-07 18:40 ` Gary Thomas 2011-04-07 19:48 ` João Henrique Freitas 2011-04-07 20:20 ` Gary Thomas 2011-04-09 21:19 ` João Henrique Freitas 2011-04-12 15:07 ` João Henrique Freitas 2011-04-12 15:22 ` Gary Thomas 2011-04-13 19:01 ` João Henrique Freitas
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.