linuxeasy

Clang OSX CppCMS Compilation error.

Aug 6th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 32.05 KB | None | 0 0
  1. Hi Artyom,
  2.  
  3. On Mac OSX 10.9.4, I am facing the following error
  4. while building cppcms-1.0.4, any  recommendations
  5. on fixing this?
  6.  
  7. cc -v says: Apple LLVM version 5.1
  8. (clang-503.0.40) (based on LLVM 3.4svn) Target:
  9. x86_64-apple-darwin13.3.0 Thread model: posix
  10.  
  11. Errors follow:
  12.  
  13. [ 18%] Building CXX object
  14. CMakeFiles/cppcms.dir/src/http_response.cpp.o In
  15. file included from
  16. /Users/Abhishek/Downloads/cppcms-1.0.4/src/http_response.cpp:31:
  17. In file included from
  18. /Users/Abhishek/Downloads/cppcms-
  19. 1.0.4/cppcms_boost/cppcms_boost/iostreams/stream.hpp:21:
  20. In file included from
  21. /Users/Abhishek/Downloads/cppcms-
  22. 1.0.4/cppcms_boost/cppcms_boost/iostreams/stream_buffer.hpp:21:
  23. In file included from
  24. /Users/Abhishek/Downloads/cppcms-
  25. 1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/streambuf/direct_streambuf.hpp:24:
  26. In file included from
  27. /Users/Abhishek/Downloads/cppcms-
  28. 1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/functional.hpp:24:
  29. In file included from
  30. /Users/Abhishek/Downloads/cppcms-
  31. 1.0.4/cppcms_boost/cppcms_boost/iostreams/close.hpp:19:
  32. In file included from
  33. /Users/Abhishek/Downloads/cppcms-
  34. 1.0.4/cppcms_boost/cppcms_boost/iostreams/detail/adapter/non_blocking_adapter.hpp:15:
  35. /Users/Abhishek/Downloads/cppcms-
  36. 1.0.4/cppcms_boost/cppcms_boost/iostreams/write.hpp:82:58:
  37. warning:        unused parameter 'c'
  38. [-Wunused-parameter]     static bool put(T& t,
  39. typename char_type_of<T>::type c)                
  40.                                         ^ 1
  41. warning generated. [ 18%] Building CXX object
  42. CMakeFiles/cppcms.dir/src/http_context.cpp.o [
  43. 19%] Building CXX object
  44. CMakeFiles/cppcms.dir/src/cppcms_error.cpp.o [
  45. 19%] Building CXX object
  46. CMakeFiles/cppcms.dir/src/cppcms_error_category.cpp.o
  47. [ 19%] Building CXX object
  48. CMakeFiles/cppcms.dir/src/thread_pool.cpp.o [ 20%]
  49. Building CXX object
  50. CMakeFiles/cppcms.dir/src/applications_pool.cpp.o
  51. [ 20%] Building CXX object
  52. CMakeFiles/cppcms.dir/src/application.cpp.o [ 20%]
  53. Building CXX object
  54. CMakeFiles/cppcms.dir/src/url_dispatcher.cpp.o [
  55. 21%] Building CXX object
  56. CMakeFiles/cppcms.dir/src/url_mapper.cpp.o [ 21%]
  57. Building CXX object
  58. CMakeFiles/cppcms.dir/src/http_cookie.cpp.o In
  59. file included from
  60. /Users/Abhishek/Downloads/cppcms-1.0.4/src/http_cookie.cpp:9:
  61. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/http_cookie.h:145:11:
  62. warning:        private field 'reserved_' is not
  63. used [-Wunused-private-field]         uint32_t
  64. reserved_      : 29;                  ^ 1 warning
  65. generated. [ 21%] Building CXX object
  66. CMakeFiles/cppcms.dir/src/http_file.cpp.o [ 21%]
  67. Building CXX object
  68. CMakeFiles/cppcms.dir/src/http_content_type.cpp.o
  69. [ 22%] Building CXX object
  70. CMakeFiles/cppcms.dir/src/util.cpp.o
  71. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:43:21:
  72. error: invalid       operands to binary expression
  73. ('std::ostream' (aka 'basic_ostream<char>')      
  74. and 'const char *')                         case
  75. '<': output << "<"; break;                        
  76.           ~~~~~~ ^  ~~~~~~
  77. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  78. ++/v1/memory:5263:1: note:        candidate
  79. template ignored: could not match      
  80. 'shared_ptr<type-parameter-0-2>' against 'char
  81. const[5]' operator<<(basic_ostream<_CharT,
  82. _Traits>& __os, shared_ptr<_Yp> const& __p); ^
  83. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  84. ++/v1/string:4088:1: note:        candidate
  85. template ignored: could not match      
  86. 'basic_string<type-parameter-0-0,
  87. type-parameter-0-1, type-parameter-0-2>'      
  88. against 'char const[5]'
  89. operator<<(basic_ostream<_CharT, _Traits>& __os, ^
  90. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:44:21:
  91. error: invalid       operands to binary expression
  92. ('std::ostream' (aka 'basic_ostream<char>')      
  93. and 'const char *')                         case
  94. '>': output << ">"; break;                        
  95.           ~~~~~~ ^  ~~~~~~
  96. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  97. ++/v1/memory:5263:1: note:        candidate
  98. template ignored: could not match      
  99. 'shared_ptr<type-parameter-0-2>' against 'char
  100. const[5]' operator<<(basic_ostream<_CharT,
  101. _Traits>& __os, shared_ptr<_Yp> const& __p); ^
  102. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  103. ++/v1/string:4088:1: note:        candidate
  104. template ignored: could not match      
  105. 'basic_string<type-parameter-0-0,
  106. type-parameter-0-1, type-parameter-0-2>'      
  107. against 'char const[5]'
  108. operator<<(basic_ostream<_CharT, _Traits>& __os, ^
  109. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:45:21:
  110. error: invalid       operands to binary expression
  111. ('std::ostream' (aka 'basic_ostream<char>')      
  112. and 'const char *')                         case
  113. '&': output << "&"; break;                        
  114.           ~~~~~~ ^  ~~~~~~~
  115. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  116. ++/v1/memory:5263:1: note:        candidate
  117. template ignored: could not match      
  118. 'shared_ptr<type-parameter-0-2>' against 'char
  119. const[6]' operator<<(basic_ostream<_CharT,
  120. _Traits>& __os, shared_ptr<_Yp> const& __p); ^
  121. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  122. ++/v1/string:4088:1: note:        candidate
  123. template ignored: could not match      
  124. 'basic_string<type-parameter-0-0,
  125. type-parameter-0-1, type-parameter-0-2>'      
  126. against 'char const[6]'
  127. operator<<(basic_ostream<_CharT, _Traits>& __os, ^
  128. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:46:21:
  129. error: invalid       operands to binary expression
  130. ('std::ostream' (aka 'basic_ostream<char>')      
  131. and 'const char *')                         case
  132. '\"': output<<"""; break;                        
  133.          ~~~~~~^ ~~~~~~~~
  134. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  135. ++/v1/memory:5263:1: note:        candidate
  136. template ignored: could not match      
  137. 'shared_ptr<type-parameter-0-2>' against 'char
  138. const[7]' operator<<(basic_ostream<_CharT,
  139. _Traits>& __os, shared_ptr<_Yp> const& __p); ^
  140. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  141. ++/v1/string:4088:1: note:        candidate
  142. template ignored: could not match      
  143. 'basic_string<type-parameter-0-0,
  144. type-parameter-0-1, type-parameter-0-2>'      
  145. against 'char const[7]'
  146. operator<<(basic_ostream<_CharT, _Traits>& __os, ^
  147. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:47:20:
  148. error: invalid       operands to binary expression
  149. ('std::ostream' (aka 'basic_ostream<char>')      
  150. and 'int')                         default: output
  151. << c;                                  ~~~~~~ ^  ~
  152. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  153. ++/v1/memory:5263:1: note:        candidate
  154. template ignored: could not match      
  155. 'shared_ptr<type-parameter-0-2>' against 'char'
  156. operator<<(basic_ostream<_CharT, _Traits>& __os,
  157. shared_ptr<_Yp> const& __p); ^
  158. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  159. ++/v1/string:4088:1: note:        candidate
  160. template ignored: could not match      
  161. 'basic_string<type-parameter-0-0,
  162. type-parameter-0-1, type-parameter-0-2>'      
  163. against 'char' operator<<(basic_ostream<_CharT,
  164. _Traits>& __os, ^
  165. In file included from
  166. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:9:
  167. In file included from
  168. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/util.h:12:
  169. In file included from
  170. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  171. ++/v1/string:439: In file included from
  172. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  173. ++/v1/algorithm:627: In file included from
  174. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  175. ++/v1/memory:600:
  176. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  177. ++/v1/iterator:794:28: error:        invalid
  178. operands to binary expression ('ostream_type' (aka
  179.      'basic_ostream<char,
  180. std::__1::char_traits<char> >') and 'int')        
  181.    *__out_stream_ << __value_;            
  182. ~~~~~~~~~~~~~~ ^  ~~~~~~~~
  183. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:61:11:
  184. note: in       instantiation of member function
  185. 'std::__1::ostream_iterator<char, char,      
  186. std::__1::char_traits<char> >::operator='
  187. requested here                         *out++ = c;
  188.                               ^
  189. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:88:2:
  190. note: in instantiation       of function template
  191. specialization      
  192. 'cppcms::util::urlencode_impl<std::__1::ostream_iterator<char,
  193. char,       std::__1::char_traits<char> > >'
  194. requested here         urlencode_impl(b,e,it);    
  195.    ^
  196. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  197. ++/v1/memory:5263:1: note:        candidate
  198. template ignored: could not match      
  199. 'shared_ptr<type-parameter-0-2>' against 'const
  200. char' operator<<(basic_ostream<_CharT, _Traits>&
  201. __os, shared_ptr<_Yp> const& __p); ^
  202. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  203. ++/v1/string:4088:1: note:        candidate
  204. template ignored: could not match      
  205. 'basic_string<type-parameter-0-0,
  206. type-parameter-0-1, type-parameter-0-2>'      
  207. against 'const char'
  208. operator<<(basic_ostream<_CharT, _Traits>& __os, ^
  209. In file included from
  210. /Users/Abhishek/Downloads/cppcms-1.0.4/src/util.cpp:9:
  211. In file included from
  212. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms/util.h:12:
  213. In file included from
  214. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  215. ++/v1/string:439: In file included from
  216. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  217. ++/v1/algorithm:627: In file included from
  218. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  219. ++/v1/memory:600:
  220. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  221. ++/v1/iterator:796:32: error:        invalid
  222. operands to binary expression ('ostream_type' (aka
  223.      'basic_ostream<char,
  224. std::__1::char_traits<char> >') and       'const
  225. char_type *' (aka 'const char *'))                
  226. *__out_stream_ << __delim_;                
  227. ~~~~~~~~~~~~~~ ^  ~~~~~~~~
  228. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  229. ++/v1/memory:5263:1: note:        candidate
  230. template ignored: could not match      
  231. 'shared_ptr<type-parameter-0-2>' against 'const
  232. char *' operator<<(basic_ostream<_CharT, _Traits>&
  233. __os, shared_ptr<_Yp> const& __p); ^
  234. /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c
  235. ++/v1/string:4088:1: note:        candidate
  236. template ignored: could not match      
  237. 'basic_string<type-parameter-0-0,
  238. type-parameter-0-1, type-parameter-0-2>'      
  239. against 'const char *'
  240. operator<<(basic_ostream<_CharT, _Traits>& __os, ^
  241. 7 errors generated. make[2]: ***
  242. [CMakeFiles/cppcms.dir/src/util.cpp.o] Error 1
  243. make[1]: *** [CMakeFiles/cppcms.dir/all] Error 2
  244. make: *** [all] Error 2
  245.  
  246. ===============================+++++++++++++++++++============================
  247. After including <iostream> at the problematic files, the compile proceeds ahead
  248. , but gives this error, which I am not able to solve further, might give up now
  249.  
  250. ==============================+++++++++++++++++++++++++==========================
  251.  
  252. [ 17%] Built target booster
  253. [ 18%] Building CXX object CMakeFiles/cppcms.dir/src/cache_storage.cpp.o
  254. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  255. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  256. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  257. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  258. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  259. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:24:
  260. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/detail/mem_algo_common.hpp:456:34: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  261.         std::pair<void *, bool> ret = memory_algo->priv_allocate
  262.                                 ^
  263. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  264. struct pair;
  265.       ^
  266. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  267. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  268. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  269. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  270. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  271. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:28:
  272. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/sync/interprocess_mutex.hpp:38:
  273. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/posix_time_types_wrk.hpp:25:
  274. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/date_time/posix_time/posix_time_types.hpp:10:
  275. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/date_time/time_clock.hpp:17:
  276. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/shared_ptr.hpp:17:
  277. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/smart_ptr/shared_ptr.hpp:32:
  278. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/smart_ptr/detail/shared_count.hpp:289:16: error: implicit instantiation of undefined template
  279.      'std::less<cppcms_boost::detail::sp_counted_base *>'
  280.        return std::less<sp_counted_base *>()( a.pi_, b.pi_ );
  281.               ^
  282. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/containers/container/container_fwd.hpp:41:8: note: template is declared here
  283. struct less;
  284.       ^
  285. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  286. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  287. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  288. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  289. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  290. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:28:
  291. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/sync/interprocess_mutex.hpp:38:
  292. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/posix_time_types_wrk.hpp:25:
  293. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/date_time/posix_time/posix_time_types.hpp:10:
  294. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/date_time/time_clock.hpp:17:
  295. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/shared_ptr.hpp:17:
  296. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/smart_ptr/shared_ptr.hpp:32:
  297. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/smart_ptr/detail/shared_count.hpp:410:16: error: implicit instantiation of undefined template
  298.      'std::less<cppcms_boost::detail::sp_counted_base *>'
  299.        return std::less<sp_counted_base *>()(a.pi_, b.pi_);
  300.               ^
  301. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/containers/container/container_fwd.hpp:41:8: note: template is declared here
  302. struct less;
  303.       ^
  304. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  305. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  306. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  307. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  308. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  309. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:645:27: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  310.   std::pair<void*, bool> ret = priv_allocation_command
  311.                          ^
  312. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  313. struct pair;
  314.       ^
  315. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  316. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  317. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  318. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  319. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  320. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:654:4: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  321.   raw_allocation_command  (cppcms_boost::interprocess::allocation_type command,   std::size_t limit_objects,
  322.   ^
  323. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  324. struct pair;
  325.       ^
  326. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  327. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  328. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  329. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  330. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  331. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:659:14: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  332.      return std::pair<void *, bool>(static_cast<void*>(0), 0);
  333.             ^
  334. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  335. struct pair;
  336.       ^
  337. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  338. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  339. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  340. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  341. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  342. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:665:14: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  343.      return std::pair<void *, bool> ((success ? reuse_ptr : 0), true);
  344.             ^
  345. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  346. struct pair;
  347.       ^
  348. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  349. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  350. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  351. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  352. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  353. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:674:4: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  354.   priv_allocation_command (cppcms_boost::interprocess::allocation_type command,   std::size_t limit_size,
  355.   ^
  356. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  357. struct pair;
  358.       ^
  359. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  360. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  361. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  362. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  363. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  364. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:678:27: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  365.   std::pair<void*, bool> ret;
  366.                          ^
  367. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  368. struct pair;
  369.       ^
  370. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  371. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  372. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  373. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  374. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  375. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:878:4: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  376.   priv_allocate(cppcms_boost::interprocess::allocation_type command
  377.   ^
  378. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  379. struct pair;
  380.       ^
  381. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  382. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  383. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  384. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  385. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  386. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:891:14: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  387.      return std::pair<void *, bool> ((success ? reuse_ptr : 0), true);
  388.             ^
  389. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  390. struct pair;
  391.       ^
  392. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  393. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  394. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  395. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  396. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  397. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:898:14: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  398.      return return_type(static_cast<void*>(0), false);
  399.             ^
  400. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  401. struct pair;
  402.       ^
  403. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  404. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  405. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  406. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  407. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  408. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:911:17: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  409.         return return_type(ret, true);
  410.                ^
  411. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  412. struct pair;
  413.       ^
  414. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  415. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  416. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  417. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  418. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  419. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:919:17: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  420.         return return_type(this->priv_check_and_allocate
  421.                ^
  422. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  423. struct pair;
  424.       ^
  425. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  426. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  427. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  428. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  429. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  430. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:925:17: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  431.         return return_type(this->priv_check_and_allocate
  432.                ^
  433. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  434. struct pair;
  435.       ^
  436. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  437. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  438. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  439. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  440. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  441. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:933:14: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  442.      return return_type(priv_expand_both_sides
  443.             ^
  444. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  445. struct pair;
  446.       ^
  447. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  448. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  449. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  450. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  451. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:22:
  452. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/mem_algo/rbtree_best_fit.hpp:937:11: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  453.   return return_type(static_cast<void*>(0), false);
  454.          ^
  455. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  456. struct pair;
  457.       ^
  458. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  459. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  460. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  461. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  462. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:30:
  463. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/segment_manager.hpp:202:7: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  464.      raw_allocation_command  (cppcms_boost::interprocess::allocation_type command,   std::size_t limit_objects,
  465.      ^
  466. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  467. struct pair;
  468.       ^
  469. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/src/cache_storage.cpp:24:
  470. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/shmem_allocator.h:12:
  471. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/private/boost_interprocess.h:15:
  472. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/managed_external_buffer.hpp:21:
  473. In file included from /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/detail/managed_memory_impl.hpp:30:
  474. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/segment_manager.hpp:206:31: error: implicit instantiation of undefined template 'std::pair<void *, bool>'
  475.      std::pair<void *, bool> ret = MemoryAlgorithm::raw_allocation_command
  476.                              ^
  477. /Users/Abhishek/Downloads/cppcms-1.0.4/cppcms_boost/cppcms_boost/interprocess/interprocess_fwd.hpp:47:8: note: template is declared here
  478. struct pair;
  479.       ^
  480. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  481. 20 errors generated.
  482. make[2]: *** [CMakeFiles/cppcms.dir/src/cache_storage.cpp.o] Error 1
  483. make[1]: *** [CMakeFiles/cppcms.dir/all] Error 2
  484. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment