tcf-qoriqdbg_4.0.0.105390.bb: task do_compile:failed
From: Chunrong Guo <[email protected]>
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
--- .../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
recipes-bad/tcf-qoriqdbg/files/add-include-in-socketSupport.patch new file +10 -0
@@ -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> +
recipes-bad/tcf-qoriqdbg/files/add-include-in-tcpTransport.patch new file +11 -0
@@ -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>
recipes-bad/tcf-qoriqdbg/tcf-qoriqdbg_4.0.0.105390.bb +3 -1
@@ -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"
Signature · 1 line
1.7.9.7
Quoted 14 lines · On Tue, Oct 30, 2012 at 10:59 PM, <[email protected]> wrote:
From: Chunrong Guo <[email protected]>
fix error:
./core.internal/socketSupport.cpp: In function 'inttcf::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_runmakefailed
| ERROR: Function failed:do_compile
Quoted 8 lines
Signed-off-by Chunrong Guo <[email protected]>--- .../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
Quoted 60 lines
recipes-bad/tcf-qoriqdbg/files/add-include-in-socketSupport.patch new file +10
-0@@ -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> +recipes-bad/tcf-qoriqdbg/files/add-include-in-tcpTransport.patch new file +11
-0@@ -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>recipes-bad/tcf-qoriqdbg/tcf-qoriqdbg_4.0.0.105390.bb +3
-2@@ -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
[email protected]
https://lists.yoctoproject.org/listinfo/yocto