Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protobuf issues when installing #40

Closed
rpryzant opened this issue Dec 6, 2017 · 3 comments
Closed

protobuf issues when installing #40

rpryzant opened this issue Dec 6, 2017 · 3 comments

Comments

@rpryzant
Copy link

rpryzant commented Dec 6, 2017

When I run ./configure during installation, I get the following error:

./configure: line 17069: syntax error near unexpected token `PROTOBUF,'
./configure: line 17069: `PKG_CHECK_MODULES(PROTOBUF, protoc >= 2.4.0)'

If I comment out the offending line configure passes, but I receive the following error during make:

Undefined symbols for architecture x86_64:
  "google::protobuf::Message::Utf8DebugString() const", referenced from:
      std::__1::__function::__func<main::$_2, std::__1::allocator<main::$_2>, void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in spm_encode_main.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[3]: *** [spm_encode] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I am running macOS 10.13.1 and libprotoc 3.5.0

@datavizweb
Copy link

datavizweb commented Mar 13, 2018

I assume your were able to fix the issue and install package. If not following step helped me to get pass the error

ACLOCAL_AMFLAGS = -I third_party/m4
to
ACLOCAL_AMFLAGS = -I /usr/local/share/aclocal

in Makefile.am (remove the old flag which sets to thirdparty).
Have a clean dir (better to start in new dir, running on old dir might give you some weird error. Follow the installation step.

@taku910
Copy link
Collaborator

taku910 commented Jun 10, 2018

You might need to install pkg-config which detects the library path of protobuf. Please try the following command line

% brew update
% brew install pkg-config
% brew install protobuf || brew link --overwrite protobuf

@taku910
Copy link
Collaborator

taku910 commented Jun 18, 2018

Please reopen this bug if this error persists.

@taku910 taku910 closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants