On Mon, 2008-10-13 at 09:05 -0400, Kevin Thorley wrote:
> I am seeing the following failure when I try to build sipX:
> 
> /home/kthorley/projects/sipx/views/ecs/sipXsupervisor/src/ProcMgmtRpc.cpp: In 
> member function 'virtual bool ProcMgmtRpcStart::execute(const 
> HttpRequestContext&, UtlSList&, void*, XmlRpcResponse&, 
> XmlRpcMethod::ExecutionStatus&)':
> /home/kthorley/projects/sipx/views/ecs/sipXsupervisor/src/ProcMgmtRpc.cpp:371:
>  error: 'USER_PROCESS_START' was not declared in this scope

> I am building to a clean dir (deleted old build) and I have removed all
> previously installed sipX RPMs.  I updated to the latest (svn r13684),
> ran autoreconf, ran configure, and then tried a make recurse
> TARGETS="all install".  

I'm seeing the same problem.  I can make it build by adding these
definitions to ProcMgmtRpc.cpp (which used to be in OsProcessMgr.h).
But there seem to be no other files that use these values, so I'm sure
this code is either redundant or erroneous in some other way.

--- sipXsupervisor/src/ProcMgmtRpc.cpp  (revision 13684)
+++ sipXsupervisor/src/ProcMgmtRpc.cpp  (working copy)
@@ -24,6 +24,13 @@
 
 #include "ProcMgmtRpc.h"
 
+enum {
+USER_PROCESS_NONE = 0,
+USER_PROCESS_START = 1,
+USER_PROCESS_STOP = 2,
+USER_PROCESS_RESTART = 3
+};
+
 // EXTERNAL FUNCTIONS
 // EXTERNAL VARIABLES
 // CONSTANTS

It appears that ACDServer.cpp also needs to see UtlInt.h:

Index: sipXacd/src/ACDServer.cpp
===================================================================
--- sipXacd/src/ACDServer.cpp   (revision 13684)
+++ sipXacd/src/ACDServer.cpp   (working copy)
@@ -16,6 +16,7 @@
 #include <os/OsSysLog.h>
 #include <utl/UtlString.h>
 #include <utl/UtlHashMap.h>
+#include <utl/UtlInt.h>
 #include <utl/UtlSList.h>
 #include <net/ProvisioningAgent.h>
 #include <net/ProvisioningAgentXmlRpcAdapter.h>

Dale


_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to