Plz help me with this..
On Wednesday, May 24, 2017 at 12:44:25 PM UTC+5:30, Bugsfunny wrote:
>
> I installed grpc using the below commands : 
>
> git clone -b $(curl -L http://grpc.io/release) 
> https://github.com/grpc/grpc
> cd grpc
> git checkout -b 1.2.0
> git submodule foreach git clean -xfd
> git submodule update --init
> cd third_party/protobuf
> ./autogen.sh
> ./configure
> make -j2
> sudo make install
> cd ../cares/cares/
> ./buildconf
> ./configure
> make -j2
> make ahost adig acountry
> make install
> cd ../..
> git clean -xfd
> make -j2          (I get the below error while executing this command)
> sudo make install      (did not execute this command)
>
>
>
> ERRORS :
>
>
>
> [LD]      Linking /Users/anambia/Downloads/Softwares/grpc/libs/opt/libgrpc
> .dylib
> [LD]      Linking /Users/anambia/Downloads/Softwares/grpc/libs/opt/
> libgrpc_cronet.dylib
> [AR]      Creating /Users/anambia/Downloads/Softwares/grpc/libs/opt/
> libgrpc.a
> [AR]      Creating /Users/anambia/Downloads/Softwares/grpc/libs/opt/
> libgrpc_cronet.a
> [HOSTLD]  Linking /Users/anambia/Downloads/Softwares/grpc/bins/opt/
> grpc_cpp_plugin
> Undefined symbols for architecture x86_64:
>   
> "google::protobuf::io::StringOutputStream::StringOutputStream(std::__1::basic_string<char,
>  
> std::__1::char_traits<char>, std::__1::allocator<char> >*)", referenced 
> from:
>       ProtoBufFile::CreatePrinter(std::__1::basic_string<char, std::__1::
> char_traits<char>, std::__1::allocator<char> >*) const in cpp_plugin.o
>   
> "google::protobuf::io::Printer::Print(std::__1::map<std::__1::basic_string<char,
>  
> std::__1::char_traits<char>, std::__1::allocator<char> >, 
> std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, 
> std::__1::char_traits<char>, std::__1::allocator<char> > >, 
> std::__1::allocator<std::__1::pair<std::__1::basic_string<char, 
> std::__1::char_traits<char>, std::__1::allocator<char> > const, 
> std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> > > > > const&, char const*)", referenced from:
>       ProtoBufPrinter::Print(std::__1::map<std::__1::basic_string<char, 
> std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::
> basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> 
> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>
> , std::__1::allocator<char> > >, std::__1::allocator<std::__1::pair<std::
> __1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator
> <char> > const, std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> > > > > const&, char const*) in cpp_plugin.o
>   "google::protobuf::FileDescriptor::GetSourceLocation(std::__1::vector<int, 
> std::__1::allocator<int> > const&, google::protobuf::SourceLocation*) const"
> , referenced from:
>       void grpc_generator::GetComment<google::protobuf::FileDescriptor>(
> google::protobuf::FileDescriptor const*, grpc_generator::CommentType, std
> ::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<
> char, std::__1::char_traits<char>, std::__1::allocator<char> > > >*) in 
> cpp_plugin.o
>   
> "google::protobuf::compiler::CodeGenerator::GenerateAll(std::__1::vector<google::protobuf::FileDescriptor
>  
> const*, std::__1::allocator<google::protobuf::FileDescriptor const*> > 
> const&, std::__1::basic_string<char, std::__1::char_traits<char>, 
> std::__1::allocator<char> > const&, 
> google::protobuf::compiler::GeneratorContext*, std::__1::basic_string<char, 
> std::__1::char_traits<char>, std::__1::allocator<char> >*) const", 
> referenced from:
>       vtable for CppGrpcGenerator in cpp_plugin.o
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
> make: *** [/Users/anambia/Downloads/Softwares/grpc/bins/opt/
> grpc_cpp_plugin] Error 1
> make: *** Waiting for unfinished jobs....
>
>
>
> The gcc and g++ versions are  :
>
> gcc --version 
>
> gcc (GCC) 6.3.0
> Copyright (C) 2016 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
> .
>
>
> Please help me with this.
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/fa8d0c31-da74-4ee4-9f92-7a991ef12853%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to