Problems compiling since v3.6039 on linux x86
Posted: Friday 23 December 2016 11:42
Hi all,
I try to keep reasonably up-to-date with new versions and I last compiled v3.6039 with no problems.
Now when I try to pull the latest files and recompile I'm getting a lot of errors, most relating to Python (my system has version 2.7.3). Here's the full output:
My server is a relatively old version of Ubuntu linux but it is kept up-to-date with updates from the usual repositories...
Any clues would be much appreciated.
Thanks, and Happy Christmas everyone!
George
I try to keep reasonably up-to-date with new versions and I last compiled v3.6039 with no problems.
Now when I try to pull the latest files and recompile I'm getting a lot of errors, most relating to Python (my system has version 2.7.3). Here's the full output:
Code: Select all
Scanning dependencies of target domoticz
[ 22%] Building CXX object CMakeFiles/domoticz.dir/main/domoticz.cpp.o
[ 22%] Building CXX object CMakeFiles/domoticz.dir/hardware/OTGWBase.cpp.o
[ 22%] Building CXX object CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o
In file included from /usr/include/python2.7/Python.h:8:0,
from /home/george/domoticz/hardware/plugins/PluginManager.cpp:34:
/usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
/usr/include/features.h:164:0: note: this is the location of the previous definition
/usr/include/python2.7/pyconfig.h:1183:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
/usr/include/features.h:166:0: note: this is the location of the previous definition
In file included from /home/george/domoticz/hardware/plugins/PluginManager.cpp:37:0:
/home/george/domoticz/hardware/plugins/DelayedLink.h:260:0: warning: "PyBytes_AsString" redefined [enabled by default]
/usr/include/python2.7/bytesobject.h:16:0: note: this is the location of the previous definition
/home/george/domoticz/hardware/plugins/PluginManager.cpp:496:28: error: variable ‘Plugins::PyModuleDef Plugins::DomoticzModuleDef’ has initializer but incomplete type
/home/george/domoticz/hardware/plugins/PluginManager.cpp:497:3: error: ‘PyModuleDef_HEAD_INIT’ was not declared in this scope
/home/george/domoticz/hardware/plugins/PluginManager.cpp: In function ‘PyObject* Plugins::CDevice_insert(Plugins::CDevice*, PyObject*)’:
/home/george/domoticz/hardware/plugins/PluginManager.cpp:663:96: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:673:60: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:677:127: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:703:151: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp: In function ‘PyObject* Plugins::CDevice_update(Plugins::CDevice*, PyObject*)’:
/home/george/domoticz/hardware/plugins/PluginManager.cpp:725:103: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:734:18: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:734:83: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:738:24: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:739:47: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp: In function ‘PyObject* Plugins::CDevice_seticon(Plugins::CDevice*, PyObject*)’:
/home/george/domoticz/hardware/plugins/PluginManager.cpp:764:96: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:771:73: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp: In function ‘PyObject* Plugins::CDevice_str(Plugins::CDevice*)’:
/home/george/domoticz/hardware/plugins/PluginManager.cpp:795:113: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp:795:157: error: ‘struct Plugins::SharedLibraryProxy’ has no member named ‘PyBytes_AsString’
/home/george/domoticz/hardware/plugins/PluginManager.cpp: At global scope:
/home/george/domoticz/hardware/plugins/PluginManager.cpp:851:21: error: variable ‘Plugins::PyModuleDef Plugins::CDevice_module’ has initializer but incomplete type
/home/george/domoticz/hardware/plugins/PluginManager.cpp:852:3: error: ‘PyModuleDef_HEAD_INIT’ was not declared in this scope
/home/george/domoticz/hardware/plugins/PluginManager.cpp: In function ‘void Plugins::PyInit_Domoticz()’:
/home/george/domoticz/hardware/plugins/PluginManager.cpp:868:11: error: return-statement with a value, in function returning 'void' [-fpermissive]
/home/george/domoticz/hardware/plugins/PluginManager.cpp:872:10: error: return-statement with a value, in function returning 'void' [-fpermissive]
/home/george/domoticz/hardware/plugins/PluginManager.cpp: In member function ‘bool Plugins::CPluginSystem::StartPluginSystem()’:
/home/george/domoticz/hardware/plugins/PluginManager.cpp:1965:54: error: invalid conversion from ‘void (*)()’ to ‘PyObject* (*)() {aka _object* (*)()}’ [-fpermissive]
make[2]: *** [CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o] Error 1
make[1]: *** [CMakeFiles/domoticz.dir/all] Error 2
make: *** [all] Error 2
george@asusbox:~/domoticz$
Code: Select all
george@asusbox:~/domoticz$ uname -a
Linux asusbox 3.2.0-118-generic #161-Ubuntu SMP Fri Dec 2 15:36:31 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Thanks, and Happy Christmas everyone!
George