Hello.
Boost fails to compile in current trunk
To fix it I have:
- changed version to 1.53 because 1.51 fails to crosscompile
- added stdint.h for uClibc
- removed not necessary cstdint patch
Best regards
Index: feeds/packages/libs/boost/patches/200-cstdint_missing_include.patch
===================================================================
--- feeds/packages/libs/boost/patches/200-cstdint_missing_include.patch
(revision 36556)
+++ feeds/packages/libs/boost/patches/200-cstdint_missing_include.patch
(working copy)
@@ -1,12 +0,0 @@
---- a/libs/context/src/fcontext.cpp.new 2012-12-11
17:59:59.349131458 +0100
-+++ b/libs/context/src/fcontext.cpp 2012-12-11 18:00:06.925131652 +0100
-@@ -9,6 +9,9 @@
- #include <boost/context/fcontext.hpp>
-
- #include <cstddef>
-+extern "C" {
-+#include <stdint.h>
-+}
-
- #ifdef BOOST_HAS_ABI_HEADERS
- # include BOOST_ABI_PREFIX
Index: feeds/packages/libs/boost/patches/200-uclibc_intptr_t.patch
===================================================================
--- feeds/packages/libs/boost/patches/200-uclibc_intptr_t.patch (revision 0)
+++ feeds/packages/libs/boost/patches/200-uclibc_intptr_t.patch (revision 0)
@@ -0,0 +1,13 @@
+--- boost_1_53_0_orig/boost/atomic/atomic.hpp 2012-12-25
04:36:31.000000000 +0100
++++ boost_1_53_0/boost/atomic/atomic.hpp 2013-05-07
11:55:42.133251352 +0200
+@@ -17,6 +17,10 @@
+ #include <boost/atomic/detail/type-classification.hpp>
+ #include <boost/type_traits/is_signed.hpp>
+
++#if defined(__UCLIBC__)
++#include <stdint.h>
++#endif
++
+ #ifdef BOOST_ATOMIC_HAS_PRAGMA_ONCE
+ #pragma once
+ #endif
Index: feeds/packages/libs/boost/patches/300-no_glibcxx_define.patch
===================================================================
--- feeds/packages/libs/boost/patches/300-no_glibcxx_define.patch
(revision 0)
+++ feeds/packages/libs/boost/patches/300-no_glibcxx_define.patch
(revision 0)
@@ -0,0 +1,25 @@
+--- boost_1_53_0_orig/boost/detail/container_fwd.hpp 2012-03-31
21:34:56.000000000 +0200
++++ boost_1_53_0/boost/detail/container_fwd.hpp 2013-05-06
23:19:54.223261911 +0200
+@@ -43,18 +43,18 @@
+ # elif defined(_LIBCPP_VERSION)
+ // libc++
+ # define BOOST_DETAIL_NO_CONTAINER_FWD
+-# elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
++# elif defined(__GLIBCXX__)
+ // GNU libstdc++ 3
+ //
+ // Disable forwarding for all recent versions, as the library has a
+ // versioned namespace mode, and I don't know how to detect it.
+-# if __GLIBCXX__ >= 20070513 \
+- || defined(_GLIBCXX_DEBUG) \
++# if \
++ defined(_GLIBCXX_DEBUG) \
+ || defined(_GLIBCXX_PARALLEL) \
+ || defined(_GLIBCXX_PROFILE)
+ # define BOOST_DETAIL_NO_CONTAINER_FWD
+ # else
+-# if defined(__GLIBCXX__) && __GLIBCXX__ >= 20040530
++# if defined(__GLIBCXX__)
+ # define BOOST_CONTAINER_FWD_COMPLEX_STRUCT
+ # endif
+ # endif
Index: feeds/packages/libs/boost/Makefile
===================================================================
--- feeds/packages/libs/boost/Makefile (revision 36570)
+++ feeds/packages/libs/boost/Makefile (working copy)
@@ -10,14 +10,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=boost
-PKG_VERSION:=1_51_0
+PKG_VERSION:=1_53_0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/boost
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)_$(PKG_VERSION)
-PKG_MD5SUM:=6a1f32d902203ac70fbec78af95b3cf8
+PKG_MD5SUM:=57a9e2047c0f511c4dfcf00eb5eb2fbb
PKG_BUILD_DEPENDS:=boost/host
PKG_BUILD_PARALLEL:=1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel