[oe] daq fix compilation

Message ID 1401196396-2009-1-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov May 27, 2014, 1:13 p.m.
preset paths to remove that error:
/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
./config.log:cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories]

Also this patch add required libdnet dependency.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 meta-oe/recipes-connectivity/daq/daq_2.0.2.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Martin Jansa May 27, 2014, 2:21 p.m. | #1
On Tue, May 27, 2014 at 05:13:16PM +0400, Maxim Uvarov wrote:
> preset paths to remove that error:
> /meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> ./config.log:cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories]
> 
> Also this patch add required libdnet dependency.
> 
> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> ---
>  meta-oe/recipes-connectivity/daq/daq_2.0.2.bb | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> index 4e85194..dcf38fc 100644
> --- a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> +++ b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
>  
>  PARALLEL_MAKE = ""
>  
> -DEPENDS = "libpcap libpcre"
> +DEPENDS = "libpcap libpcre libdnet"
>  
>  SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
>              file://disable-run-test-program-while-cross-compiling.patch "
> @@ -15,6 +15,9 @@ SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
>  # daq/daq/latest lost dependency on  libdnet libmnl libnetfilter-queue libnfnetlink
>  EXTRA_OECONF += "--disable-nfq-module --disable-ipq-module"
>  
> +# never look to /usr/local lib while cross compiling
> +EXTRA_OECONF += "--includedir=/usr/include --with-libpcap-includes=/usr/lib --with-dnet-includes=/usr/lib"

Does it look into /usr on host now?

>  SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0"
>  SRC_URI[sha256sum] = "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8"
>  
> -- 
> 1.8.5.1.163.gd7aced9
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Maxim Uvarov May 27, 2014, 2:29 p.m. | #2
On 05/27/2014 06:21 PM, Martin Jansa wrote:
> On Tue, May 27, 2014 at 05:13:16PM +0400, Maxim Uvarov wrote:
>> preset paths to remove that error:
>> /meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
>> ./config.log:cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories]
>>
>> Also this patch add required libdnet dependency.
>>
>> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
>> ---
>>   meta-oe/recipes-connectivity/daq/daq_2.0.2.bb | 5 ++++-
>>   1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
>> index 4e85194..dcf38fc 100644
>> --- a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
>> +++ b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
>> @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
>>   
>>   PARALLEL_MAKE = ""
>>   
>> -DEPENDS = "libpcap libpcre"
>> +DEPENDS = "libpcap libpcre libdnet"
>>   
>>   SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
>>               file://disable-run-test-program-while-cross-compiling.patch "
>> @@ -15,6 +15,9 @@ SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
>>   # daq/daq/latest lost dependency on  libdnet libmnl libnetfilter-queue libnfnetlink
>>   EXTRA_OECONF += "--disable-nfq-module --disable-ipq-module"
>>   
>> +# never look to /usr/local lib while cross compiling
>> +EXTRA_OECONF += "--includedir=/usr/include --with-libpcap-includes=/usr/lib --with-dnet-includes=/usr/lib"
> Does it look into /usr on host now?

yes and it compiles after that change.

Maxim.
>
>>   SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0"
>>   SRC_URI[sha256sum] = "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8"
>>   
>> -- 
>> 1.8.5.1.163.gd7aced9
>>
>> -- 
>> _______________________________________________
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>
Martin Jansa May 27, 2014, 7:48 p.m. | #3
On Tue, May 27, 2014 at 06:29:32PM +0400, Maxim Uvarov wrote:
> On 05/27/2014 06:21 PM, Martin Jansa wrote:
> > On Tue, May 27, 2014 at 05:13:16PM +0400, Maxim Uvarov wrote:
> >> preset paths to remove that error:
> >> /meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> >> ./config.log:cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories]
> >>
> >> Also this patch add required libdnet dependency.
> >>
> >> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> >> ---
> >>   meta-oe/recipes-connectivity/daq/daq_2.0.2.bb | 5 ++++-
> >>   1 file changed, 4 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> >> index 4e85194..dcf38fc 100644
> >> --- a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> >> +++ b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> >> @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
> >>   
> >>   PARALLEL_MAKE = ""
> >>   
> >> -DEPENDS = "libpcap libpcre"
> >> +DEPENDS = "libpcap libpcre libdnet"
> >>   
> >>   SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
> >>               file://disable-run-test-program-while-cross-compiling.patch "
> >> @@ -15,6 +15,9 @@ SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
> >>   # daq/daq/latest lost dependency on  libdnet libmnl libnetfilter-queue libnfnetlink
> >>   EXTRA_OECONF += "--disable-nfq-module --disable-ipq-module"
> >>   
> >> +# never look to /usr/local lib while cross compiling
> >> +EXTRA_OECONF += "--includedir=/usr/include --with-libpcap-includes=/usr/lib --with-dnet-includes=/usr/lib"
> > Does it look into /usr on host now?
> 
> yes and it compiles after that change.

Because you don't have dnet headers in /usr, right?
Shouldn't it point to sysroot libdir/includedir paths to prevent any
host libraries/headers to sneak in?

Or better explicitly disable/enable dnet with PACKAGECONFIG?

> Maxim.
> >
> >>   SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0"
> >>   SRC_URI[sha256sum] = "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8"
> >>   
> >> -- 
> >> 1.8.5.1.163.gd7aced9
> >>
> >> -- 
> >> _______________________________________________
> >> Openembedded-devel mailing list
> >> Openembedded-devel@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> >
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Koen Kooi May 28, 2014, 6:27 a.m. | #4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Jansa schreef op 27-05-14 21:48:
> On Tue, May 27, 2014 at 06:29:32PM +0400, Maxim Uvarov wrote:
>> On 05/27/2014 06:21 PM, Martin Jansa wrote:
>>> On Tue, May 27, 2014 at 05:13:16PM +0400, Maxim Uvarov wrote:
>>>> preset paths to remove that error: 
>>>> /meta-oe/recipes-connectivity/daq/daq_2.0.2.bb ./config.log:cc1:
>>>> warning: include location "/usr/local/include" is unsafe for
>>>> cross-compilation [-Wpoison-system-directories]
>>>> 
>>>> Also this patch add required libdnet dependency.
>>>> 
>>>> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- 
>>>> meta-oe/recipes-connectivity/daq/daq_2.0.2.bb | 5 ++++- 1 file
>>>> changed, 4 insertions(+), 1 deletion(-)
>>>> 
>>>> diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
>>>> b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb index
>>>> 4e85194..dcf38fc 100644 ---
>>>> a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb +++
>>>> b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb @@ -5,7 +5,7 @@
>>>> LIC_FILES_CHKSUM =
>>>> "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
>>>> 
>>>> PARALLEL_MAKE = ""
>>>> 
>>>> -DEPENDS = "libpcap libpcre" +DEPENDS = "libpcap libpcre libdnet"
>>>> 
>>>> SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \ 
>>>> file://disable-run-test-program-while-cross-compiling.patch " @@
>>>> -15,6 +15,9 @@ SRC_URI =
>>>> "http://fossies.org/linux/misc/daq-${PV}.tar.gz \ # daq/daq/latest
>>>> lost dependency on  libdnet libmnl libnetfilter-queue libnfnetlink 
>>>> EXTRA_OECONF += "--disable-nfq-module --disable-ipq-module"
>>>> 
>>>> +# never look to /usr/local lib while cross compiling +EXTRA_OECONF
>>>> += "--includedir=/usr/include --with-libpcap-includes=/usr/lib
>>>> --with-dnet-includes=/usr/lib"

Apart from Martins comments:

s,/usr/include,${includedir}, s,/usr/lib,${libdir],s

>>> Does it look into /usr on host now?
>> 
>> yes and it compiles after that change.
> 
> Because you don't have dnet headers in /usr, right? Shouldn't it point to
> sysroot libdir/includedir paths to prevent any host libraries/headers to
> sneak in?
> 
> Or better explicitly disable/enable dnet with PACKAGECONFIG?
> 
>> Maxim.
>>> 
>>>> SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0" 
>>>> SRC_URI[sha256sum] =
>>>> "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8"
>>>> 
>>>> -- 1.8.5.1.163.gd7aced9
>>>> 
>>>> -- _______________________________________________ 
>>>> Openembedded-devel mailing list 
>>>> Openembedded-devel@lists.openembedded.org 
>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>>> 
>>> 
>> 
>> -- _______________________________________________ Openembedded-devel
>> mailing list Openembedded-devel@lists.openembedded.org 
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFThYHsMkyGM64RGpERAtiuAKC9mKMO+TzYJ0Z42mCUa3vI2NP+oQCffCv4
Wo1+U3SJNrRsNMAUepC9mQs=
=DMBJ
-----END PGP SIGNATURE-----
Maxim Uvarov May 28, 2014, 8:50 a.m. | #5
thanks, will send v2.

Maxim.


On 28 May 2014 10:27, Koen Kooi <koen@dominion.thruhere.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Martin Jansa schreef op 27-05-14 21:48:
> > On Tue, May 27, 2014 at 06:29:32PM +0400, Maxim Uvarov wrote:
> >> On 05/27/2014 06:21 PM, Martin Jansa wrote:
> >>> On Tue, May 27, 2014 at 05:13:16PM +0400, Maxim Uvarov wrote:
> >>>> preset paths to remove that error:
> >>>> /meta-oe/recipes-connectivity/daq/daq_2.0.2.bb ./config.log:cc1:
> >>>> warning: include location "/usr/local/include" is unsafe for
> >>>> cross-compilation [-Wpoison-system-directories]
> >>>>
> >>>> Also this patch add required libdnet dependency.
> >>>>
> >>>> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> ---
> >>>> meta-oe/recipes-connectivity/daq/daq_2.0.2.bb | 5 ++++- 1 file
> >>>> changed, 4 insertions(+), 1 deletion(-)
> >>>>
> >>>> diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
> >>>> b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb index
> >>>> 4e85194..dcf38fc 100644 ---
> >>>> a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb +++
> >>>> b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb @@ -5,7 +5,7 @@
> >>>> LIC_FILES_CHKSUM =
> >>>> "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
> >>>>
> >>>> PARALLEL_MAKE = ""
> >>>>
> >>>> -DEPENDS = "libpcap libpcre" +DEPENDS = "libpcap libpcre libdnet"
> >>>>
> >>>> SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
> >>>> file://disable-run-test-program-while-cross-compiling.patch " @@
> >>>> -15,6 +15,9 @@ SRC_URI =
> >>>> "http://fossies.org/linux/misc/daq-${PV}.tar.gz \ # daq/daq/latest
> >>>> lost dependency on  libdnet libmnl libnetfilter-queue libnfnetlink
> >>>> EXTRA_OECONF += "--disable-nfq-module --disable-ipq-module"
> >>>>
> >>>> +# never look to /usr/local lib while cross compiling +EXTRA_OECONF
> >>>> += "--includedir=/usr/include --with-libpcap-includes=/usr/lib
> >>>> --with-dnet-includes=/usr/lib"
>
> Apart from Martins comments:
>
> s,/usr/include,${includedir}, s,/usr/lib,${libdir],s
>
> >>> Does it look into /usr on host now?
> >>
> >> yes and it compiles after that change.
> >
> > Because you don't have dnet headers in /usr, right? Shouldn't it point to
> > sysroot libdir/includedir paths to prevent any host libraries/headers to
> > sneak in?
> >
> > Or better explicitly disable/enable dnet with PACKAGECONFIG?
> >
> >> Maxim.
> >>>
> >>>> SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0"
> >>>> SRC_URI[sha256sum] =
> >>>> "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8"
> >>>>
> >>>> -- 1.8.5.1.163.gd7aced9
> >>>>
> >>>> -- _______________________________________________
> >>>> Openembedded-devel mailing list
> >>>> Openembedded-devel@lists.openembedded.org
> >>>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >>>
> >>>
> >>
> >> -- _______________________________________________ Openembedded-devel
> >> mailing list Openembedded-devel@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> >
> >
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iD8DBQFThYHsMkyGM64RGpERAtiuAKC9mKMO+TzYJ0Z42mCUa3vI2NP+oQCffCv4
> Wo1+U3SJNrRsNMAUepC9mQs=
> =DMBJ
> -----END PGP SIGNATURE-----
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>

Patch

diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
index 4e85194..dcf38fc 100644
--- a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
+++ b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
@@ -5,7 +5,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
 
 PARALLEL_MAKE = ""
 
-DEPENDS = "libpcap libpcre"
+DEPENDS = "libpcap libpcre libdnet"
 
 SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
             file://disable-run-test-program-while-cross-compiling.patch "
@@ -15,6 +15,9 @@  SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
 # daq/daq/latest lost dependency on  libdnet libmnl libnetfilter-queue libnfnetlink
 EXTRA_OECONF += "--disable-nfq-module --disable-ipq-module"
 
+# never look to /usr/local lib while cross compiling
+EXTRA_OECONF += "--includedir=/usr/include --with-libpcap-includes=/usr/lib --with-dnet-includes=/usr/lib"
+
 SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0"
 SRC_URI[sha256sum] = "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8"