From f890f1d42cd11032d40335033af41265642d3766 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Apr 2012 16:25:43 +0200 Subject: [PATCH] Fixed dependency problem. --- base/Makefile.am | 1 + configrpccomponent/configrpccomponent.cpp | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) 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();