-
Notifications
You must be signed in to change notification settings - Fork 66
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
port/linux Make SWUPDATE=1
result --> error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros]
#3
Comments
The last error cannot find file/directory in this |
Make SWUPDATE=1
result --> error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros]
I upgraded my gcc to version 9.2.1 (before 5.4.0) and the first error solved.
|
The "mock" sample uses a Boost library just to validate URIs. The netlib library has been proposed for inclusion in the Boost library but is not yet part of boost. It must be downloaded and installed separately. which is why |
The software update feature is now using a regex pattern to validate the URI. |
Hi.
I tried to build from Linux port for enable SWUPDATE resource.
So in
<iotivity-lite>/port/linux
, I ranmake SWUPDATE=1
, then got this error-DOC_PKI -DOC_DYNAMIC_ALLOCATION -DOC_SOFTWARE_UPDATE -DOC_SECURITY -lm -pthread -lrt -lboost_system -lcppnetlib-uri
In file included from ../../port/oc_connectivity.h:24:0, from ../../include/oc_buffer.h:22, from ../../messaging/coap/coap.h:56, from ../../messaging/coap/separate.h:51, from ../../messaging/coap/oc_coap.h:20, from ../../include/oc_api.h:32, from ../../apps/smart_home_server_with_mock_swupdate.cpp:17: ../../include/oc_endpoint.h:77:62: error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros] #define oc_make_ipv4_endpoint(__name__, __flags__, __port__, ...) ^
../../include/oc_endpoint.h:81:62: error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros]
#define oc_make_ipv6_endpoint(__name__, __flags__, __port__, ...) ^
In file included from ../../port/oc_connectivity.h:27:0, from ../../include/oc_buffer.h:22, from ../../messaging/coap/coap.h:56, from ../../messaging/coap/separate.h:51, from ../../messaging/coap/oc_coap.h:20, from ../../include/oc_api.h:32, from ../../apps/smart_home_server_with_mock_swupdate.cpp:17: ../../port/oc_log.h:37:15: error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros]
#define PRINT(...) printf(__VA_ARGS__) ^
../../port/oc_log.h:147:16: error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros] #define OC_LOG(...) ^
../../port/oc_log.h:148:16: error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros] #define OC_DBG(...) ^
../../port/oc_log.h:149:16: error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros] #define OC_WRN(...) ^
../../port/oc_log.h:150:16: error: anonymous variadic macros were introduced in C++11 [-Werror=variadic-macros] #define OC_ERR(...) ^
../../apps/smart_home_server_with_mock_swupdate.cpp:33:33: fatal error: boost/network/uri.hpp: No such file or directory cc1plus: all warnings being treated as errors compilation terminated. Makefile:350: recipe for target 'smart_home_server_with_mock_swupdate' failed make: *** [smart_home_server_with_mock_swupdate] Error 1
The text was updated successfully, but these errors were encountered: