[ 
https://issues.apache.org/jira/browse/AVRO-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16630904#comment-16630904
 ] 

ASF GitHub Bot commented on AVRO-2230:
--------------------------------------

kojiromike opened a new pull request #335: AVRO-2230 Assignable line_ in Entity
URL: https://github.com/apache/avro/pull/335
 
 
   Fixes AVRO-2230 by making the line_ assignable. The line_ in JsonDom.hh is 
only used for reporting the line an error occurs on (AVRO-2113), and does not 
need to be const.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> ./build.sh test fails in c++
> ----------------------------
>
>                 Key: AVRO-2230
>                 URL: https://issues.apache.org/jira/browse/AVRO-2230
>             Project: Avro
>          Issue Type: Bug
>            Reporter: Michael A. Smith
>            Priority: Major
>
> In a clean docker build, the c++ build fails with the following error.
> {noformat}
> -- Boost version: 1.55.0
> -- Found the following Boost libraries:
> -- filesystem
> -- system
> -- program_options
> -- iostreams
> Enabled snappy codec
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/michaels/avro/lang/c++/build
> -- Boost version: 1.55.0
> -- Found the following Boost libraries:
> -- filesystem
> -- system
> -- program_options
> -- iostreams
> Enabled snappy codec
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/michaels/avro/lang/c++/build
> [ 1%] Building CXX object CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o
> In file included from /home/michaels/avro/lang/c++/impl/json/JsonDom.cc:19:0:
> /home/michaels/avro/lang/c++/impl/json/JsonDom.hh: In instantiation of ‘void 
> std::__cxx1998::vector<_Tp, 
> _Alloc>::_M_insert_aux(std::__cxx1998::vector<_Tp, _Alloc>::iterator, const 
> _Tp&) [with _Tp = avro::json::Entity; _Alloc = 
> std::allocator<avro::json::Entity>; std::__cxx1998::vector<_Tp, 
> _Alloc>::iterator = __gnu_cxx::__normal_iterator<avro::json::Entity*, 
> std::__cxx1998::vector<avro::json::Entity, std::allocator<avro::json::Entity> 
> > >; typename std::__cxx1998::_Vector_base<_Tp, _Alloc>::pointer = 
> avro::json::Entity*]’:
> /usr/include/c++/4.9/bits/stl_vector.h:925:28: required from ‘void 
> std::__cxx1998::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = 
> avro::json::Entity; _Alloc = std::allocator<avro::json::Entity>; 
> std::__cxx1998::vector<_Tp, _Alloc>::value_type = avro::json::Entity]’
> /usr/include/c++/4.9/debug/vector:407:22: required from ‘void 
> std::__debug::vector<_Tp, _Allocator>::push_back(const _Tp&) [with _Tp = 
> avro::json::Entity; _Allocator = std::allocator<avro::json::Entity>]’
> /home/michaels/avro/lang/c++/impl/json/JsonDom.cc:72:43: required from here
> /home/michaels/avro/lang/c++/impl/json/JsonDom.hh:64:17: error: non-static 
> const member ‘const size_t avro::json::Entity::line_’, can’t use default 
> assignment operator
> class AVRO_DECL Entity {
> ^
> In file included from /usr/include/c++/4.9/vector:69:0,
> from /home/michaels/avro/lang/c++/impl/json/JsonDom.hh:26,
> from /home/michaels/avro/lang/c++/impl/json/JsonDom.cc:19:
> /usr/include/c++/4.9/bits/vector.tcc:343:16: note: synthesized method 
> ‘avro::json::Entity& avro::json::Entity::operator=(const 
> avro::json::Entity&)’ first required here
> *__position = __x_copy;
> ^
> CMakeFiles/avrocpp_s.dir/build.make:514: recipe for target 
> 'CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o' failed
> make[2]: *** [CMakeFiles/avrocpp_s.dir/impl/json/JsonDom.cc.o] Error 1
> CMakeFiles/Makefile2:425: recipe for target 'CMakeFiles/avrocpp_s.dir/all' 
> failed
> make[1]: *** [CMakeFiles/avrocpp_s.dir/all] Error 2
> Makefile:147: recipe for target 'all' failed
> make: *** [all] Error 2
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to