grzesiek11

cpdiscord error #1

Aug 17th, 2018
777
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.87 KB | None | 0 0
  1. grzesiek11@debianek:~/cpdiscord$ python3.6 setup.py
  2. ***Instructions***
  3. A few questions will be ask and options will be presented. When this
  4. happens, you may press enter to not answer or choose by inputting the number
  5. that comes before the name of option. You can also use spaces to separate
  6. multiple choices.
  7.  
  8. press enter to continue...
  9.  
  10. What OS are you using right now?
  11. (0) Windows
  12. (1) Linux
  13. (2) macOS
  14. press enter to default
  15. >1
  16.  
  17. What libraries do you want to use?
  18. (0) CPR
  19. (1) Websocket++
  20. (2) uWebSockets
  21. press enter to default
  22. >0 1
  23. buildconf: autoconf version 2.69 (ok)
  24. buildconf: autom4te version 2.69 (ok)
  25. buildconf: autoheader version 2.69 (ok)
  26. buildconf: automake version 1.15 (ok)
  27. buildconf: aclocal version 1.15 (ok)
  28. buildconf: libtoolize version 2.4.6 (ok)
  29. buildconf: GNU m4 version 1.4.18 (ok)
  30. buildconf: running libtoolize
  31. libtoolize: putting auxiliary files in '.'.
  32. libtoolize: copying file './ltmain.sh'
  33. libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
  34. libtoolize: copying file 'm4/libtool.m4'
  35. libtoolize: copying file 'm4/ltoptions.m4'
  36. libtoolize: copying file 'm4/ltsugar.m4'
  37. libtoolize: copying file 'm4/ltversion.m4'
  38. libtoolize: copying file 'm4/lt~obsolete.m4'
  39. libtoolize: Remember to add 'LT_INIT' to configure.ac.
  40. buildconf: converting all mv to mv -f in local m4/libtool.m4
  41. buildconf: running aclocal
  42. buildconf: converting all mv to mv -f in local aclocal.m4
  43. buildconf: running autoheader
  44. buildconf: running autoconf
  45. buildconf: running automake
  46. configure.ac:125: installing './compile'
  47. configure.ac:187: installing './config.guess'
  48. configure.ac:187: installing './config.sub'
  49. configure.ac:125: installing './install-sh'
  50. configure.ac:133: installing './missing'
  51. docs/examples/Makefile.am: installing './depcomp'
  52. parallel-tests: installing './test-driver'
  53. buildconf: OK
  54. grzesiek11@debianek:~/cpdiscord$ cd buildtools
  55. grzesiek11@debianek:~/cpdiscord/buildtools$ make -f Makefile.linux
  56. g++  -Wall -c -std=c++11  ../sleepy_discord/*.cpp  -I ../include/sleepy_discord  -I ../deps/include  -I ../include/sleepy_discord/IncludeNonexistent
  57. In file included from ../sleepy_discord/websocketpp_websocket.cpp:1:0:
  58. ../include/sleepy_discord/websocketpp_websocket.h: In constructor ‘SleepyDiscord::WebsocketppDiscordClient::WebsocketppDiscordClient(std::__cxx11::string, char)’:
  59. ../include/sleepy_discord/websocketpp_websocket.h:42:14: warning: ‘SleepyDiscord::WebsocketppDiscordClient::maxNumOfThreads’ will be initialized after [-Wreorder]
  60.    const char maxNumOfThreads;
  61.               ^~~~~~~~~~~~~~~
  62. ../include/sleepy_discord/websocketpp_websocket.h:39:58: warning:   ‘std::shared_ptr<std::thread> SleepyDiscord::WebsocketppDiscordClient::_thread’ [-Wreorder]
  63.    websocketpp::lib::shared_ptr<websocketpp::lib::thread> _thread;
  64.                                                           ^~~~~~~
  65. ../sleepy_discord/websocketpp_websocket.cpp:6:2: warning:   when initialized here [-Wreorder]
  66.   WebsocketppDiscordClient::WebsocketppDiscordClient(const std::string token, const char numOfThreads) :
  67.   ^~~~~~~~~~~~~~~~~~~~~~~~
  68. ar rv libsleepy_discord.a *.o
  69. ar: creating libsleepy_discord.a
  70. a - asignments_client.o
  71. a - attachment.o
  72. a - channel.o
  73. a - client.o
  74. a - cpr_session.o
  75. a - default_functions.o
  76. a - discord_object_interface.o
  77. a - embed.o
  78. a - endpoints.o
  79. a - experimental.o
  80. a - gateway.o
  81. a - http.o
  82. a - invite.o
  83. a - json_wrapper.o
  84. a - message.o
  85. a - permissions.o
  86. a - sd_error.ols
  87. buildtools      deps      include     README.md  sleepy_discord
  88. CMakeLists.txt  examples  LICENSE.md  setup.py   sleepy_discord.sln
  89. a - server.o
  90. a - user.o
  91. a - uwebsockets_websocket.o
  92. a - voice.o
  93. a - webhook.o
  94. a - websocketpp_websocket.o
  95. grzesiek11@debianek:~/cpdiscord/buildtools$ make install
  96. make: *** Brak reguł do wykonania obiektu 'install'. Stop.
  97. grzesiek11@debianek:~/cpdiscord/buildtools$ cd ..
  98. grzesiek11@debianek:~/cpdiscord$ cd ./examples/hello/
  99. grzesiek11@debianek:~/cpdiscord/examples/hello$ g++ -std=c++11 -I ../../include -I ../../deps -I ../../deps/include -I ../../include/sleepy_discord/IncludeNonexistent example0.cpp -L../../buildtools -L/usr/lib -lsleepy_discord -lcurl -lssl -lcrypto -lpthread -o example.out
  100. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::setUrl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
  101. client.cpp:(.text._ZN13SleepyDiscord10CPRSession6setUrlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN13SleepyDiscord10CPRSession6setUrlERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x37): undefined reference to `cpr::Session::SetUrl(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
  102. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::setBody(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*)':
  103. client.cpp:(.text._ZN13SleepyDiscord10CPRSession7setBodyEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE[_ZN13SleepyDiscord10CPRSession7setBodyEPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE]+0x37): undefined reference to `cpr::Session::SetBody(cpr::Body&&)'
  104. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::Post()':
  105. client.cpp:(.text._ZN13SleepyDiscord10CPRSession4PostEv[_ZN13SleepyDiscord10CPRSession4PostEv]+0x33): undefined reference to `cpr::Session::Post()'
  106. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::Patch()':
  107. client.cpp:(.text._ZN13SleepyDiscord10CPRSession5PatchEv[_ZN13SleepyDiscord10CPRSession5PatchEv]+0x33): undefined reference to `cpr::Session::Patch()'
  108. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::Delete()':
  109. client.cpp:(.text._ZN13SleepyDiscord10CPRSession6DeleteEv[_ZN13SleepyDiscord10CPRSession6DeleteEv]+0x33): undefined reference to `cpr::Session::Delete()'
  110. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::Get()':
  111. client.cpp:(.text._ZN13SleepyDiscord10CPRSession3ls
  112. buildtools      deps      include     README.md  sleepy_discord
  113. CMakeLists.txt  examples  LICENSE.md  setup.py   sleepy_discord.slnGetEv[_ZN13SleepyDiscord10CPRSession3GetEv]+0x33): undefined reference to `cpr::Session::Get()'
  114. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::Put()':
  115. client.cpp:(.text._ZN13SleepyDiscord10CPRSession3PutEv[_ZN13SleepyDiscord10CPRSession3PutEv]+0x33): undefined reference to `cpr::Session::Put()'
  116. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::CPRSession()':
  117. client.cpp:(.text._ZN13SleepyDiscord10CPRSessionC2Ev[_ZN13SleepyDiscord10CPRSessionC5Ev]+0x35): undefined reference to `cpr::Session::Session()'
  118. client.cpp:(.text._ZN13SleepyDiscord10CPRSessionC2Ev[_ZN13SleepyDiscord10CPRSessionC5Ev]+0x5c): undefined reference to `cpr::Multipart::Multipart(std::initializer_list<cpr::Part> const&)'
  119. client.cpp:(.text._ZN13SleepyDiscord10CPRSessionC2Ev[_ZN13SleepyDiscord10CPRSessionC5Ev]+0xaa): undefined reference to `cpr::Session::~Session()'
  120. ../../buildtools/libsleepy_discord.a(client.o): In function `SleepyDiscord::CPRSession::~CPRSession()':
  121. client.cpp:(.text._ZN13SleepyDiscord10CPRSessionD2Ev[_ZN13SleepyDiscord10CPRSessionD5Ev]+0x36): undefined reference to `cpr::Session::~Session()'
  122. ../../buildtools/libsleepy_discord.a(cpr_session.o): In function `SleepyDiscord::CPRSession::setHeader(std::vector<SleepyDiscord::HeaderPair, std::allocator<SleepyDiscord::HeaderPair> > const&)':
  123. cpr_session.cpp:(.text+0x11e): undefined reference to `cpr::Session::SetHeader(std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, cpr::CaseInsensitiveCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > const&)'
  124. ../../buildtools/libsleepy_discord.a(cpr_session.o): In function `SleepyDiscord::CPRSession::setMultipart(std::initializer_list<SleepyDiscord::Part> const&)':
  125. cpr_session.cpp:(.text+0x35d): undefined reference to `cpr::Session::SetMultipart(cpr::Multipart const&)'
  126. ../../buildtools/libsleepy_discord.a(cpr_session.o): In function `std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, cpr::CaseInsensitiveCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::_M_get_insert_unique_pos(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
  127. cpr_session.cpp:(.text._ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_EN3cpr22CaseInsensitiveCompareESaIS8_EE24_M_get_insert_unique_posERS7_[_ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_EN3cpr22CaseInsensitiveCompareESaIS8_EE24_M_get_insert_unique_posERS7_]+0x63): undefined reference to `cpr::CaseInsensitiveCompare::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
  128. cpr_session.cpp:(.text._ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_EN3cpr22CaseInsensitiveCompareESaIS8_EE24_M_get_insert_unique_posERS7_[_ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_EN3cpr22CaseInsensitiveCompareESaIS8_EE24_M_get_insert_unique_posERS7_]+0x11b): undefined reference to `cpr::CaseInsensitiveCompare::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
  129. ../../buildtools/libsleepy_discord.a(cpr_session.o): In function `std::_Rb_tree_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, cpr::CaseInsensitiveCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::_M_insert_<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&, std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, cpr::CaseInsensitiveCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::_Alloc_node>(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > const&, std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, cpr::CaseInsensitiveCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::_Alloc_node&)':
  130. cpr_session.cpp:(.text._ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_EN3cpr22CaseInsensitiveCompareESaIS8_EE10_M_insert_IRKS8_NSE_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS8_EPSt18_Rb_tree_node_baseSM_OT_RT0_[_ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_EN3cpr22CaseInsensitiveCompareESaIS8_EE10_M_insert_IRKS8_NSE_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS8_EPSt18_Rb_tree_node_baseSM_OT_RT0_]+0x75): undefined reference to `cpr::CaseInsensitiveCompare::operator()(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
  131. ../../buildtools/libsleepy_discord.a(json_wrapper.o): In function `SleepyDiscord::json::getValues[abi:cxx11](char const*, std::initializer_list<char const* const> const&)':
  132. json_wrapper.cpp:(.text+0x141): undefined reference to `JSON_find'
  133. ../../buildtools/libsleepy_discord.a(json_wrapper.o): In function `SleepyDiscord::json::getValue[abi:cxx11](char const*, char const*)':
  134. json_wrapper.cpp:(.text+0x315): undefined reference to `JSON_find'
  135. ../../buildtools/libsleepy_discord.a(json_wrapper.o): In function `SleepyDiscord::json::getArray(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const*)':
  136. json_wrapper.cpp:(.text+0x44d): undefined reference to `JSON_skipString'
  137. json_wrapper.cpp:(.text+0x465): undefined reference to `JSON_skipObject'
  138. json_wrapper.cpp:(.text+0x47d): undefined reference to `JSON_skipObject'
  139. json_wrapper.cpp:(.text+0x5ac): undefined reference to `JSON_measureString'
  140. json_wrapper.cpp:(.text+0x66c): undefined reference to `JSON_measureObject'
  141. collect2: error: ld returned 1 exit status
  142. grzesiek11@debianek:~/cpdiscord/examples/hello$
Advertisement
Add Comment
Please, Sign In to add comment