Opened 7 years ago

Closed 7 years ago

#11856 closed Bugs (fixed)

pool_resource.cpp error: declaration changes meaning

Reported by: gjasny@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.60.0 Severity: Showstopper
Keywords: Cc:

Description

Hello,

Boost Container does not compile with GCC 4.4.7. I tried both: RedHat Enterprise Linux 6 and Debian Squeeze. The error is the following:

gcc.compile.c++ _build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o
libs/container/src/pool_resource.cpp:35: error: declaration of ‘typedef class boost::container::pmr::block_slist_base<boost::container::pmr::block_slist_header> boost::container::pmr::pool_data_t::block_slist_base’
./boost/container/detail/block_slist.hpp:67: error: changes meaning of ‘block_slist_base’ from ‘class boost::container::pmr::block_slist_base<boost::container::pmr::block_slist_header>’

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -m64  -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_STATIC_LINK=1 -DNDEBUG  -I"." -c -o "_build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o" "libs/container/src/pool_resource.cpp"

...failed gcc.compile.c++ _build/boost/bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o...

Could you please take a look?

Thanks, Gregor

Attachments (1)

boost_11856.patch (1.6 KB ) - added by jupp0r@… 7 years ago.
This fixes #11856 for me using Red Hat Enterprise Linux Server release 6.7 (Santiago)

Download all attachments as: .zip

Change History (4)

comment:1 by gishell@…, 7 years ago

I got same error in SL6.4 (x64, boost 1.60.0, gcc 4.4.7).

libs/container/src/pool_resource.cpp:35: error: declaration of ?.ypedef class boost::container::pmr::block_slist_base<boost::container::pmr::block_slist_header> boost::container::pmr::pool_data_t::block_slist_base? ./boost/container/detail/block_slist.hpp:67: error: changes meaning of ?.lock_slist_base?.from ?.lass boost::container::pmr::block_slist_base<boost::container::pmr::block_slist_header>?

"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -m64 -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_STATIC_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o" "libs/container/src/pool_resource.cpp"

...failed gcc.compile.c++ bin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi/pool_resource.o... ...skipped <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>libboost_container.a(clean) for lack of <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>pool_resource.o... ...skipped <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>libboost_container.a for lack of <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>pool_resource.o... ...skipped <p/home/athena/develop/vendor/boost/1_60_0/lib>libboost_container.a for lack of <pbin.v2/libs/container/build/gcc-4.4.7/release/link-static/threading-multi>libboost_container.a...

please check it out. thanks.

by jupp0r@…, 7 years ago

Attachment: boost_11856.patch added

This fixes #11856 for me using Red Hat Enterprise Linux Server release 6.7 (Santiago)

comment:3 by Ion Gaztañaga, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.