[ 99%] Building CXX object CMakeFiles/UnitTests.dir/UnitTestsSources/PluginsTests.cpp.o In file included from /root/OrthancBuild/gtest-1.7.0/include/gtest/gtest-param-test.h:192, from /root/OrthancBuild/gtest-1.7.0/include/gtest/gtest.h:62, from /root/Orthanc/UnitTestsSources/ServerIndexTests.cpp:35: /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h: In instantiation of ‘class testing::internal::ParameterizedTestFactory’: /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:398:12: required from ‘testing::internal::TestFactoryBase* testing::internal::TestMetaFactory::CreateTestFactory(testing::internal::TestMetaFactory::ParamType) [with TestCase = DatabaseWrapperTest_LookupIdentifier_Test; testing::internal::TestMetaFactory::ParamType = {anonymous}::DatabaseWrapperClass]’ /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:397:28: required from here /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:353:7: warning: ‘testing::internal::ParameterizedTestFactory’ has a field ‘testing::internal::ParameterizedTestFactory::parameter_’ whose type uses the anonymous namespace [-Wsubobject-linkage] class ParameterizedTestFactory : public TestFactoryBase { ^~~~~~~~~~~~~~~~~~~~~~~~ /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h: In instantiation of ‘class testing::internal::ParameterizedTestFactory’: /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:398:12: required from ‘testing::internal::TestFactoryBase* testing::internal::TestMetaFactory::CreateTestFactory(testing::internal::TestMetaFactory::ParamType) [with TestCase = DatabaseWrapperTest_PatientProtection_Test; testing::internal::TestMetaFactory::ParamType = {anonymous}::DatabaseWrapperClass]’ /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:397:28: required from here /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:353:7: warning: ‘testing::internal::ParameterizedTestFactory’ has a field ‘testing::internal::ParameterizedTestFactory::parameter_’ whose type uses the anonymous namespace [-Wsubobject-linkage] /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h: In instantiation of ‘class testing::internal::ParameterizedTestFactory’: /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:398:12: required from ‘testing::internal::TestFactoryBase* testing::internal::TestMetaFactory::CreateTestFactory(testing::internal::TestMetaFactory::ParamType) [with TestCase = DatabaseWrapperTest_PatientRecycling_Test; testing::internal::TestMetaFactory::ParamType = {anonymous}::DatabaseWrapperClass]’ /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:397:28: required from here /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:353:7: warning: ‘testing::internal::ParameterizedTestFactory’ has a field ‘testing::internal::ParameterizedTestFactory::parameter_’ whose type uses the anonymous namespace [-Wsubobject-linkage] /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h: In instantiation of ‘class testing::internal::ParameterizedTestFactory’: /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:398:12: required from ‘testing::internal::TestFactoryBase* testing::internal::TestMetaFactory::CreateTestFactory(testing::internal::TestMetaFactory::ParamType) [with TestCase = DatabaseWrapperTest_Upward_Test; testing::internal::TestMetaFactory::ParamType = {anonymous}::DatabaseWrapperClass]’ /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:397:28: required from here /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:353:7: warning: ‘testing::internal::ParameterizedTestFactory’ has a field ‘testing::internal::ParameterizedTestFactory::parameter_’ whose type uses the anonymous namespace [-Wsubobject-linkage] /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h: In instantiation of ‘class testing::internal::ParameterizedTestFactory’: /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:398:12: required from ‘testing::internal::TestFactoryBase* testing::internal::TestMetaFactory::CreateTestFactory(testing::internal::TestMetaFactory::ParamType) [with TestCase = DatabaseWrapperTest_Simple_Test; testing::internal::TestMetaFactory::ParamType = {anonymous}::DatabaseWrapperClass]’ /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:397:28: required from here /root/OrthancBuild/gtest-1.7.0/include/gtest/internal/gtest-param-util.h:353:7: warning: ‘testing::internal::ParameterizedTestFactory’ has a field ‘testing::internal::ParameterizedTestFactory::parameter_’ whose type uses the anonymous namespace [-Wsubobject-linkage] [100%] Linking CXX executable UnitTests /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::SetHttpCredentials(lua_State*)': LuaContext.cpp:(.text+0xc4): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::PrintToLog(lua_State*)': LuaContext.cpp:(.text+0x229): undefined reference to `lua_getglobal' /usr/bin/ld: LuaContext.cpp:(.text+0x260): undefined reference to `lua_getglobal' /usr/bin/ld: LuaContext.cpp:(.text+0x2f4): undefined reference to `lua_callk' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::GetLuaContext(lua_State*)': LuaContext.cpp:(.text+0x4ef): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::LuaContext()': LuaContext.cpp:(.text+0x5ec): undefined reference to `lua_setglobal' /usr/bin/ld: LuaContext.cpp:(.text+0x608): undefined reference to `lua_setglobal' /usr/bin/ld: LuaContext.cpp:(.text+0x624): undefined reference to `lua_setglobal' /usr/bin/ld: LuaContext.cpp:(.text+0x640): undefined reference to `lua_setglobal' /usr/bin/ld: LuaContext.cpp:(.text+0x65c): undefined reference to `lua_setglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o):LuaContext.cpp:(.text+0x678): more undefined references to `lua_setglobal' follow /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::ExecuteInternal(std::__cxx11::basic_string, std::allocator >*, std::__cxx11::basic_string, std::allocator > const&)': LuaContext.cpp:(.text+0x7a1): undefined reference to `luaL_loadbufferx' /usr/bin/ld: LuaContext.cpp:(.text+0x7b9): undefined reference to `lua_pcallk' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::Execute(Orthanc::EmbeddedResources::FileResourceId)': LuaContext.cpp:(.text+0x88c): undefined reference to `luaL_loadbufferx' /usr/bin/ld: LuaContext.cpp:(.text+0x8a4): undefined reference to `lua_pcallk' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::IsExistingFunction(char const*)': LuaContext.cpp:(.text+0x94d): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::GetGlobalVariable(lua_State*, char const*)': LuaContext.cpp:(.text+0xcda): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::ParseJson(lua_State*)': LuaContext.cpp:(.text+0xfea): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::GetJson(Json::Value&, int, bool)': LuaContext.cpp:(.text+0x1ef7): undefined reference to `lua_tonumberx' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::DumpJson(lua_State*)': LuaContext.cpp:(.text+0x2181): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::CallHttpGet(lua_State*)': LuaContext.cpp:(.text+0x244a): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::CallHttpPostOrPut(lua_State*, Orthanc::HttpMethod)': LuaContext.cpp:(.text+0x27cd): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::CallHttpDelete(lua_State*)': LuaContext.cpp:(.text+0x2c2a): undefined reference to `lua_getglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::RegisterFunction(char const*, int (*)(lua_State*))': LuaContext.cpp:(.text+0xc96): undefined reference to `lua_setglobal' /usr/bin/ld: libCoreLibrary.a(LuaContext.cpp.o): in function `Orthanc::LuaContext::SetGlobalVariable(char const*, void*)': LuaContext.cpp:(.text+0xcc4): undefined reference to `lua_setglobal' /usr/bin/ld: libCoreLibrary.a(LuaFunctionCall.cpp.o): in function `Orthanc::LuaFunctionCall::ExecuteInternal(int)': LuaFunctionCall.cpp:(.text+0x2a2): undefined reference to `lua_pcallk' /usr/bin/ld: libCoreLibrary.a(LuaFunctionCall.cpp.o): in function `Orthanc::LuaFunctionCall::LuaFunctionCall(Orthanc::LuaContext&, char const*)': LuaFunctionCall.cpp:(.text+0x80): undefined reference to `lua_getglobal' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/UnitTests.dir/build.make:391: UnitTests] Error 1 make[1]: *** [CMakeFiles/Makefile2:180: CMakeFiles/UnitTests.dir/all] Error 2 make: *** [Makefile:130: all] Error 2