Skip to content

Instantly share code, notes, and snippets.

@like-a-bause
Created May 11, 2014 12:04
Show Gist options
  • Save like-a-bause/9100b977c2163efd5545 to your computer and use it in GitHub Desktop.
Save like-a-bause/9100b977c2163efd5545 to your computer and use it in GitHub Desktop.
oscit Compiler Errors
cd build && cmake ..
STATUS,Guessing Linux host endianess to be little endian.
STATUS,You can run cmake with -DENDIANESS=OSC_HOST_BIG_ENDIAN if you need to change this setting.
-- ===========================================================================
-- OSCIT build configuration settings
-- ===========================================================================
-- Platform = linux
-- Release = OFF
-- OSCIT_386_ONLY (no 64bit) = OFF
-- OSCIT_ENABLE_TESTING (Build and run tests) = ON
-- OSCIT_MEMORY_CHECKING (Enable checking against memory leaks) = OFF
-- OSCIT_OPENCV_LINK (Include opencv alloc now) = ON
--
-- Type: 'make examples' to build examples
-- Type: 'ccmake <path to oscit>' to change settings
-- ===========================================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/felix/src/oscit/build
cd build && make
make[1]: Entering directory '/home/felix/src/oscit/build'
make[2]: Entering directory '/home/felix/src/oscit/build'
make[3]: Entering directory '/home/felix/src/oscit/build'
make[3]: Leaving directory '/home/felix/src/oscit/build'
make[3]: Entering directory '/home/felix/src/oscit/build'
[ 2%] Building CXX object CMakeFiles/oscit.dir/src/location_common.cpp.o
In file included from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:34:0,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/mutex.h: In constructor ‘oscit::Mutex::Mutex()’:
/home/felix/src/oscit/include/oscit/mutex.h:51:75: error: ‘strerror’ was not declared in this scope
fprintf(stderr, "Could not initialize mutex (%s)\n", strerror(status));
^
/home/felix/src/oscit/include/oscit/mutex.h: In destructor ‘virtual oscit::Mutex::~Mutex()’:
/home/felix/src/oscit/include/oscit/mutex.h:59:72: error: ‘strerror’ was not declared in this scope
fprintf(stderr, "Could not destroy mutex (%s)\n", strerror(status));
^
In file included from /home/felix/src/oscit/include/oscit/object.h:41:0,
from /home/felix/src/oscit/include/oscit/root.h:33,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/signal.h: In member function ‘void oscit::Signal::send_once(const oscit::Value&)’:
/home/felix/src/oscit/include/oscit/signal.h:87:15: warning: deleting object of abstract class type ‘oscit::Signal::SignalCallback’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete *it;
^
/home/felix/src/oscit/include/oscit/signal.h: In member function ‘void oscit::Signal::disconnect_observer(oscit::Observer*)’:
/home/felix/src/oscit/include/oscit/signal.h:141:17: warning: deleting object of abstract class type ‘oscit::Signal::SignalCallback’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete *it;
^
In file included from /home/felix/src/oscit/include/oscit/object.h:46:0,
from /home/felix/src/oscit/include/oscit/root.h:33,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/c_reference_counted.h: At global scope:
/home/felix/src/oscit/include/oscit/c_reference_counted.h:78:3: error: ‘AtomicCounter’ does not name a type
AtomicCounter ref_count_;
^
/home/felix/src/oscit/include/oscit/c_reference_counted.h: In constructor ‘oscit::CReferenceCounted::CReferenceCounted()’:
/home/felix/src/oscit/include/oscit/c_reference_counted.h:48:25: error: class ‘oscit::CReferenceCounted’ does not have any field named ‘ref_count_’
CReferenceCounted() : ref_count_(1) {}
^
/home/felix/src/oscit/include/oscit/c_reference_counted.h: In member function ‘void oscit::CReferenceCounted::retain()’:
/home/felix/src/oscit/include/oscit/c_reference_counted.h:53:5: error: ‘ref_count_’ was not declared in this scope
ref_count_.increment();
^
/home/felix/src/oscit/include/oscit/c_reference_counted.h: In member function ‘void oscit::CReferenceCounted::release()’:
/home/felix/src/oscit/include/oscit/c_reference_counted.h:57:9: error: ‘ref_count_’ was not declared in this scope
if (ref_count_.decrement() == 0) delete this;
^
/home/felix/src/oscit/include/oscit/c_reference_counted.h: In member function ‘int32_t oscit::CReferenceCounted::ref_count()’:
/home/felix/src/oscit/include/oscit/c_reference_counted.h:61:12: error: ‘ref_count_’ was not declared in this scope
return ref_count_.count();
^
In file included from /home/felix/src/oscit/include/oscit/command.h:36:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/thread.h: In member function ‘void oscit::Thread::kill()’:
/home/felix/src/oscit/include/oscit/thread.h:147:16: warning: converting to non-pointer type ‘pthread_t {aka long unsigned int}’ from NULL [-Wconversion-null]
thread_id_ = NULL;
^
/home/felix/src/oscit/include/oscit/thread.h: In member function ‘void oscit::Thread::join()’:
/home/felix/src/oscit/include/oscit/thread.h:168:18: warning: converting to non-pointer type ‘pthread_t {aka long unsigned int}’ from NULL [-Wconversion-null]
thread_id_ = NULL;
^
/home/felix/src/oscit/include/oscit/thread.h: In member function ‘bool oscit::Thread::is_running()’:
/home/felix/src/oscit/include/oscit/thread.h:181:26: warning: NULL used in arithmetic [-Wpointer-arith]
return thread_id_ != NULL;
^
/home/felix/src/oscit/include/oscit/thread.h: In static member function ‘static void* oscit::Thread::s_start_static_thread(void*)’:
/home/felix/src/oscit/include/oscit/thread.h:246:24: warning: converting to non-pointer type ‘pthread_t {aka long unsigned int}’ from NULL [-Wconversion-null]
thread->thread_id_ = NULL; // not running anymore
^
In file included from /home/felix/src/oscit/include/oscit/location.h:35:0,
from /home/felix/src/oscit/src/location_common.cpp:30:
/home/felix/src/oscit/include/oscit/thash.h: In instantiation of ‘void oscit::THash<K, T>::set(const K&, const Te&) [with K = std::basic_string<char>; T = oscit::Value]’:
/home/felix/src/oscit/include/oscit/value.h:734:24: required from here
/home/felix/src/oscit/include/oscit/thash.h:221:23: error: ‘hashId’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
uint id = hashId(key) % size_;
^
In file included from /home/felix/src/oscit/include/oscit/command.h:37:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/url.h:205:13: note: ‘oscit::uint oscit::hashId(const oscit::Url&)’ declared here, later in the translation unit
inline uint hashId(const Url &url) {
^
In file included from /home/felix/src/oscit/include/oscit/location.h:35:0,
from /home/felix/src/oscit/src/location_common.cpp:30:
/home/felix/src/oscit/include/oscit/thash.h: In instantiation of ‘bool oscit::THash<K, T>::get(const K&, T**) [with K = std::basic_string<char>; T = oscit::Value]’:
/home/felix/src/oscit/include/oscit/value.h:759:30: required from here
/home/felix/src/oscit/include/oscit/thash.h:305:23: error: ‘hashId’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
uint id = hashId(key) % size_;
^
In file included from /home/felix/src/oscit/include/oscit/command.h:37:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/url.h:205:13: note: ‘oscit::uint oscit::hashId(const oscit::Url&)’ declared here, later in the translation unit
inline uint hashId(const Url &url) {
^
In file included from /home/felix/src/oscit/include/oscit/location.h:35:0,
from /home/felix/src/oscit/src/location_common.cpp:30:
/home/felix/src/oscit/include/oscit/thash.h: In instantiation of ‘bool oscit::THash<K, T>::get(const K&, T*) const [with K = std::basic_string<char>; T = oscit::Value]’:
/home/felix/src/oscit/include/oscit/value.h:770:34: required from here
/home/felix/src/oscit/include/oscit/thash.h:255:23: error: ‘hashId’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
uint id = hashId(key) % size_;
^
In file included from /home/felix/src/oscit/include/oscit/command.h:37:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/url.h:205:13: note: ‘oscit::uint oscit::hashId(const oscit::Url&)’ declared here, later in the translation unit
inline uint hashId(const Url &url) {
^
In file included from /home/felix/src/oscit/include/oscit/location.h:35:0,
from /home/felix/src/oscit/src/location_common.cpp:30:
/home/felix/src/oscit/include/oscit/thash.h: In instantiation of ‘bool oscit::THash<K, T>::has_key(const K&) const [with K = std::basic_string<char>; T = oscit::Value]’:
/home/felix/src/oscit/include/oscit/value.h:835:43: required from here
/home/felix/src/oscit/include/oscit/thash.h:272:23: error: ‘hashId’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
uint id = hashId(key) % size_;
^
In file included from /home/felix/src/oscit/include/oscit/command.h:37:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/url.h:205:13: note: ‘oscit::uint oscit::hashId(const oscit::Url&)’ declared here, later in the translation unit
inline uint hashId(const Url &url) {
^
In file included from /home/felix/src/oscit/include/oscit/location.h:35:0,
from /home/felix/src/oscit/src/location_common.cpp:30:
/home/felix/src/oscit/include/oscit/thash.h: In instantiation of ‘bool oscit::THash<K, T>::get(const K&, T*) const [with K = std::basic_string<char>; T = oscit::Object*]’:
/home/felix/src/oscit/include/oscit/root.h:351:45: required from here
/home/felix/src/oscit/include/oscit/thash.h:255:23: error: ‘hashId’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
uint id = hashId(key) % size_;
^
In file included from /home/felix/src/oscit/include/oscit/command.h:37:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/url.h:205:13: note: ‘oscit::uint oscit::hashId(const oscit::Url&)’ declared here, later in the translation unit
inline uint hashId(const Url &url) {
^
In file included from /home/felix/src/oscit/include/oscit/location.h:35:0,
from /home/felix/src/oscit/src/location_common.cpp:30:
/home/felix/src/oscit/include/oscit/thash.h: In instantiation of ‘bool oscit::THash<K, T>::get(const K&, const T**) const [with K = std::basic_string<char>; T = oscit::Value]’:
/home/felix/src/oscit/include/oscit/thash.h:179:27: required from ‘bool oscit::THash<K, T>::operator==(const oscit::THash<K, T>&) const [with K = std::basic_string<char>; T = oscit::Value]’
/home/felix/src/oscit/include/oscit/value.h:329:56: required from here
/home/felix/src/oscit/include/oscit/thash.h:288:23: error: ‘hashId’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
uint id = hashId(key) % size_;
^
In file included from /home/felix/src/oscit/include/oscit/command.h:37:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/url.h:205:13: note: ‘oscit::uint oscit::hashId(const oscit::Url&)’ declared here, later in the translation unit
inline uint hashId(const Url &url) {
^
In file included from /home/felix/src/oscit/include/oscit/location.h:35:0,
from /home/felix/src/oscit/src/location_common.cpp:30:
/home/felix/src/oscit/include/oscit/thash.h: In instantiation of ‘bool oscit::THash<K, T>::remove_keeping_key(const K&) [with K = std::basic_string<char>; T = oscit::Value]’:
/home/felix/src/oscit/include/oscit/thash.h:141:31: required from ‘void oscit::THash<K, T>::remove(const K&) [with K = std::basic_string<char>; T = oscit::Value]’
/home/felix/src/oscit/include/oscit/value.h:860:22: required from here
/home/felix/src/oscit/include/oscit/thash.h:341:23: error: ‘hashId’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
uint id = hashId(key) % size_;
^
In file included from /home/felix/src/oscit/include/oscit/command.h:37:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/url.h:205:13: note: ‘oscit::uint oscit::hashId(const oscit::Url&)’ declared here, later in the translation unit
inline uint hashId(const Url &url) {
^
In file included from /home/felix/src/oscit/include/oscit/command.h:36:0,
from /home/felix/src/oscit/include/oscit/root.h:34,
from /home/felix/src/oscit/include/oscit/root_proxy.h:37,
from /home/felix/src/oscit/include/oscit/zeroconf_browser.h:36,
from /home/felix/src/oscit/src/location_common.cpp:37:
/home/felix/src/oscit/include/oscit/thread.h: In instantiation of ‘static void* oscit::Thread::s_start_thread(void*) [with T = oscit::Command; void (T::* Tmethod)() = &oscit::Command::listen]’:
/home/felix/src/oscit/include/oscit/thread.h:126:79: required from ‘void oscit::Thread::start_thread(T*, void*) [with T = oscit::Command; void (T::* Tmethod)() = &oscit::Command::listen]’
/home/felix/src/oscit/include/oscit/command.h:81:49: required from here
/home/felix/src/oscit/include/oscit/thread.h:286:24: warning: converting to non-pointer type ‘pthread_t {aka long unsigned int}’ from NULL [-Wconversion-null]
thread->thread_id_ = NULL; // not running anymore
^
CMakeFiles/oscit.dir/build.make:72: recipe for target 'CMakeFiles/oscit.dir/src/location_common.cpp.o' failed
make[3]: *** [CMakeFiles/oscit.dir/src/location_common.cpp.o] Error 1
make[3]: Leaving directory '/home/felix/src/oscit/build'
CMakeFiles/Makefile2:127: recipe for target 'CMakeFiles/oscit.dir/all' failed
make[2]: *** [CMakeFiles/oscit.dir/all] Error 2
make[2]: Leaving directory '/home/felix/src/oscit/build'
Makefile:85: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/felix/src/oscit/build'
makefile:4: recipe for target 'default' failed
make: *** [default] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment