"undefined symbol: make_fcontext" on Debian
On Debian Buster, the following script produces the following error:
from graph_tool import Graph
from graph_tool.draw import graph_draw
g = Graph()
g.add_vertex()
g.add_vertex()
g.add_vertex()
graph_draw(g, output=open('/dev/null', 'wb'), fmt='png')
python3: symbol lookup error: /usr/local/lib/python3.6/graph_tool/draw/libgraph_tool_draw.so: undefined symbol: make_fcontext
It looks like graph-tool was not linked to libboost_context at compile time (nor is libboost-context1.67.0 listed in the package dependencies):
$ ldd /usr/local/lib/python3.6/graph_tool/draw/libgraph_tool_draw.so | grep boost
libboost_iostreams.so.1.67.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.67.0 (0x00007f6700cdb000)
libboost_python37.so.1.67.0 => /usr/lib/x86_64-linux-gnu/libboost_python37.so.1.67.0 (0x00007f6700c93000)
libboost_regex.so.1.67.0 => /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.67.0 (0x00007f6700b7e000)