Bug 567722

Summary: g++4.4 incompatible with numeric/ublas/matrix_sparse.hpp
Product: Red Hat Enterprise Linux 5 Reporter: Jerry Quinn <jlquinn>
Component: boostAssignee: Petr Machata <pmachata>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: low    
Version: 5.8CC: bhubbard, jbastian, mnewsome, mpolacek, patrickm, pmachata, pmuller
Target Milestone: rc   
Target Release: 5.8   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 03:16:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jerry Quinn 2010-02-23 18:27:13 UTC
Description of problem:

Compiling a file that includes /usr/include/boost/numeric/ublas/matrix_sparse.hpp fails as follows:

In file included from /usr/include/boost/mpl/aux_/numeric_op.hpp:22,
                 from /usr/include/boost/mpl/aux_/arithmetic_op.hpp:26,
                 from /usr/include/boost/mpl/plus.hpp:19,
                 from /usr/include/boost/mpl/vector/aux_/iterator.hpp:19,
                 from /usr/include/boost/mpl/vector/aux_/vector0.hpp:22,
                 from /usr/include/boost/mpl/vector/aux_/clear.hpp:18,
                 from /usr/include/boost/mpl/vector/vector0.hpp:24,
                 from /usr/include/boost/mpl/vector/vector10.hpp:18,
                 from /usr/include/boost/mpl/vector/vector20.hpp:18,
                 from /usr/include/boost/numeric/ublas/detail/returntype_deduction.hpp:13,
                 from /usr/include/boost/numeric/ublas/traits.hpp:26,
                 from /usr/include/boost/numeric/ublas/expression_types.hpp:20,
                 from /usr/include/boost/numeric/ublas/vector_expression.hpp:20,
                 from /usr/include/boost/numeric/ublas/vector_sparse.hpp:21,
                 from /usr/include/boost/numeric/ublas/matrix_sparse.hpp:20,
                 from /u/jlquinn/junk.cc:1:
/usr/include/boost/mpl/apply_wrap.hpp:81:31: error: missing binary operator before token "("
/usr/include/boost/mpl/apply_wrap.hpp:173:31: error: missing binary operator before token "("


The problem has been fixed in more recent versions of boost, but since gcc 4.4 is included, it would be helpful to be able to use the two together.

https://svn.boost.org/trac/boost/ticket/2069

Version-Release number of selected component (if applicable):

boost-devel-1.33.1-10.el5


How reproducible:

cat > junk.cc
#include <boost/numeric/ublas/matrix_sparse.hpp>

g++4.4 -c junk.cc


Steps to Reproduce:
1.
2.
3.
  
Actual results:

The above error message

Expected results:

Clean compile.

Additional info:

Comment 1 Benjamin Kosnik 2011-08-24 19:31:18 UTC
this seems fine for RHEL5 updates

Comment 6 Jeff Bastian 2011-12-07 17:33:20 UTC
*** Bug 761105 has been marked as a duplicate of this bug. ***

Comment 7 errata-xmlrpc 2012-02-21 03:16:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0305.html