I'm doing a project for school and we have to install gRPC and protocol 
buffer dependencies for c++. I have been following the build instructions 
here https://github.com/grpc/grpc/blob/master/BUILDING.md I am building on 
Ubuntu 19 and when I run make from the root grpc/ I get the below error. 

src/cpp/common/channel_filter.cc: In member function ‘grpc_linked_mdelem* 
grpc::MetadataBatch::AddMetadata(const string&, const string&)’:
src/cpp/common/channel_filter.cc:33:48: error: ‘void* memset(void*, int, 
size_t)’ clearing an object of non-trivial type ‘grpc_linked_mdelem’ {aka 
‘struct grpc_linked_mdelem’}; use assignment or value-initialization instead 
[-Werror=class-memaccess]
   memset(storage, 0, sizeof(grpc_linked_mdelem));
                                                ^
In file included from ./src/core/lib/transport/transport.h:34,
                 from ./src/core/lib/channel/channel_stack.h:48,
                 from src/cpp/common/channel_filter.cc:21:
./src/core/lib/transport/metadata_batch.h:33:16: note: ‘grpc_linked_mdelem’ 
{aka ‘struct grpc_linked_mdelem’} declared here
 typedef struct grpc_linked_mdelem {
                ^~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make: *** [Makefile:2926: 
/home/n0auth/Project3/grpc/objs/opt/src/cpp/common/channel_filter.o] Error 1

My protoc version
libprotoc 3.0.0 

My gcc version
gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0 

What am I doing wrong? 


-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/e825be31-8f3e-4bd9-8256-a4e0dfa31480%40googlegroups.com.

Reply via email to