Modify

Ticket #11856 (closed Bugs: fixed)

Opened 15 months ago

Last modified 15 months ago

pool_resource.cpp error: declaration changes meaning

Reported by: gjasny@… Owned by: igaztanaga
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

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

Change History

comment:1 Changed 15 months ago by gishell@…

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.

Changed 15 months ago by jupp0r@…

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

comment:2 Changed 15 months ago by gjasny@…

comment:3 Changed 15 months ago by igaztanaga

  • Status changed from new to closed
  • Resolution set to fixed
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.