From: Gunnar Beutner Date: Mon, 2 Apr 2012 14:25:43 +0000 (+0200) Subject: Fixed dependency problem. X-Git-Tag: v0.0.1~658 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f890f1d42cd11032d40335033af41265642d3766;p=icinga2 Fixed dependency problem. --- diff --git a/base/Makefile.am b/base/Makefile.am index c8f50b602..a9b83c8fb 100644 --- a/base/Makefile.am +++ b/base/Makefile.am @@ -44,6 +44,7 @@ libbase_la_SOURCES = \ win32.h libbase_la_LIBADD=$(LIBLTDL) +libbase_la_LDFLAGS=-pthread AM_CFLAGS=$(LTDLINCL) AM_CXXFLAGS=$(LTDLINCL) diff --git a/configrpccomponent/configrpccomponent.cpp b/configrpccomponent/configrpccomponent.cpp index 1dc68cca8..d63bb226a 100644 --- a/configrpccomponent/configrpccomponent.cpp +++ b/configrpccomponent/configrpccomponent.cpp @@ -4,7 +4,7 @@ using namespace icinga; IcingaApplication::RefType ConfigRpcComponent::GetIcingaApplication(void) { - return dynamic_pointer_cast(GetApplication()); + return static_pointer_cast(GetApplication()); } string ConfigRpcComponent::GetName(void) @@ -16,9 +16,6 @@ void ConfigRpcComponent::Start(void) { IcingaApplication::RefType icingaApp = GetIcingaApplication(); - if (icingaApp.get() == NULL) - throw exception(/*"Component loaded by incompatible application."*/); - ConnectionManager::RefType connectionManager = icingaApp->GetConnectionManager(); ConfigHive::RefType configHive = icingaApp->GetConfigHive();