Should I be worried about version mismatch between the protofub pulled in via grpc/third_party/... v/s the one that I have installed globally?-Abhishek
--
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAD2hskyLoezC2Gq%2Bco%3D9Nc2UgGeuC9kGNeA5-aZVNA_bTEyUgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Yes and no. Two scenarios:1) The version you have globally is 2.x:grpc might compile fine locally. Might. I've seen mixed results from people, so I guess it depends on your exact environment. The Makefile will try compiling the one in third_party and use it locally. If everything goes fine, the compiled grpc++ library as well as the protoc plugins will have its protobuf code linked statically into it. However, you wouldn't really be able to do much with the resulting library - if your intention is to use grpc++. The 2.x protoc compiler you have can't compile grpc protobuf files, and the plugin generated code needs the protobuf 3.x libraries and headers.2) The version you have globally is 3.x:The Makefile will ignore the version that is in third_party completely.
On Wed, Mar 18, 2015 at 8:41 PM, Abhishek Parmar <abhi...@carbon3d.com> wrote:Should I be worried about version mismatch between the protofub pulled in via grpc/third_party/... v/s the one that I have installed globally?---Abhishek
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAD2hskyLoezC2Gq%2Bco%3D9Nc2UgGeuC9kGNeA5-aZVNA_bTEyUgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAEvr0PF7rqk9bfrOSJfONUaBvZNy1mdf%3Do%3D_3rQCed2wmBQC%2Bg%40mail.gmail.com.
test/build/perftools.c:34:33: fatal error: gperftools/profiler.h: No such file or directory
#include <gperftools/profiler.h>
but actual make proceeds just fine.
3) I want to build only static libs (and have built only static libs for protobuf3), so make (understandably) fails with:
usr/bin/ld: /home/abhishek/bitbucket/c3d/__build__/third_party/protobuf-3.0.0-alpha-2/lib/libprotobuf.a(message_lite.o): relocation R_X86_64_32S against `_ZTVN6google8protobuf11MessageLiteE' can not be used when making a shared object; recompile with -fPIC
/home/abhishek/bitbucket/c3d/__build__/third_party/protobuf-3.0.0-alpha-2/lib/libprotobuf.a: error adding symbols: Bad value
4) Specifying targets as in "make static plugins" works as expected
5) But if I specify a BUILDDIR for "make static plugins", it fails with
ar: ..//tmp/grpc-build/libs/opt/libgrpc.a: No such file or directory
make: *** [/tmp/grpc-build/libs/opt/libgrpc.a] Error 9
For all these make command my command line looked something like:
CXXFLAGS=-I/home/abhishek/bitbucket/c3d/__build__/third_party/protobuf-3.0.0-alpha-2/include LDFLAGS=-L/home/abhishek/bitbucket/c3d/__build__/third_party/protobuf-3.0.0-alpha-2/lib PATH=$PATH:/home/abhishek/bitbucket/c3d/__build__/third_party/protobuf-3.0.0-alpha-2/bin BUILDDIR=/tmp/grpc-build make static plugins
But when I look at /tmp/grpc-build/libs/opt it has libgrpc.a
Any idea what could be wrong? Is BUILDDIR not supported correctly by the makefile?