* [PATCH 0/1] mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7
@ 2012-04-12 13:43 Robert Yang
2012-04-12 13:43 ` [PATCH 1/1] " Robert Yang
2012-04-13 22:26 ` [PATCH 0/1] " Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Robert Yang @ 2012-04-12 13:43 UTC (permalink / raw)
To: openembedded-core
Test info:
Has been tested on:
Fedora 17 64bit
Fedora 16 64bit
Ubuntu 10.10 32bit
// Robert
The following changes since commit c37faea947ef3980934c02661ecd79cd9668b8a6:
libunistring: Fix parallel make issue (2012-04-12 12:37:52 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/mklibs
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/mklibs
Robert Yang (1):
mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7
.../mklibs/files/include-unistd.h-for-gcc47.patch | 29 ++++++++++++++++++++
.../mklibs/mklibs-native_0.1.33.bb | 3 +-
2 files changed, 31 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7
2012-04-12 13:43 [PATCH 0/1] mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7 Robert Yang
@ 2012-04-12 13:43 ` Robert Yang
2012-04-13 22:26 ` [PATCH 0/1] " Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Robert Yang @ 2012-04-12 13:43 UTC (permalink / raw)
To: openembedded-core
Many of the standard C++ library include files have been edited to no
longer include <unistd.h> to remove namespace pollution in gcc 4.7, so
we need include <unistd.h> manually sometimes.
More information:
http://gcc.gnu.org/gcc-4.7/porting_to.html
[YOCTO #2278]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
.../mklibs/files/include-unistd.h-for-gcc47.patch | 29 ++++++++++++++++++++
.../mklibs/mklibs-native_0.1.33.bb | 3 +-
2 files changed, 31 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch
diff --git a/meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch b/meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch
new file mode 100644
index 0000000..181b7ff
--- /dev/null
+++ b/meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch
@@ -0,0 +1,29 @@
+include <unistd.h> to fix build on gcc 4.7
+
+Many of the standard C++ library include files have been edited to no
+longer include <unistd.h> to remove namespace pollution in gcc 4.7, so
+we need include <unistd.h> manually sometimes.
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
+
+---
+ src/mklibs-readelf/elf.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/mklibs-readelf/elf.cpp b/src/mklibs-readelf/elf.cpp
+index 444f330..654c46f 100644
+--- a/src/mklibs-readelf/elf.cpp
++++ b/src/mklibs-readelf/elf.cpp
+@@ -25,6 +25,7 @@
+ #include <fcntl.h>
+ #include <sys/mman.h>
+ #include <sys/stat.h>
++#include <unistd.h>
+
+ using namespace Elf;
+
+--
+1.7.10
+
diff --git a/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb b/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb
index d288c77..a8d12ec 100644
--- a/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb
+++ b/meta/recipes-devtools/mklibs/mklibs-native_0.1.33.bb
@@ -5,11 +5,12 @@ LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=98d31037b13d896e33890738ef01af64"
DEPENDS = "python-native"
-PR = "r0"
+PR = "r1"
SRC_URI = "http://ftp.de.debian.org/debian/pool/main/m/mklibs/${BPN}_${PV}.tar.gz \
file://ac_init_fix.patch\
file://fix_STT_GNU_IFUNC.patch\
+ file://include-unistd.h-for-gcc47.patch \
"
SRC_URI[md5sum] = "a462d9b802164993d247c1193116d78b"
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 0/1] mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7
2012-04-12 13:43 [PATCH 0/1] mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7 Robert Yang
2012-04-12 13:43 ` [PATCH 1/1] " Robert Yang
@ 2012-04-13 22:26 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-04-13 22:26 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 04/12/2012 06:43 AM, Robert Yang wrote:
> Test info:
> Has been tested on:
> Fedora 17 64bit
> Fedora 16 64bit
> Ubuntu 10.10 32bit
>
> // Robert
>
> The following changes since commit c37faea947ef3980934c02661ecd79cd9668b8a6:
>
> libunistring: Fix parallel make issue (2012-04-12 12:37:52 +0100)
>
> are available in the git repository at:
> git://git.pokylinux.org/poky-contrib robert/mklibs
> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/mklibs
>
> Robert Yang (1):
> mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7
>
> .../mklibs/files/include-unistd.h-for-gcc47.patch | 29 ++++++++++++++++++++
> .../mklibs/mklibs-native_0.1.33.bb | 3 +-
> 2 files changed, 31 insertions(+), 1 deletions(-)
> create mode 100644 meta/recipes-devtools/mklibs/files/include-unistd.h-for-gcc47.patch
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
Merged with Updated Patch Header as it's a back port
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-13 22:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-12 13:43 [PATCH 0/1] mklibs-native 0.1.33: include unistd.h to fix build for gcc 4.7 Robert Yang
2012-04-12 13:43 ` [PATCH 1/1] " Robert Yang
2012-04-13 22:26 ` [PATCH 0/1] " Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox