-
Notifications
You must be signed in to change notification settings - Fork 222
Description
I was compiling for arch linux, when i got the following python failure during make:
protoc/StrUtil.cpp: In function ‘char* ola::FastHexToBuffer(int, char*)’:
protoc/StrUtil.cpp:256:3: error: ‘GOOGLE_CHECK’ was not declared in this scope
GOOGLE_CHECK(i >= 0)
^~~~~~~~~~~~
protoc/StrUtil.cpp: In function ‘char* ola::FastUInt64ToBufferLeft(uint64_t, char*)’:
protoc/StrUtil.cpp:436:3: error: ‘GOOGLE_DCHECK_LT’ was not declared in this scope
GOOGLE_DCHECK_LT(digits, 100);
^~~~~~~~~~~~~~~~
protoc/StrUtil.cpp:436:3: note: suggested alternative: ‘GOOGLE_THREAD_LOCAL’
GOOGLE_DCHECK_LT(digits, 100);
^~~~~~~~~~~~~~~~
GOOGLE_THREAD_LOCAL
i am running the latest protobuf currently in the arch repos, and this error appears regardless of running in python2.7 or python3 (i tried 2.7 in a virtualenv) but it seems to have failed...
now i am not sure what the difference is between GOOGLE_DCHECK_LT and GOOGLE_THREAD_LOCAL, but it seems to be suggesting that we use that instead.
Now i have no idea if this is an arch only issue, but i would rather test on my PC, before moving to my raspberry pi with a cap touch screen. (I'm gonna be messing with the APIS and combining it with PYGAME (and if i can work it out, a custom web server)
I have also noticed a few other items that the compiler seems to have skipped right over, like a deprecated function:
protoc/CppGenerator.cpp:57:3: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
also something to do with random during ./configure
configure: WARNING: random: present but cannot be compiled
configure: WARNING: random: check for missing prerequisite headers?
configure: WARNING: random: see the Autoconf documentation
configure: WARNING: random: section "Present But Cannot Be Compiled"
configure: WARNING: random: proceeding with the compiler's result
configure: WARNING: ## --------------------------------------------- ##
configure: WARNING: ## Report this to [email protected] ##
configure: WARNING: ## --------------------------------------------- ##
checking for random... no
Now i dont pretend to know anything about these APIs I just thought I would point them out