Mine is building fine here are the files incase you are using a older pull of OE which it looks like you might be. I attacked all the patches for it as well. Hope this helps you out. I have noticed there are a bunch that are not building and or are WAY WAY out of date.
require libpcap.inc PR = "r6" SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz" SRC_URI += "file://aclocal.patch" SRC_URI += "file://ieee80215-arphrd.patch" SRC_URI += "file://ldflags.patch" SRC_URI += "file://0001-Fix-some-problems-that-show-up-in-autoconf-2.64-and-.patch" do_configure_prepend() { cat ${S}/aclocal.m4 >>${S}/acinclude.m4 } do_compile () { oe_runmake rm -f *.o oe_runmake shared } do_install () { install -d ${D}${libdir} install -d ${D}${bindir} oe_runmake install DESTDIR=${D} oe_runmake install-shared DESTDIR=${D} oe_libinstall -a -so libpcap ${D}${libdir} install -d ${D}${includedir}/pcap install -m 0644 pcap/pcap.h ${D}${includedir}/pcap/pcap.h install -m 0644 pcap/namedb.h ${D}${includedir}/pcap/namedb.h install -m 0644 pcap/bpf.h ${D}${includedir}/pcap/bpf.h } SRC_URI[md5sum] = "9ad1358c5dec48456405eac197a46d3d" SRC_URI[sha256sum] = "a214c4e1d7e22a758f66fe1d08f0ce41c3ba801a4c13dd1188e1e38288ac73c0" DESCRIPTION = "Network Packet Capture Library" HOMEPAGE = "http://www.tcpdump.org/" SECTION = "libs/network" LICENSE = "BSD" DEPENDS = "bluez-libs flex-native bison-native" PR = "r3" # Don't forget to edit shared.patch to have the correct version number inside SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz \ file://shared.patch" inherit autotools EXTRA_OECONF = "--with-pcap=linux" CPPFLAGS_prepend = "-I${S} " CFLAGS_prepend = "-I${S} " CXXFLAGS_prepend = "-I${S} " do_configure_prepend () { if [ ! -e acinclude.m4 ]; then cat aclocal.m4 > acinclude.m4 fi } do_install_append () { install -d ${D}${includedir}/net install -d ${D}${datadir}/aclocal ln -sf ../pcap-bpf.h ${D}${includedir}/net/bpf.h install -m 0644 acinclude.m4 ${D}${datadir}/aclocal/libpcap.m4 } On Fri, Jul 16, 2010 at 8:12 AM, saleh usman <salehus...@hotmail.com> wrote: > > I am bitbaking console-iamge but getting error of not building libpcap? I've > bitbake libpcap separately but it is also not building. Its bitbake fails > during configure. These are shown in following terminal logs. Kindly tell me > how to remove this error? > Saleh > > [sa...@localhost ~]$ bitbake console-image > NOTE: Handling BitBake files: \ (8169/8169) [100 %] > NOTE: Parsing finished. 7530 cached, 309 parsed, 330 skipped, 0 masked. > NOTE: Resolving any missing task queue dependencies > NOTE: Preparing runqueue > NOTE: Executing runqueue > NOTE: Running task 1774 of 3226 (ID: 1317, > /sdr/openembedded/recipes/libpcap/libpcap_1.0.0.bb, do_configure) > ERROR: function do_configure failed > ERROR: log data follows > (/sdr/build/tmp/work/armv5te-angstrom-linux-gnueabi/libpcap-1.0.0-r6/temp/log.do_configure.2961) > | cat: > /sdr/build/tmp/work/armv5te-angstrom-linux-gnueabi/libpcap-1.0.0-r6/libpcap-1.0.0/aclocal.m4: > No such file or directory > NOTE: Task failed: > /sdr/build/tmp/work/armv5te-angstrom-linux-gnueabi/libpcap-1.0.0-r6/temp/log.do_configure.2961 > ERROR: TaskFailed event exception, aborting > ERROR: Build of /sdr/openembedded/recipes/libpcap/libpcap_1.0.0.bb > do_configure failed > ERROR: Task 1317 (/sdr/openembedded/recipes/libpcap/libpcap_1.0.0.bb, > do_configure) failed > NOTE: Tasks Summary: Attempted 1773 tasks of which 1773 didn't need to be > rerun and 1 failed. > ERROR: '/sdr/openembedded/recipes/libpcap/libpcap_1.0.0.bb' failed > > > [sa...@localhost openembedded]$ bitbake libpcap > NOTE: Handling BitBake files: \ (8169/8169) [100 %] > NOTE: Parsing finished. 7530 cached, 309 parsed, 330 skipped, 0 masked. > NOTE: Resolving any missing task queue dependencies > NOTE: Preparing runqueue > NOTE: Executing runqueue > NOTE: Running task 1695 of 2385 (ID: 7, > /sdr/openembedded/recipes/libpcap/libpcap_1.0.0.bb, do_configure) > ERROR: function do_configure failed > ERROR: log data follows > (/sdr/build/tmp/work/armv5te-angstrom-linux-gnueabi/libpcap-1.0.0-r6/temp/log.do_configure.11281) > | cat: > /sdr/build/tmp/work/armv5te-angstrom-linux-gnueabi/libpcap-1.0.0-r6/libpcap-1.0.0/aclocal.m4: > No such file or directory > NOTE: Task failed: > /sdr/build/tmp/work/armv5te-angstrom-linux-gnueabi/libpcap-1.0.0-r6/temp/log.do_configure.11281 > ERROR: TaskFailed event exception, aborting > ERROR: Build of /sdr/openembedded/recipes/libpcap/libpcap_1.0.0.bb > do_configure failed > ERROR: Task 7 (/sdr/openembedded/recipes/libpcap/libpcap_1.0.0.bb, > do_configure) failed > NOTE: Tasks Summary: Attempted 1694 tasks of which 1694 didn't need to be > rerun and 1 failed. > ERROR: '/sdr/openembedded/recipes/libpcap/libpcap_1.0.0.bb' failed > > > _________________________________________________________________ > Hotmail: Trusted email with Microsoft’s powerful SPAM protection. > https://signup.live.com/signup.aspx?id=60969 > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel >
diff -urN libpcap-1.0.0.orig/Makefile.in libpcap-1.0.0/Makefile.in --- libpcap-1.0.0.orig/Makefile.in 2008-10-28 01:26:13.000000000 +0000 +++ libpcap-1.0.0/Makefile.in 2009-04-02 13:54:20.000000000 +0000 @@ -326,7 +326,7 @@ # libpcap.so: $(OBJ) @rm -f $@ - $(CC) -shared -Wl,-soname,$...@.1 -o $...@.`cat $(srcdir)/VERSION` $(OBJ) $(DAGLIBS) + $(CC) $(LDFLAGS) -shared -Wl,-soname,$...@.1 -o $...@.`cat $(srcdir)/VERSION` $(OBJ) $(DAGLIBS) # # The following rule succeeds, but the result is untested.
Index: libpcap-1.0.0/pcap-linux.c =================================================================== --- libpcap-1.0.0.orig/pcap-linux.c 2009-01-28 11:58:54.000000000 +0300 +++ libpcap-1.0.0/pcap-linux.c 2009-01-28 11:59:04.000000000 +0300 @@ -1616,6 +1616,17 @@ * so let's use "Linux-cooked" mode. Jean II */ //handle->md.cooked = 1; break; +#ifndef ARPHRD_IEEE80215 +#define ARPHRD_IEEE80215 804 +#endif +#ifndef ARPHRD_IEEE80215_PHY +#define ARPHRD_IEEE80215_PHY 805 +#endif + + case ARPHRD_IEEE80215: + case ARPHRD_IEEE80215_PHY: + handle->linktype = DLT_IEEE802_15_4; + break; /* ARPHRD_LAPD is unofficial and randomly allocated, if reallocation * is needed, please report it to <dani...@orlandi.com> */
diff -Naru libpcap-0.9.7.orig/aclocal.m4 libpcap-0.9.7/acinclude.m4 --- libpcap-0.9.7.orig/aclocal.m4 2007-09-16 01:19:51.000000000 +0200 +++ libpcap-0.9.7/aclocal.m4 2007-09-16 02:45:52.000000000 +0200 @@ -42,7 +42,7 @@ dnl ac_cv_lbl_gcc_vers dnl LBL_CFLAGS dnl -AC_DEFUN(AC_LBL_C_INIT, +AC_DEFUN([AC_LBL_C_INIT], [AC_PREREQ(2.12) AC_BEFORE([$0], [AC_PROG_CC]) AC_BEFORE([$0], [AC_LBL_FIXINCLUDES]) @@ -169,7 +169,7 @@ # Make sure we use the V_CCOPT flags, because some of those might # disable inlining. # -AC_DEFUN(AC_LBL_C_INLINE, +AC_DEFUN([AC_LBL_C_INLINE], [AC_MSG_CHECKING(for inline) save_CFLAGS="$CFLAGS" CFLAGS="$V_CCOPT" @@ -225,7 +225,7 @@ dnl LIBS dnl LBL_LIBS dnl -AC_DEFUN(AC_LBL_LIBPCAP, +AC_DEFUN([AC_LBL_LIBPCAP], [AC_REQUIRE([AC_LBL_LIBRARY_NET]) dnl dnl save a copy before locating libpcap.a @@ -293,7 +293,7 @@ dnl RETSIGTYPE (defined) dnl RETSIGVAL (defined) dnl -AC_DEFUN(AC_LBL_TYPE_SIGNAL, +AC_DEFUN([AC_LBL_TYPE_SIGNAL], [AC_BEFORE([$0], [AC_LBL_LIBPCAP]) AC_TYPE_SIGNAL if test "$ac_cv_type_signal" = void ; then @@ -323,7 +323,7 @@ dnl dnl AC_LBL_FIXINCLUDES dnl -AC_DEFUN(AC_LBL_FIXINCLUDES, +AC_DEFUN([AC_LBL_FIXINCLUDES], [if test "$GCC" = yes ; then AC_MSG_CHECKING(for ANSI ioctl definitions) AC_CACHE_VAL(ac_cv_lbl_gcc_fixincludes, @@ -369,7 +369,7 @@ dnl $2 (yacc appended) dnl $3 (optional flex and bison -P prefix) dnl -AC_DEFUN(AC_LBL_LEX_AND_YACC, +AC_DEFUN([AC_LBL_LEX_AND_YACC], [AC_ARG_WITH(flex, [ --without-flex don't use flex]) AC_ARG_WITH(bison, [ --without-bison don't use bison]) if test "$with_flex" = no ; then @@ -422,7 +422,7 @@ dnl dnl DECLWAITSTATUS (defined) dnl -AC_DEFUN(AC_LBL_UNION_WAIT, +AC_DEFUN([AC_LBL_UNION_WAIT], [AC_MSG_CHECKING(if union wait is used) AC_CACHE_VAL(ac_cv_lbl_union_wait, AC_TRY_COMPILE([ @@ -451,7 +451,7 @@ dnl dnl HAVE_SOCKADDR_SA_LEN (defined) dnl -AC_DEFUN(AC_LBL_SOCKADDR_SA_LEN, +AC_DEFUN([AC_LBL_SOCKADDR_SA_LEN], [AC_MSG_CHECKING(if sockaddr struct has sa_len member) AC_CACHE_VAL(ac_cv_lbl_sockaddr_has_sa_len, AC_TRY_COMPILE([ @@ -476,7 +476,7 @@ dnl dnl HAVE_SOCKADDR_STORAGE (defined) dnl -AC_DEFUN(AC_LBL_SOCKADDR_STORAGE, +AC_DEFUN([AC_LBL_SOCKADDR_STORAGE], [AC_MSG_CHECKING(if sockaddr_storage struct exists) AC_CACHE_VAL(ac_cv_lbl_has_sockaddr_storage, AC_TRY_COMPILE([ @@ -509,7 +509,7 @@ dnl won't be using code that would use that member, or we wouldn't dnl compile in any case). dnl -AC_DEFUN(AC_LBL_HP_PPA_INFO_T_DL_MODULE_ID_1, +AC_DEFUN([AC_LBL_HP_PPA_INFO_T_DL_MODULE_ID_1], [AC_MSG_CHECKING(if dl_hp_ppa_info_t struct has dl_module_id_1 member) AC_CACHE_VAL(ac_cv_lbl_dl_hp_ppa_info_t_has_dl_module_id_1, AC_TRY_COMPILE([ @@ -535,7 +535,7 @@ dnl dnl ac_cv_lbl_have_run_path (yes or no) dnl -AC_DEFUN(AC_LBL_HAVE_RUN_PATH, +AC_DEFUN([AC_LBL_HAVE_RUN_PATH], [AC_MSG_CHECKING(for ${CC-cc} -R) AC_CACHE_VAL(ac_cv_lbl_have_run_path, [echo 'main(){}' > conftest.c @@ -561,7 +561,7 @@ dnl int32_t (defined) dnl u_int32_t (defined) dnl -AC_DEFUN(AC_LBL_CHECK_TYPE, +AC_DEFUN([AC_LBL_CHECK_TYPE], [AC_MSG_CHECKING(for $1 using $CC) AC_CACHE_VAL(ac_cv_lbl_have_$1, AC_TRY_COMPILE([ @@ -590,7 +590,7 @@ dnl dnl LBL_ALIGN (DEFINED) dnl -AC_DEFUN(AC_LBL_UNALIGNED_ACCESS, +AC_DEFUN([AC_LBL_UNALIGNED_ACCESS], [AC_MSG_CHECKING(if unaligned accesses fail) AC_CACHE_VAL(ac_cv_lbl_unaligned_fail, [case "$host_cpu" in @@ -695,7 +695,7 @@ dnl HAVE_OS_PROTO_H (defined) dnl os-proto.h (symlinked) dnl -AC_DEFUN(AC_LBL_DEVEL, +AC_DEFUN([AC_LBL_DEVEL], [rm -f os-proto.h if test "${LBL_CFLAGS+set}" = set; then $1="$$1 ${LBL_CFLAGS}" @@ -825,7 +825,7 @@ dnl statically and happen to have a libresolv.a lying around (and no dnl libnsl.a). dnl -AC_DEFUN(AC_LBL_LIBRARY_NET, [ +AC_DEFUN([AC_LBL_LIBRARY_NET], [ # Most operating systems have gethostbyname() in the default searched # libraries (i.e. libc): # Some OSes (eg. Solaris) place it in libnsl @@ -848,7 +848,7 @@ dnl Test for __attribute__ dnl -AC_DEFUN(AC_C___ATTRIBUTE__, [ +AC_DEFUN([AC_C___ATTRIBUTE__], [ AC_MSG_CHECKING(for __attribute__) AC_CACHE_VAL(ac_cv___attribute__, [ AC_COMPILE_IFELSE( @@ -886,7 +886,7 @@ dnl dnl -Scott Barron dnl -AC_DEFUN(AC_LBL_TPACKET_STATS, +AC_DEFUN([AC_LBL_TPACKET_STATS], [AC_MSG_CHECKING(if if_packet.h has tpacket_stats defined) AC_CACHE_VAL(ac_cv_lbl_tpacket_stats, AC_TRY_COMPILE([
From d1a3a92fab103210ab5f61780a731bce9a8909b5 Mon Sep 17 00:00:00 2001 From: Guy Harris <g...@alum.mit.edu> Date: Sat, 2 Jan 2010 14:15:46 -0800 Subject: [PATCH] Fix some problems that show up in autoconf 2.64 and later. --- aclocal.m4 | 60 ++++++++++++++++++++++++++++++++++++--------------------- configure | 9 ++++--- configure.in | 2 + 3 files changed, 45 insertions(+), 26 deletions(-) Index: libpcap-1.0.0/aclocal.m4 =================================================================== --- libpcap-1.0.0.orig/aclocal.m4 +++ libpcap-1.0.0/aclocal.m4 @@ -23,30 +23,21 @@ dnl LBL autoconf macros dnl dnl -dnl Determine which compiler we're using (cc or gcc) -dnl If using gcc, determine the version number -dnl If using cc, require that it support ansi prototypes -dnl If using gcc, use -O2 (otherwise use -O) -dnl If using cc, explicitly specify /usr/local/include -dnl -dnl usage: -dnl -dnl AC_LBL_C_INIT(copt, incls) -dnl -dnl results: +dnl Do whatever AC_LBL_C_INIT work is necessary before using AC_PROG_CC. dnl -dnl $1 (copt set) -dnl $2 (incls set) -dnl CC -dnl LDFLAGS -dnl ac_cv_lbl_gcc_vers -dnl LBL_CFLAGS +dnl It appears that newer versions of autoconf (2.64 and later) will, +dnl if you use AC_TRY_COMPILE in a macro, stick AC_PROG_CC at the +dnl beginning of the macro, even if the macro itself calls AC_PROG_CC. +dnl See section 20.8 "Expanded Before Required" in the Autoconf +dnl documentation. +dnl +dnl This causes a steaming heap of fail in our case, as we were, in +dnl AC_LBL_C_INIT, doing the tests we now do in AC_LBL_C_PREPARE, +dnl calling AC_PROG_CC, and then doing the tests we now do in +dnl AC_LBL_C_INIT. dnl -AC_DEFUN([AC_LBL_C_INIT], - [AC_PREREQ(2.12) - AC_BEFORE([$0], [AC_PROG_CC]) - AC_BEFORE([$0], [AC_LBL_FIXINCLUDES]) - AC_BEFORE([$0], [AC_LBL_DEVEL]) +AC_DEFUN(AC_LBL_C_INIT_BEFORE_CC, +[ AC_ARG_WITH(gcc, [ --without-gcc don't use gcc]) $1="-O" $2="" @@ -72,7 +63,32 @@ AC_DEFUN([AC_LBL_C_INIT], CC=cc export CC fi - AC_PROG_CC +]) + +dnl +dnl Determine which compiler we're using (cc or gcc) +dnl If using gcc, determine the version number +dnl If using cc, require that it support ansi prototypes +dnl If using gcc, use -O2 (otherwise use -O) +dnl If using cc, explicitly specify /usr/local/include +dnl +dnl usage: +dnl +dnl AC_LBL_C_INIT(copt, incls) +dnl +dnl results: +dnl +dnl $1 (copt set) +dnl $2 (incls set) +dnl CC +dnl LDFLAGS +dnl ac_cv_lbl_gcc_vers +dnl LBL_CFLAGS +dnl +AC_DEFUN(AC_LBL_C_INIT, + [AC_PREREQ(2.50) + AC_BEFORE([$0], [AC_LBL_FIXINCLUDES]) + AC_BEFORE([$0], [AC_LBL_DEVEL]) if test "$GCC" = yes ; then if test "$SHLICC2" = yes ; then ac_cv_lbl_gcc_vers=2 Index: libpcap-1.0.0/configure =================================================================== --- libpcap-1.0.0.orig/configure +++ libpcap-1.0.0/configure @@ -1893,9 +1893,6 @@ test -n "$target_alias" && - - - # Check whether --with-gcc was given. if test "${with_gcc+set}" = set; then withval=$with_gcc; @@ -1962,7 +1959,8 @@ fi CC=cc export CC fi - ac_ext=c + +ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' @@ -2881,6 +2879,9 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS con ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + if test "$GCC" = yes ; then if test "$SHLICC2" = yes ; then ac_cv_lbl_gcc_vers=2 Index: libpcap-1.0.0/configure.in =================================================================== --- libpcap-1.0.0.orig/configure.in +++ libpcap-1.0.0/configure.in @@ -12,6 +12,8 @@ AC_INIT(pcap.c) AC_CANONICAL_SYSTEM +AC_LBL_C_INIT_BEFORE_CC(V_CCOPT, V_INCLS) +AC_PROG_CC AC_LBL_C_INIT(V_CCOPT, V_INCLS, V_LIBS) AC_LBL_C_INLINE AC_C___ATTRIBUTE__
_______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel