FreeBSD compiling : c++: error: linker command failed with exit code 1

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
EricD
Posts: 3
Joined: Thursday 18 February 2016 16:54
Target OS: Linux
Domoticz version:
Contact:

FreeBSD compiling : c++: error: linker command failed with exit code 1

Post by EricD »

[*]Hello,

After compiling different versions of domoticz via git.I systematically get this error message:

[ 99%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xpath_static.cpp.o
In file included from /home/DomGate/domoticz/tinyxpath/xpath_static.cpp:31:
In file included from /home/DomGate/domoticz/tinyxpath/xpath_static.h:33:
In file included from /home/DomGate/domoticz/tinyxpath/xpath_processor.h:39:
/home/DomGate/domoticz/tinyxpath/xpath_expression.h:92:15: warning: enumeration
value 'e_invalid' not handled in switch [-Wswitch]
switch (e_type)
^
In file included from /home/DomGate/domoticz/tinyxpath/xpath_static.cpp:31:
In file included from /home/DomGate/domoticz/tinyxpath/xpath_static.h:33:
In file included from /home/DomGate/domoticz/tinyxpath/xpath_processor.h:40:
/home/DomGate/domoticz/tinyxpath/xpath_stream.h:73:18: warning: enumeration
value 's_end' not handled in switch [-Wswitch]
switch (state)
^
2 warnings generated.
[100%] Building CXX object CMakeFiles/domoticz.dir/tinyxpath/xpath_syntax.cpp.o
/home/DomGate/domoticz/tinyxpath/xpath_syntax.cpp:924:18: warning: 56
enumeration values not handled in switch: 'lex_null', 'lex_none',
'lex_space'... [-Wswitch]
switch (ltp_get (0) -> lex_get_value ())

[100%] Linking CXX executable domoticz
CMakeFiles/domoticz.dir/main/Helper.cpp.o: In function `RoundDouble(long double,short)':
Helper.cpp:(.text+0x2412): warning: powl has lower than advertised precision
CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o: In function `http::server::CWebServer::PluginList(Json::Value&)':
PluginManager.cpp:(.text+0x28a7): undefined reference to `_ZN4Json5ValueaSEOS0_'
PluginManager.cpp:(.text+0x28e4): undefined reference to `_ZN4Json5ValueaSEOS0_'
PluginManager.cpp:(.text+0x2932): undefined reference to `_ZN4Json5ValueaSEOS0_'
PluginManager.cpp:(.text+0x296f): undefined reference to `_ZN4Json5ValueaSEOS0_'
PluginManager.cpp:(.text+0x29bd): undefined reference to `_ZN4Json5ValueaSEOS0_'
CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o:PluginManager.cpp:(.text+0x29fa): more undefined references to `_ZN4Json5ValueaSEOS0_' follow
CMakeFiles/domoticz.dir/hardware/plugins/PluginProtocols.cpp.o: In function `Plugins::CPluginProtocolJSON::JSONtoPython(Json::Value*)':
PluginProtocols.cpp:(.text+0x1174): undefined reference to `Json::ValueIteratorBase::deref()'
PluginProtocols.cpp:(.text+0x1196): undefined reference to `Json::ValueIteratorBase::deref()'
PluginProtocols.cpp:(.text+0x11ec): undefined reference to `Json::ValueIteratorBase::deref()'
PluginProtocols.cpp:(.text+0x120e): undefined reference to `Json::ValueIteratorBase::deref()'
PluginProtocols.cpp:(.text+0x1264): undefined reference to `Json::ValueIteratorBase::deref()'
CMakeFiles/domoticz.dir/hardware/plugins/PluginProtocols.cpp.o:PluginProtocols.cpp:(.text+0x1286): more undefined references to `Json::ValueIteratorBase::deref( )' follow
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1


Tests performed:

FreeBSD version :

vmware workstation 15 pro , 15.5.2 build-15785246 (last version)
amd-64 v11.2R, v11.3R
RAM : 8Go - Proc : 2 core per proc : 2

Domoticz "Version":
2020.2
2020.1
4.10717
4.10659
4.9700

installation commands:
git clone -b "Version" https://github.com/domoticz/domoticz.git domoticz
cmake -DCMAKE_BUILD_TYPE = Release CMakeLists.txt
make


with last version : 2020.2

[ 69%] Linking CXX executable domoticz
CMakeFiles/domoticz.dir/main/Helper.cpp.o: In function `RoundDouble(long double, short)':
Helper.cpp:(.text+0x2642): warning: powl has lower than advertised precision
extern/minizip/libminizip.a(ioapi.c.o): In function `fopen64_file_func':
ioapi.c:(.text+0x2e8): undefined reference to `fopen64'
extern/minizip/libminizip.a(ioapi.c.o): In function `ftell64_file_func':
ioapi.c:(.text+0x32a): undefined reference to `ftello64'
extern/minizip/libminizip.a(ioapi.c.o): In function `fseek64_file_func':
ioapi.c:(.text+0x35b): undefined reference to `fseeko64'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1


with version 4.10717 :

[100%] Linking CXX executable domoticz
CMakeFiles/domoticz.dir/main/Helper.cpp.o: In function `RoundDouble(long double, short)':
Helper.cpp:(.text+0xa5b3): warning: powl has lower than advertised precision
CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o: In function `http::server::CWebServer::PluginList(Json::Value&)':
PluginManager.cpp:(.text+0x7a28): undefined reference to `_ZN4Json5ValueaSEOS0_'
PluginManager.cpp:(.text+0x7aa8): undefined reference to `_ZN4Json5ValueaSEOS0_'
PluginManager.cpp:(.text+0x7bd5): undefined reference to `_ZN4Json5ValueaSEOS0_'
PluginManager.cpp:(.text+0x7c7a): undefined reference to `_ZN4Json5ValueaSEOS0_'
PluginManager.cpp:(.text+0x7d73): undefined reference to `_ZN4Json5ValueaSEOS0_'
CMakeFiles/domoticz.dir/hardware/plugins/PluginManager.cpp.o:PluginManager.cpp:(.text+0x7e18): more undefined references to `_ZN4Json5ValueaSEOS0_' follow
CMakeFiles/domoticz.dir/hardware/plugins/PluginProtocols.cpp.o: In function `Json::ValueIterator::operator*()':
PluginProtocols.cpp:(.text._ZN4Json13ValueIteratordeEv[_ZN4Json13ValueIteratordeEv]+0x11): undefined reference to `Json::ValueIteratorBase::deref()'
CMakeFiles/domoticz.dir/hardware/plugins/PluginProtocols.cpp.o: In function `Json::ValueIterator::operator->()':
PluginProtocols.cpp:(.text._ZN4Json13ValueIteratorptEv[_ZN4Json13ValueIteratorptEv]+0x11): undefined reference to `Json::ValueIteratorBase::deref()'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1


Thanks for your help.
Last edited by EricD on Tuesday 05 May 2020 18:18, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest