-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when 'make' #934
Comments
os=debian 10 |
before building I do: |
I 'git clone' your source from a brand new cloud debian 10 on AWS |
Thank you! Regards, |
Thank you for reporting the issue. Could you try replacing mqtt_cpp/include/mqtt/broker/uuid.hpp Line 22 in 3614873
with thread_local boost::uuids::random_generator gen; Please let me know what happens. |
thank you for instruction. just let you know what I did , added '#define MQTT_BROKER_UUID_HPP' to resole this issue: // Copyright Takatoshi Kondo 2021 #if !defined(MQTT_BROKER_UUID_HPP) |
now , I have new issues:admin@ip-172-31-80-21: |
admin@ip-172-31-80-21:~/mqtt_cpp/build$ cat /usr/include/boost/version.hpp // (C) Copyright John maddock 1999. Distributed under the Boost // See http://www.boost.org/libs/config for documentation #ifndef BOOST_VERSION_HPP // #define BOOST_VERSION 106700 // #define BOOST_LIB_VERSION "1_67" #endif |
ok, just change '.has_value' to '.value' then make keeps going... |
Ok. let me keep going... then I got this: /home/admin/mqtt_cpp/test/unit/ut_broker_security.cpp:386:14: |
It seems that Boost 1.67.0 doesn't have optional::has_value. So I replace simple bool conversion.
I fixed them. Could you try #935 ? |
Thank you very much! Here is still some incompatible things from boost 1.67: [ 85%] Built target no_tls_server |
Oh, client_cli doesn't include mqtt/config.hpp on the top of file. See https://github.com/redboltz/mqtt_cpp#overview
I fixed it. Please update fix_934 and try again. |
Thank you! It almost there! Scanning dependencies of target broker |
Do you know which file/code can let me study how the mqtt server keep/save the active client request session and send the subscribed topic message to the client as soon as the message is available? Where can I study the latency/interval between the time of the topic message saved into broker and the time the broker start to pass the message data to the active session object for sending action? Thank you! |
The error isn't reproduced on my environment.
clang++ and g++ report no errors.
|
Simple server example is here: High performance (almost) full spec broker example is here |
Please ignore it. I added BOOST_VERSION priting code then got 1.78.0. |
I noticed that |
Updated. |
Finally I updated fix_934. 1.74.0 was released about 1 year and 9 months ago. I believe that it is acceptable time. |
Yes I like your decision.
In terms of future direction, mqtt_cpp is to opt for general various
applications such as hivemq, or opt for a proprietary system.
…On Sat, May 14, 2022 at 10:02 AM Takatoshi Kondo ***@***.***> wrote:
Closed #934 <#934> via 062812e
<062812e>
.
—
Reply to this email directly, view it on GitHub
<#934 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEI6PYZCMFEQDFLZSTSM66TVJ6XBDANCNFSM5VKWSCKA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
[ 0%] Building CXX object test/system/CMakeFiles/st_async_pubsub_1.dir/st_async_pubsub_1.cpp.o
In file included from /home/admin/mqtt_cpp/include/mqtt/broker/broker.hpp:28,
from /home/admin/mqtt_cpp/test/system/combi_test.hpp:14,
from /home/admin/mqtt_cpp/test/system/st_async_pubsub_1.cpp:8:
/home/admin/mqtt_cpp/include/mqtt/broker/uuid.hpp: In function ‘std::cxx11::string mqtt::broker::create_uuid_string()’:
/home/admin/mqtt_cpp/include/mqtt/broker/uuid.hpp:22:60: error: use of deleted function ‘boost::uuids::random_generator_pure::random_generator_pure(boost::uuids::random_generator_pure&&)’
thread_local auto gen = boost::uuids::random_generator();
^
In file included from /usr/include/boost/uuid/uuid_generators.hpp:17,
from /home/admin/mqtt_cpp/include/mqtt/broker/uuid.hpp:13,
from /home/admin/mqtt_cpp/include/mqtt/broker/broker.hpp:28,
from /home/admin/mqtt_cpp/test/system/combi_test.hpp:14,
from /home/admin/mqtt_cpp/test/system/st_async_pubsub_1.cpp:8:
/usr/include/boost/uuid/random_generator.hpp:149:7: note: ‘boost::uuids::random_generator_pure::random_generator_pure(boost::uuids::random_generator_pure&&)’ is implicitly deleted because the default definition would be ill-formed:
class random_generator_pure
^~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/uuid/random_generator.hpp:149:7: error: use of deleted function ‘boost::uuids::detail::random_provider::random_provider(boost::uuids::detail::random_provider&&)’
In file included from /usr/include/boost/uuid/random_generator.hpp:20,
from /usr/include/boost/uuid/uuid_generators.hpp:17,
from /home/admin/mqtt_cpp/include/mqtt/broker/uuid.hpp:13,
from /home/admin/mqtt_cpp/include/mqtt/broker/broker.hpp:28,
from /home/admin/mqtt_cpp/test/system/combi_test.hpp:14,
from /home/admin/mqtt_cpp/test/system/st_async_pubsub_1.cpp:8:
/usr/include/boost/uuid/detail/random_provider.hpp:41:7: note: ‘boost::uuids::detail::random_provider::random_provider(boost::uuids::detail::random_provider&&)’ is implicitly deleted because the default definition would be ill-formed:
class random_provider
^~~~~~~~~~~~~~~
/usr/include/boost/uuid/detail/random_provider.hpp:41:7: error: use of deleted function ‘boost::noncopyable::noncopyable::noncopyable(const boost::noncopyable::noncopyable&)’
In file included from /usr/include/boost/utility.hpp:22,
from /usr/include/boost/range/size.hpp:25,
from /usr/include/boost/range/functions.hpp:20,
from /usr/include/boost/range/iterator_range_core.hpp:38,
from /usr/include/boost/lexical_cast.hpp:30,
from /home/admin/mqtt_cpp/include/mqtt/broker/broker.hpp:14,
from /home/admin/mqtt_cpp/test/system/combi_test.hpp:14,
from /home/admin/mqtt_cpp/test/system/st_async_pubsub_1.cpp:8:
/usr/include/boost/core/noncopyable.hpp:34:7: note: declared here
noncopyable( const noncopyable& ) = delete;
^~~~~~~~~~~
virtual memory exhausted: Cannot allocate memory
make[2]: *** [test/system/CMakeFiles/st_async_pubsub_1.dir/build.make:63: test/system/CMakeFiles/st_async_pubsub_1.dir/st_async_pubsub_1.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:256: test/system/CMakeFiles/st_async_pubsub_1.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
The text was updated successfully, but these errors were encountered: