[yocto] [meta-fsl-ppc-private master] tcf-qoriqdbg_4.0.0.105390.bb: task do_compile:failed

McClintock Matthew-B29882 B29882 at freescale.com
Thu Nov 1 19:42:08 PDT 2012


On Tue, Oct 30, 2012 at 10:59 PM,  <b40290 at freescale.com> wrote:
> From: Chunrong Guo <b40290 at freescale.com>
>
>       fix error:
>       ./core.internal/socketSupport.cpp: In function 'int tcf::closesocket_(int)':
>       | ./core.internal/socketSupport.cpp:69:12: error: '::close' has not been declared
>       | make: *** [objs/tcf.qoriqdbg.agent.target/./core.internal/socketSupport.o] Error 1
>       | make: *** Waiting for unfinished jobs....
>       | ./core.internal/tcpTransport.cpp: In member function 'tcf::tcf_error
>         tcf::TCPTransport::createLocalPeer(const char*, tcf::IPeer**)':
>       | ./core.internal/tcpTransport.cpp:590:66: error: 'gethostname' was not declared in this scope
>       | make: *** [objs/tcf.qoriqdbg.agent.target/./core.internal/tcpTransport.o] Error 1
>       | ERROR: oe_runmake failed
>       | ERROR: Function failed: do_compile
>
> Signed-off-by: Chunrong Guo <b40290 at freescale.com>
> ---
>  .../files/add-include-in-socketSupport.patch       |   10 ++++++++++
>  .../files/add-include-in-tcpTransport.patch        |   11 +++++++++++
>  .../tcf-qoriqdbg/tcf-qoriqdbg_4.0.0.105390.bb      |    4 +++-
>  3 files changed, 24 insertions(+), 1 deletion(-)
>  create mode 100644 recipes-bad/tcf-qoriqdbg/files/add-include-in-socketSupport.patch
>  create mode 100644 recipes-bad/tcf-qoriqdbg/files/add-include-in-tcpTransport.patch

This is a patch to a private layer and should not go upstream.

-M

>
> diff --git a/recipes-bad/tcf-qoriqdbg/files/add-include-in-socketSupport.patch b/recipes-bad/tcf-qoriqdbg/files/add-include-in-socketSupport.patch
> new file mode 100644
> index 0000000..f969d47
> --- /dev/null
> +++ b/recipes-bad/tcf-qoriqdbg/files/add-include-in-socketSupport.patch
> @@ -0,0 +1,10 @@
> +--- tcf-qoriqdbg-4.0.0.105390-r2/tcf-qoriqdbg-4.0.0.105390/core.internal/socketSupport.cpp     2011-10-07 18:15:25.000000000 -0500
> ++++ tcf-qoriqdbg-4.0.0.105390/core.internal/socketSupport.cpp  2012-10-30 05:27:20.627395526 -0500
> +@@ -46,6 +46,7 @@
> + // Linux interfaces for getifaddrs/freeifaddrs
> + #include <sys/types.h>
> +
> ++#include <unistd.h>
> + // To disable the nagle algorithm
> + #include <netinet/tcp.h>
> +
> diff --git a/recipes-bad/tcf-qoriqdbg/files/add-include-in-tcpTransport.patch b/recipes-bad/tcf-qoriqdbg/files/add-include-in-tcpTransport.patch
> new file mode 100644
> index 0000000..945b786
> --- /dev/null
> +++ b/recipes-bad/tcf-qoriqdbg/files/add-include-in-tcpTransport.patch
> @@ -0,0 +1,11 @@
> +--- tcf-qoriqdbg-4.0.0.105390-r2/tcf-qoriqdbg-4.0.0.105390/core.internal/tcpTransport.cpp      2012-04-05 22:16:07.000000000 -0500
> ++++ tcf-qoriqdbg-4.0.0.105390/core.internal/tcpTransport.cpp   2012-10-30 20:42:11.648654005 -0500
> +@@ -35,7 +35,7 @@
> + #include "channelImpl.h"
> + #include "socketSupport.h"
> + #include "socketTrace.h"
> +-
> ++#include <unistd.h>
> + #include <sstream>
> + #include <iomanip>
> + #include <cerrno>
> diff --git a/recipes-bad/tcf-qoriqdbg/tcf-qoriqdbg_4.0.0.105390.bb b/recipes-bad/tcf-qoriqdbg/tcf-qoriqdbg_4.0.0.105390.bb
> index 77523a1..0450306 100644
> --- a/recipes-bad/tcf-qoriqdbg/tcf-qoriqdbg_4.0.0.105390.bb
> +++ b/recipes-bad/tcf-qoriqdbg/tcf-qoriqdbg_4.0.0.105390.bb
> @@ -1,10 +1,12 @@
>  DESCRIPTION = "SPID based TCF agent"
>  SECTION = "tcf-qoriqdbg"
>  LICENSE = "Freescale EULA"
> -PR = "r2"
> +PR = "r3"
>  LIC_FILES_CHKSUM = "file://Makefile;beginline=6;endline=17;md5=75c98af1c2fa46281fbdac337244d196"
>
>  SRC_URI = "file://${PN}-${PV}.tar.bz2 \
> +           file://add-include-in-tcpTransport.patch \
> +           file://add-include-in-socketSupport.patch  \
>  "
>  SRC_URI[md5sum] = "f11b99b489030d9f35573e91c4404e03"
>  SRC_URI[sha256sum] = "3250e2951c3b57bfc3dc9e1174e38555e75682ad90831720a7c882093c119f2b"
> --
> 1.7.9.7
>
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list