[
https://issues.apache.org/jira/browse/AVRO-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16665905#comment-16665905
]
Thiruvalluvan M. G. commented on AVRO-2249:
-------------------------------------------
[~Fokko] I made a pull request for the fix of this issue. Is it possible for
you to verify that it indeed fixes your problem? If yes, please merge the pull
request and mark this issue resolved.
If you have difficulty in building outside `master`, I'll merge the PR and you
can then verify and mark the issue resolved. Thank you.
> Fix the C++ tests
> -----------------
>
> Key: AVRO-2249
> URL: https://issues.apache.org/jira/browse/AVRO-2249
> Project: Avro
> Issue Type: Task
> Components: c++
> Affects Versions: 1.8.2
> Reporter: Fokko Driesprong
> Assignee: Thiruvalluvan M. G.
> Priority: Major
> Fix For: 1.8.4
>
>
> Currently the C++ tests are failing:
> ```
> Scanning dependencies of target avrocpp_s
> [ 1%] Building CXX object CMakeFiles/avrocpp_s.dir/impl/Compiler.cc.o
> /testptch/unknown/lang/c++/impl/Compiler.cc:174:15: warning: ‘std::string
> avro::nameof(const NodePtr&)’ defined but not used [-Wunused-function]
> static string nameof(const NodePtr& n)
> ^
> [ 2%] Building CXX object CMakeFiles/avrocpp_s.dir/impl/Node.cc.o
> [ 4%] Building CXX object CMakeFiles/avrocpp_s.dir/impl/NodeImpl.cc.o
> /testptch/unknown/lang/c++/impl/NodeImpl.cc: In function ‘std::string
> avro::{anonymous}::escape(const string&)’:
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:31:8: warning: ‘auto’ changes
> meaning in C++11; please remove it [-Wc++0x-compat]
> for (auto c : unescaped) {
> ^
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:31:13: error: ‘c’ does not
> name a type
> for (auto c : unescaped) {
> ^
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:67:3: error: expected ‘;’
> before ‘return’
> return s;
> ^
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:67:3: error: expected
> primary-expression before ‘return’
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:67:3: error: expected ‘;’
> before ‘return’
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:67:3: error: expected
> primary-expression before ‘return’
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:67:3: error: expected ‘)’
> before ‘return’
> In file included from /usr/include/boost/assert.hpp:51:0,
> from /usr/include/boost/format/parsing.hpp:21,
> from /usr/include/boost/format.hpp:50,
> from /testptch/unknown/lang/c++/api/Exception.hh:24,
> from /testptch/unknown/lang/c++/api/Node.hh:28,
> from /testptch/unknown/lang/c++/api/GenericDatum.hh:29,
> from /testptch/unknown/lang/c++/api/NodeImpl.hh:23,
> from /testptch/unknown/lang/c++/impl/NodeImpl.cc:21:
> /testptch/unknown/lang/c++/impl/NodeImpl.cc: In member function ‘virtual
> void avro::NodeRecord::printJson(std::ostream&, int) const’:
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:247:59: warning: comparison
> between signed and unsigned integer expressions [-Wsign-compare]
> assert(defaultValues.empty() || (defaultValues.size() == fields));
> ^
> /testptch/unknown/lang/c++/impl/NodeImpl.cc: In member function ‘virtual
> void avro::NodePrimitive::printDefaultToJson(const avro::GenericDatum&,
> std::ostream&, int) const’:
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:292:13: error: ‘to_string’ is
> not a member of ‘std’
> os << std::to_string(g.value<float>());
> ^
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:295:13: error: ‘to_string’ is
> not a member of ‘std’
> os << std::to_string(g.value<double>());
> ^
> /testptch/unknown/lang/c++/impl/NodeImpl.cc: In function ‘std::string
> avro::{anonymous}::escape(const string&)’:
> /testptch/unknown/lang/c++/impl/NodeImpl.cc:68:1: warning: control reaches
> end of non-void function [-Wreturn-type]
> }
> ^
> CMakeFiles/avrocpp_s.dir/build.make:100: recipe for target
> 'CMakeFiles/avrocpp_s.dir/impl/NodeImpl.cc.o' failed
> make[2]: *** [CMakeFiles/avrocpp_s.dir/impl/NodeImpl.cc.o] Error 1
> make[1]: *** [CMakeFiles/avrocpp_s.dir/all] Error 2
> CMakeFiles/Makefile2:425: recipe for target 'CMakeFiles/avrocpp_s.dir/all'
> failed
> make: *** [all] Error 2
> Makefile:147: recipe for target 'all' failed
> ```
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)