Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#5278 closed Bugs (fixed)

FTBFS "make_obj_guard_of_c was not declared in this scope" in read_graphviz_new.cpp and graphml.cpp

Reported by: Peter Schüller <schueller.p@…> Owned by: Thorsten Ottosen
Milestone: To Be Determined Component: multi_index
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

For some days, including with the latest boost trunk (69677) I get the following FTBFS

The problem could be in multi_index or scope_guard, however.

gcc.compile.c++ bin.v2/libs/graph/build/gcc-4.4.5/release/threading-multi/read_graphviz_new.o

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_GRAPH_DYN_LINK=1 -DBOOST_HAS_ICU=1 -DNDEBUG  -I"." -I"/usr/include" -I"libs/graph/src" -c -o "bin.v2/libs/graph/build/gcc-4.4.5/release/threading-multi/read_graphviz_new.o" "libs/graph/src/read_graphviz_new.cpp"

In file included from ./boost/multi_index_container.hpp:40,
                 from ./boost/graph/named_graph.hpp:16,
                 from ./boost/graph/adjacency_list.hpp:45,
                 from ./boost/graph/graphviz.hpp:24,
                 from libs/graph/src/read_graphviz_new.cpp:50:
./boost/multi_index/detail/scope_guard.hpp: In function ‘typename boost::multi_index::detail::null_guard_return<C::value, boost::multi_index::detail::obj_scope_guard_impl1<Obj, MemFun, P1> >::type boost::multi_index::detail::make_obj_guard_if(Obj&, MemFun, P1)’:
./boost/multi_index/detail/scope_guard.hpp:366: error: ‘make_obj_guard_of_c’ was not declared in this scope
gcc.compile.c++ bin.v2/libs/graph/build/gcc-4.4.5/release/threading-multi/graphml.o

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_GRAPH_DYN_LINK=1 -DBOOST_HAS_ICU=1 -DNDEBUG  -I"." -I"/usr/include" -I"libs/graph/src" -c -o "bin.v2/libs/graph/build/gcc-4.4.5/release/threading-multi/graphml.o" "libs/graph/src/graphml.cpp"

In file included from ./boost/multi_index_container.hpp:40,
                 from ./boost/graph/named_graph.hpp:16,
                 from ./boost/graph/adjacency_list.hpp:45,
                 from ./boost/graph/graphviz.hpp:24,
                 from ./boost/graph/graphml.hpp:20,
                 from libs/graph/src/graphml.cpp:17:
./boost/multi_index/detail/scope_guard.hpp: In function ‘typename boost::multi_index::detail::null_guard_return<C::value, boost::multi_index::detail::obj_scope_guard_impl1<Obj, MemFun, P1> >::type boost::multi_index::detail::make_obj_guard_if(Obj&, MemFun, P1)’:
./boost/multi_index/detail/scope_guard.hpp:366: error: ‘make_obj_guard_of_c’ was not declared in this scope
...skipped <pbin.v2/libs/graph/build/gcc-4.4.5/release/threading-multi>libboost_graph-mt.so.1.46.1 for lack of <pbin.v2/libs/graph/build/gcc-4.4.5/release/threading-multi>read_graphviz_new.o...
...skipped <p/var/lib/buildbot/instdirs/boost-trunk/lib>libboost_graph-mt.so.1.46.1 for lack of <pbin.v2/libs/graph/build/gcc-4.4.5/release/threading-multi>libboost_graph-mt.so.1.46.1...
...skipped <p/var/lib/buildbot/instdirs/boost-trunk/lib>libboost_graph-mt.so for lack of <p/var/lib/buildbot/instdirs/boost-trunk/lib>libboost_graph-mt.so.1.46.1...

Change History (4)

comment:1 by Jeremiah Willcock, 12 years ago

Component: graphmulti_index
Owner: changed from Andrew Sutton to Joaquín M López Muñoz

comment:2 by Joaquín M López Muñoz, 12 years ago

Owner: changed from Joaquín M López Muñoz to Thorsten Ottosen

Reassigned to Thorsten, who did the problematic change to scope_guard.hpp.

comment:3 by Thorsten Ottosen, 12 years ago

Resolution: fixed
Status: newclosed

There was a typo that gcc was kind enough to diagnose.

comment:4 by Peter Schüller <schueller.p@…>, 12 years ago

Confirmed. It builds again. Thank you!

Note: See TracTickets for help on using tickets.