From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mail.openembedded.org (Postfix) with ESMTP id C2006706D9 for ; Sun, 31 May 2015 14:04:33 +0000 (UTC) Received: by padj3 with SMTP id j3so25402419pad.0 for ; Sun, 31 May 2015 07:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Xh0LijHcO8BOdEL3OqbFuGYCzXlVHYTukAHJvDV+uP0=; b=azExxWu+SokLF8764MQN6puxIuRhqoTyO9DnakY4Mbi8kmtajTvWjL6BRqaK7xNCyl 6L2rSbAoyiPaE8MmIRXc5Rav9dGhIriV6hwdW6Z1wP1WwsINPFa5rBImVydBuY9MBcLb 5wZYmjU4IHLZM36RK1UNbRe7X+gwoI2Psjjzq+1rlsAm+h4Moq08LSO+t2jZKh2aSA0k e/lvMZPku0rb66y2SJuy1xryWlRpsMmm1S9X0hMdKAGZLW3eWc1o6voksqjOpxkyy4bL 1COhbGWEoLl1vUdqaf3QnjaM4p1EfHKftjT1dTgiG7Ruq8cgXt94WEf0hWxyavYrVAHy 8QVA== X-Received: by 10.66.65.171 with SMTP id y11mr32045838pas.74.1433081074346; Sun, 31 May 2015 07:04:34 -0700 (PDT) Received: from ?IPv6:2601:c:a700:3ba7:92d:29db:6263:7aa7? ([2601:c:a700:3ba7:92d:29db:6263:7aa7]) by mx.google.com with ESMTPSA id ku10sm11424410pab.3.2015.05.31.07.04.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 May 2015 07:04:32 -0700 (PDT) Message-ID: <556B14E4.7040608@gmail.com> Date: Sun, 31 May 2015 07:04:20 -0700 From: akuster808 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Stefan Agner , martin.jansa@gmail.com References: <1432104728-18440-1-git-send-email-stefan@agner.ch> In-Reply-To: Cc: openembedded-devel@lists.openembedded.org Subject: Re: [meta-oe][dizzy][PATCH] ptpd: disable libpcap detection via pcap-config X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 May 2015 14:04:34 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit merged to staging. - armin On 05/29/2015 04:30 AM, Stefan Agner wrote: > Ping... > > -- > Stefan > > On 2015-05-20 08:52, Stefan Agner wrote: >> When the host system provides pcap-config, the configure scripts >> detect that and add a bogous CPPFLAG: >> >> checking for pcap-config... /usr/bin/pcap-config >> checking if we want to build with libpcap support... yes, pcap-config >> ... >> PCAP_CPPFLAGS = -I/usr/include >> >> Which down the line can lead to compile errors due to wrong headers >> being included. Fix this issue by using --with-pcap-config=no which >> prevents detection using pcap-config but does "guessing", which works >> fine for OE. >> >> Signed-off-by: Stefan Agner >> --- >> If the host has libpcap development packages installed (which provide >> pcap-config), this lead to compile errors like: >> cc1: warning: include location "/usr/include" is unsafe for cross-compilation >> [-Wpoison-system-directories] >> cc1: warning: include location "/usr/include" is unsafe for cross-compilation >> [-Wpoison-system-directories] >> cc1: warning: include location "/usr/include" is unsafe for cross-compilation >> [-Wpoison-system-directories] >> In file included from /usr/include/bits/byteswap.h:35:0, >> from /usr/include/endian.h:60, >> from /usr/include/bits/waitstatus.h:64, >> from /usr/include/stdlib.h:42, >> from >> /home/cceylan01/mywork/pdu/toradex/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/ptpd.h:40, >> from >> /home/cceylan01/mywork/pdu/toradex/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c:54: >> /home/cceylan01/mywork/pdu/toradex/oe-core/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/ptpd/2.3.1-rc2-r0/ptpd-2.3.1-rc2/src/bmc.c: >> In function 'initData': >> /usr/include/bits/byteswap-16.h:31:5: error: invalid 'asm': invalid operand for >> code 'w' >> __asm__ ("rorw $8, %w0" \ >> ^ >> /usr/include/netinet/in.h:403:21: note: in expansion of macro '__bswap_16' >> # define htons(x) __bswap_16 (x) >> >> This problem is already solved in fido/master due to the change to >> pkgconfig by Joe MacDonald... >> >> meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb >> b/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb >> index db74e44..b6abfee 100644 >> --- a/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb >> +++ b/meta-networking/recipes-daemons/ptpd/ptpd_2.3.1-rc2.bb >> @@ -8,7 +8,7 @@ SECTION = "network" >> LICENSE = "BSD" >> LIC_FILES_CHKSUM = "file://README;md5=2452033fe374283f29579898663b1aa8" >> >> -DEPENDS = "libpcap" >> +DEPENDS = "linux-libc-headers libpcap" >> >> inherit autotools >> >> @@ -30,7 +30,7 @@ S = "${WORKDIR}/ptpd-${PV}" >> >> EXTRA_OEMAKE = "" >> >> -EXTRA_OECONF += "--disable-snmp" >> +EXTRA_OECONF += "--disable-snmp --with-pcap-config=no" >> >> do_install() { >> install -d ${D}${bindir} ${D}${mandir}/man8 >