[oe] Problem of libpcap

J. L. vwyodapink at gmail.com
Fri Jul 16 16:25:31 UTC 2010


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 <salehusman at 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
>
> [Saleh at 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
>
>
> [Saleh at 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 at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldflags.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100716/62bd97e4/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ieee80215-arphrd.patch
Type: text/x-patch
Size: 746 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100716/62bd97e4/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aclocal.patch
Type: text/x-patch
Size: 4561 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100716/62bd97e4/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-some-problems-that-show-up-in-autoconf-2.64-and-.patch
Type: text/x-patch
Size: 3980 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100716/62bd97e4/attachment-0011.bin>


More information about the Openembedded-devel mailing list