{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/folly/issues/205","labels_url":"https://api.github.com/repos/facebook/folly/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/facebook/folly/issues/205/comments","events_url":"https://api.github.com/repos/facebook/folly/issues/205/events","html_url":"https://github.com/facebook/folly/issues/205","id":76213958,"number":205,"title":"Build failure with Boost 1.58 on Linux","user":{"login":"fifilyu","id":8955080,"avatar_url":"https://avatars.githubusercontent.com/u/8955080?v=3","gravatar_id":"","url":"https://api.github.com/users/fifilyu","html_url":"https://github.com/fifilyu","followers_url":"https://api.github.com/users/fifilyu/followers","following_url":"https://api.github.com/users/fifilyu/following{/other_user}","gists_url":"https://api.github.com/users/fifilyu/gists{/gist_id}","starred_url":"https://api.github.com/users/fifilyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fifilyu/subscriptions","organizations_url":"https://api.github.com/users/fifilyu/orgs","repos_url":"https://api.github.com/users/fifilyu/repos","events_url":"https://api.github.com/users/fifilyu/events{/privacy}","received_events_url":"https://api.github.com/users/fifilyu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-14T03:25:46Z","updated_at":"2015-05-25T17:24:58Z","closed_at":null,"body":"when I try to use Boost 1.58, I get the following error:\r\n```\r\n$ make check\r\n\r\nMaking check in .\r\nmake[1]: Entering directory '/home/fifilyu/workspace/folly/folly'\r\nmake[1]: Leaving directory '/home/fifilyu/workspace/folly/folly'\r\nMaking check in test\r\nmake[1]: Entering directory '/home/fifilyu/workspace/folly/folly/test'\r\nMaking check in .\r\nmake[2]: Entering directory '/home/fifilyu/workspace/folly/folly/test'\r\nmake  libgtestmain.la libgtest.la benchmark_test concurrent_skiplist_benchmark sorted_vector_types_test foreach_test hash_test timeout_queue_test conv_test range_test bits_test bit_iterator_test spin_lock_test small_locks_test packed_sync_ptr_test small_vector_test discriminated_ptr_test cpuid_test fbstring_test_using_jemalloc thread_cached_int_test thread_local_test fbvector_test dynamic_test json_test scope_guard_test endian_test rw_spinlock_test synchronized_test concurrent_skiplist_test histogram_test group_varint_test map_util_test string_test producer_consumer_queue_test atomic_hash_array_test atomic_hash_map_test format_test fingerprint_test portability_test spooky_hash_v1_test spooky_hash_v2_test\r\nmake[3]: Entering directory '/home/fifilyu/workspace/folly/folly/test'\r\nmake[3]: 'libgtestmain.la' is up to date.\r\nmake[3]: 'libgtest.la' is up to date.\r\n/bin/sh ../libtool  --tag=CXX   --mode=link g++  -std=gnu++0x -g -O2 -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread  -o benchmark_test BenchmarkTest.o libgtestmain.la ../libfollybenchmark.la ../libfolly.la -llzma -lz -lsnappy -llz4 -liberty -ljemalloc -levent -ldouble-conversion -lssl -lgflags -lglog \r\nlibtool: link: g++ -std=gnu++0x -g -O2 -o .libs/benchmark_test BenchmarkTest.o  ./.libs/libgtestmain.a ../.libs/libfollybenchmark.so /home/fifilyu/workspace/folly/folly/.libs/libfolly.so ../.libs/libfolly.so -lboost_thread -lboost_filesystem -lboost_system -lboost_regex -lpthread -llzma -lz -lsnappy -llz4 -liberty -ljemalloc -levent -ldouble-conversion -lssl -lgflags -lglog -Wl,-rpath -Wl,/usr/local/folly/lib\r\n/home/fifilyu/workspace/folly/folly/.libs/libfolly.so: undefined reference to `jump_fcontext'\r\n/home/fifilyu/workspace/folly/folly/.libs/libfolly.so: undefined reference to `make_fcontext'\r\ncollect2: error: ld returned 1 exit status\r\nMakefile:1024: recipe for target 'benchmark_test' failed\r\nmake[3]: *** [benchmark_test] Error 1\r\nmake[3]: Leaving directory '/home/fifilyu/workspace/folly/folly/test'\r\nMakefile:1868: recipe for target 'check-am' failed\r\nmake[2]: *** [check-am] Error 2\r\nmake[2]: Leaving directory '/home/fifilyu/workspace/folly/folly/test'\r\nMakefile:1305: recipe for target 'check-recursive' failed\r\nmake[1]: *** [check-recursive] Error 1\r\nmake[1]: Leaving directory '/home/fifilyu/workspace/folly/folly/test'\r\nMakefile:1448: recipe for target 'check-recursive' failed\r\nmake: *** [check-recursive] Error 1\r\n\r\n```\r\n\r\nthe message's full context is visible @ https://gist.github.com/fifilyu/9ef059a9a17811cc54d6\r\n\r\nfix for this error:\r\n```\r\ndiff --git a/folly/m4/ax_boost_context.m4 b/folly/m4/ax_boost_context.m4\r\nindex f4a8b11..72b8490 100644\r\n--- a/folly/m4/ax_boost_context.m4\r\n+++ b/folly/m4/ax_boost_context.m4\r\n@@ -70,7 +70,7 @@ AC_DEFUN([AX_BOOST_CONTEXT],\r\n \r\n                        AC_COMPILE_IFELSE([AC_LANG_PROGRAM(\r\n                                [[@%:@include <boost/context/all.hpp>]],\r\n-                               [[boost::context::fcontext_t* fc = boost::context::make_fcontext(0, 0, 0);]])],\r\n+                               [[boost::context::fcontext_t fc = boost::context::make_fcontext(0, 0, 0);]])],\r\n                                ax_cv_boost_context=yes, ax_cv_boost_context=no)\r\n                                CXXFLAGS=$CXXFLAGS_SAVE\r\n\r\n                        AC_LANG_POP([C++])\r\n```\r\n\r\nIf you need any more information, please let me know."},"comment":{"url":"https://api.github.com/repos/facebook/folly/issues/comments/105273089","html_url":"https://github.com/facebook/folly/issues/205#issuecomment-105273089","issue_url":"https://api.github.com/repos/facebook/folly/issues/205","id":105273089,"user":{"login":"fifilyu","id":8955080,"avatar_url":"https://avatars.githubusercontent.com/u/8955080?v=3","gravatar_id":"","url":"https://api.github.com/users/fifilyu","html_url":"https://github.com/fifilyu","followers_url":"https://api.github.com/users/fifilyu/followers","following_url":"https://api.github.com/users/fifilyu/following{/other_user}","gists_url":"https://api.github.com/users/fifilyu/gists{/gist_id}","starred_url":"https://api.github.com/users/fifilyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fifilyu/subscriptions","organizations_url":"https://api.github.com/users/fifilyu/orgs","repos_url":"https://api.github.com/users/fifilyu/repos","events_url":"https://api.github.com/users/fifilyu/events{/privacy}","received_events_url":"https://api.github.com/users/fifilyu/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T17:24:58Z","updated_at":"2015-05-25T17:24:58Z","body":"hi, i submit the pull request #210 for fix this error."}}