Skip to content

Instantly share code, notes, and snippets.

@magick93
Created September 15, 2017 12:37
Show Gist options
  • Save magick93/3a9c4894d8ee916d4bf68e764122ccc3 to your computer and use it in GitHub Desktop.
Save magick93/3a9c4894d8ee916d4bf68e764122ccc3 to your computer and use it in GitHub Desktop.
compile error protobuf 3.0.0
make[2]: Entering directory '/var/local/git/protobuf-3.0.0/src'
depbase=`echo google/protobuf/compiler/main.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
/usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/compiler/main.o -MD -MP -MF $depbase.Tpo -c -o google/protobuf/compiler/main.o google/protobuf/compiler/main.cc &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo google/protobuf/stubs/atomicops_internals_x86_gcc.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool --tag=CXX --mode=compile /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/atomicops_internals_x86_gcc.lo -MD -MP -MF $depbase.Tpo -c -o google/protobuf/stubs/atomicops_internals_x86_gcc.lo google/protobuf/stubs/atomicops_internals_x86_gcc.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/atomicops_internals_x86_gcc.lo -MD -MP -MF google/protobuf/stubs/.deps/atomicops_internals_x86_gcc.Tpo -c google/protobuf/stubs/atomicops_internals_x86_gcc.cc -fPIC -DPIC -o google/protobuf/stubs/.libs/atomicops_internals_x86_gcc.o
libtool: compile: /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/atomicops_internals_x86_gcc.lo -MD -MP -MF google/protobuf/stubs/.deps/atomicops_internals_x86_gcc.Tpo -c google/protobuf/stubs/atomicops_internals_x86_gcc.cc -o google/protobuf/stubs/atomicops_internals_x86_gcc.o >/dev/null 2>&1
depbase=`echo google/protobuf/stubs/atomicops_internals_x86_msvc.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool --tag=CXX --mode=compile /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/atomicops_internals_x86_msvc.lo -MD -MP -MF $depbase.Tpo -c -o google/protobuf/stubs/atomicops_internals_x86_msvc.lo google/protobuf/stubs/atomicops_internals_x86_msvc.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/atomicops_internals_x86_msvc.lo -MD -MP -MF google/protobuf/stubs/.deps/atomicops_internals_x86_msvc.Tpo -c google/protobuf/stubs/atomicops_internals_x86_msvc.cc -fPIC -DPIC -o google/protobuf/stubs/.libs/atomicops_internals_x86_msvc.o
libtool: compile: /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/atomicops_internals_x86_msvc.lo -MD -MP -MF google/protobuf/stubs/.deps/atomicops_internals_x86_msvc.Tpo -c google/protobuf/stubs/atomicops_internals_x86_msvc.cc -o google/protobuf/stubs/atomicops_internals_x86_msvc.o >/dev/null 2>&1
depbase=`echo google/protobuf/stubs/bytestream.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool --tag=CXX --mode=compile /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/bytestream.lo -MD -MP -MF $depbase.Tpo -c -o google/protobuf/stubs/bytestream.lo google/protobuf/stubs/bytestream.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/bytestream.lo -MD -MP -MF google/protobuf/stubs/.deps/bytestream.Tpo -c google/protobuf/stubs/bytestream.cc -fPIC -DPIC -o google/protobuf/stubs/.libs/bytestream.o
libtool: compile: /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/bytestream.lo -MD -MP -MF google/protobuf/stubs/.deps/bytestream.Tpo -c google/protobuf/stubs/bytestream.cc -o google/protobuf/stubs/bytestream.o >/dev/null 2>&1
depbase=`echo google/protobuf/stubs/common.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool --tag=CXX --mode=compile /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/common.lo -MD -MP -MF $depbase.Tpo -c -o google/protobuf/stubs/common.lo google/protobuf/stubs/common.cc &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /usr/local/bin/wineg++ -DHAVE_CONFIG_H -I. -I.. -DHAVE_PTHREAD=1 -Wall -Wno-sign-compare -O2 -g -DNDEBUG -MT google/protobuf/stubs/common.lo -MD -MP -MF google/protobuf/stubs/.deps/common.Tpo -c google/protobuf/stubs/common.cc -fPIC -DPIC -o google/protobuf/stubs/.libs/common.o
google/protobuf/stubs/common.cc: In function 'std::__cxx11::string google::protobuf::internal::VersionString(int)':
google/protobuf/stubs/common.cc:98:67: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), "%d.%d.%d", major, minor, micro);
^
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(char)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:229:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(char , "%c" )
^~~~~~~~~~~~~~~~~~~~~~~
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(int)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:230:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(int , "%d" )
^~~~~~~~~~~~~~~~~~~~~~~
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(unsigned int)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:231:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(unsigned int , "%u" )
^~~~~~~~~~~~~~~~~~~~~~~
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(long int)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:232:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(long , "%ld")
^~~~~~~~~~~~~~~~~~~~~~~
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(long unsigned int)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:233:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(unsigned long, "%lu")
^~~~~~~~~~~~~~~~~~~~~~~
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(double)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:234:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(double , "%g" )
^~~~~~~~~~~~~~~~~~~~~~~
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(void*)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:235:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(void* , "%p" )
^~~~~~~~~~~~~~~~~~~~~~~
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(long long int)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:236:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(long long , "%" GOOGLE_LL_FORMAT "d")
^~~~~~~~~~~~~~~~~~~~~~~
google/protobuf/stubs/common.cc: In member function 'google::protobuf::internal::LogMessage& google::protobuf::internal::LogMessage::operator<<(long long unsigned int)':
google/protobuf/stubs/common.cc:222:51: error: '_snprintf' was not declared in this scope
snprintf(buffer, sizeof(buffer), FORMAT, value); \
^
google/protobuf/stubs/common.cc:237:1: note: in expansion of macro 'DECLARE_STREAM_OPERATOR'
DECLARE_STREAM_OPERATOR(unsigned long long, "%" GOOGLE_LL_FORMAT "u")
^~~~~~~~~~~~~~~~~~~~~~~
winegcc: g++ failed
Makefile:3875: recipe for target 'google/protobuf/stubs/common.lo' failed
make[2]: *** [google/protobuf/stubs/common.lo] Error 1
make[2]: Leaving directory '/var/local/git/protobuf-3.0.0/src'
Makefile:1259: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/local/git/protobuf-3.0.0'
Makefile:1166: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment