* [meta-oe][dizzy][PATCH] ptpd: disable libpcap detection via pcap-config
@ 2015-05-20 6:52 Stefan Agner
2015-05-29 11:30 ` Stefan Agner
2015-05-31 16:47 ` akuster808
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Agner @ 2015-05-20 6:52 UTC (permalink / raw)
To: akuster808, openembedded-devel
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 <stefan@agner.ch>
---
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
--
2.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-oe][dizzy][PATCH] ptpd: disable libpcap detection via pcap-config
2015-05-20 6:52 [meta-oe][dizzy][PATCH] ptpd: disable libpcap detection via pcap-config Stefan Agner
@ 2015-05-29 11:30 ` Stefan Agner
2015-05-31 14:04 ` akuster808
2015-05-31 16:47 ` akuster808
1 sibling, 1 reply; 4+ messages in thread
From: Stefan Agner @ 2015-05-29 11:30 UTC (permalink / raw)
To: akuster808, martin.jansa; +Cc: openembedded-devel
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 <stefan@agner.ch>
> ---
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-oe][dizzy][PATCH] ptpd: disable libpcap detection via pcap-config
2015-05-29 11:30 ` Stefan Agner
@ 2015-05-31 14:04 ` akuster808
0 siblings, 0 replies; 4+ messages in thread
From: akuster808 @ 2015-05-31 14:04 UTC (permalink / raw)
To: Stefan Agner, martin.jansa; +Cc: openembedded-devel
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 <stefan@agner.ch>
>> ---
>> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-oe][dizzy][PATCH] ptpd: disable libpcap detection via pcap-config
2015-05-20 6:52 [meta-oe][dizzy][PATCH] ptpd: disable libpcap detection via pcap-config Stefan Agner
2015-05-29 11:30 ` Stefan Agner
@ 2015-05-31 16:47 ` akuster808
1 sibling, 0 replies; 4+ messages in thread
From: akuster808 @ 2015-05-31 16:47 UTC (permalink / raw)
To: Stefan Agner, openembedded-devel
merged to akuster/dizzy-next
- armin
On 05/19/2015 11:52 PM, 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 <stefan@agner.ch>
> ---
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-31 16:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-20 6:52 [meta-oe][dizzy][PATCH] ptpd: disable libpcap detection via pcap-config Stefan Agner
2015-05-29 11:30 ` Stefan Agner
2015-05-31 14:04 ` akuster808
2015-05-31 16:47 ` akuster808
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.