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
------------------------------------------------------------
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"

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~
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to