[mdds] fix linking error with boost 1.50

David Tardon dtardon at fedoraproject.org
Sat Jul 28 12:36:34 UTC 2012


commit f248e36fc7287a1a4add0d486e9fe04427070701
Author: David Tardon <dtardon at redhat.com>
Date:   Sat Jul 28 14:35:53 2012 +0200

    fix linking error with boost 1.50

 0001-fix-linking-error-with-boost-1.50.patch |   27 ++++++++++++++++++++++++++
 mdds.spec                                    |    2 +
 2 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/0001-fix-linking-error-with-boost-1.50.patch b/0001-fix-linking-error-with-boost-1.50.patch
new file mode 100644
index 0000000..68c4cfb
--- /dev/null
+++ b/0001-fix-linking-error-with-boost-1.50.patch
@@ -0,0 +1,27 @@
+From 09937e5d6b4b82efbff40da2aa50fb02f2250bb2 Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon at redhat.com>
+Date: Sat, 28 Jul 2012 14:32:47 +0200
+Subject: [PATCH] fix linking error with boost 1.50
+
+---
+ include/mdds/mixed_type_matrix_storage.hpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/include/mdds/mixed_type_matrix_storage.hpp b/include/mdds/mixed_type_matrix_storage.hpp
+index fa0bf25..bb4e354 100644
+--- a/include/mdds/mixed_type_matrix_storage.hpp
++++ b/include/mdds/mixed_type_matrix_storage.hpp
+@@ -32,6 +32,10 @@
+ 
+ #include <boost/ptr_container/ptr_vector.hpp>
+ #include <boost/ptr_container/ptr_map.hpp>
++// Boost.Pool indirectly pulls in Boost.System, causing linking error
++// with Boost 1.50, because some (deprecated) symbols from System are
++// not found.
++#define BOOST_SYSTEM_NO_DEPRECATED
+ #include <boost/pool/object_pool.hpp>
+ 
+ namespace mdds {
+-- 
+1.7.11.2
+
diff --git a/mdds.spec b/mdds.spec
index 4fe09a4..2794545 100644
--- a/mdds.spec
+++ b/mdds.spec
@@ -9,6 +9,7 @@ URL: http://code.google.com/p/multidimalgorithm/
 Source0: http://multidimalgorithm.googlecode.com/files/%{name}_%{version}.tar.bz2
 Patch0: 0001-Fixes-build-breakage-on-Debian.patch
 Patch1: 0001-help-compiler-select-the-right-overload-of-vector-in.patch
+Patch2: 0001-fix-linking-error-with-boost-1.50.patch
 
 BuildRequires: boost-devel
 
@@ -40,6 +41,7 @@ Headers for %{name}.
 %setup -q -n %{name}_%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 # this is only used in tests
 sed -i -e '/^CPPFLAGS/s/-Wall.*-std/%{optflags} -std/' Makefile.in
 


More information about the scm-commits mailing list