Dear Lyle:

BMC provided the file today.  They report it is for Linux, Windows, and
Solaris.  I work in all three environments.  Now I need to test.

Thorin


/**********************************************************************
*
*       Header %name:   wfd_shared.h %
*       Instance:               wildlife_1
*       Description:    
*       %created_by:    sdillon %
*       %date_created:  Wed May 28 16:18:07 2008 %
*
**********************************************************************/

/* Bit masks for the various places to stop  */
/* and macros to test for them               */
#define WFD_STOP_START_API    0x00000001
#define WfdStopAtStartAPI(mode)     (mode & WFD_STOP_START_API)
#define WFD_STOP_END_API      0x00000002
#define WfdStopAtEndAPI(mode)       (mode & WFD_STOP_END_API)
#define WFD_STOP_QUALIFIER    0x00000004
#define WfdStopAtQualifier(mode)    (mode & WFD_STOP_QUALIFIER)
#define WFD_STOP_P1_ACTION    0x00000008
#define WfdStopAtP1Action(mode)     (mode & WFD_STOP_P1_ACTION)
#define WFD_STOP_P2_ACTION    0x00000010
#define WfdStopAtP2Action(mode)     (mode & WFD_STOP_P2_ACTION)
#define WFD_STOP_P3_ACTION    0x00000020
#define WfdStopAtP3Action(mode)     (mode & WFD_STOP_P3_ACTION)
#define WfdStopAtAnyAction(mode)    (mode & (WFD_STOP_P1_ACTION |
WFD_STOP_P2_ACTION | WFD_STOP_P3_ACTION) )
#define WFD_STOP_ESC_ACTION   0x00000040
#define WfdStopAtEscAction(mode)    (mode & WFD_STOP_ESC_ACTION)
#define WFD_STOP_CMDB         0x00000080
#define WfdStopAtCMDB(mode)         (mode & WFD_STOP_CMDB)
#define WFD_STOP_UNUSED_1     0x00000100
#define WfdStopAtUnused1(mode)      (mode & WFD_STOP_UNUSED_1)
#define WFD_STOP_UNUSED_2     0x00000200
#define WfdStopAtUnused2(mode)      (mode & WFD_STOP_UNUSED_2)
#define WFD_STOP_UNUSED_3     0x00000400
#define WfdStopAtUnused3(mode)      (mode & WFD_STOP_UNUSED_3)


#define WFD_DEBUG_STR  "Debug"


-----Original Message-----
From: Marty.Thorin 
Sent: Wednesday, August 12, 2009 12:41 PM
Subject: Re: File wfd_shared.h

Dear Lyle:

I have contacted BMC.  I was just hoping someone else had noticed this
issue and had already received the file.  I agree it looks like bit
values.

On Tuesday BMC sent:

***************
I have created defect for this issue # SW00339863.

I will check if we can get the file for this defect. I will update you
with more information as soon as possible.
***************

As of noon today, no file.
Thorin 

-----Original Message-----
From: Lyle Taylor [mailto:[email protected]]
Sent: Wednesday, August 12, 2009 12:02 PM
To: Marty.Thorin; [email protected]
Subject: RE: File wfd_shared.h

Hmm.  I don't see that file in my 7.5 installation either.  Looking at
the program a bit, it looks like BMC probably forgot to include the
header file in the distribution - it doesn't look like it's a system
header or even for a 3rd party API.  I would recommend opening a ticket
with BMC and see what they have to say.  If it really is their file,
they can send it to you, and submit a bug to get the file included with
the 7.5 installers.

Lyle

-----Original Message-----
From: Marty.Thorin [mailto:[email protected]]
Sent: Wednesday, August 12, 2009 8:54 AM
To: Lyle Taylor; [email protected]
Subject: RE: File wfd_shared.h

Here is a copy of the current run.  Although we are running on Redhat
Linux, the same code is bundled with the Windows API.  Trying to compile
with a Microsoft C compiler yields this same complaint.

rmdy-papr02.comp.wepco.com{xxremedy}27: cd driver
/opt/bmc_software/Remedy/ARSystem/api/src/driver

rmdy-papr02.comp.wepco.com{xxremedy}28: make cc -m32 -g -DDEBUG
-D_REENTRANT -malign-double -I../include
-I../../include   -c -o api.o api.c
api.c:24:24: wfd_shared.h: No such file or directory
api.c: In function `APIWFDSetDebugMode':
api.c:11278: error: `WFD_STOP_START_API' undeclared (first use in this
function)
api.c:11278: error: (Each undeclared identifier is reported only once
api.c:11278: error: for each function it appears in.)
api.c:11283: error: `WFD_STOP_QUALIFIER' undeclared (first use in this
function)
api.c:11288: error: `WFD_STOP_P1_ACTION' undeclared (first use in this
function)
api.c:11293: error: `WFD_STOP_P2_ACTION' undeclared (first use in this
function)
api.c:11298: error: `WFD_STOP_P3_ACTION' undeclared (first use in this
function)
api.c:11303: error: `WFD_STOP_END_API' undeclared (first use in this
function)
api.c:11308: error: `WFD_STOP_ESC_ACTION' undeclared (first use in this
function)
api.c:11313: error: `WFD_STOP_CMDB' undeclared (first use in this
function)
make: *** [api.o] Error 1
rmdy-papr02.comp.wepco.com{xxremedy}29: 

The top of aie.c is
________________________________________________

/* File: api.c */

#include <stdlib.h>
#ifdef _WIN32
#include <time.h>
#ifndef snprintf
#define  snprintf _snprintf
#endif
#define  strcasecmp  _stricmp    /* Case-insensitive compare on Windows
*/
#else /* _WIN32 */
#include <unistd.h>
#endif /* _WIN32 */
#include <stdio.h>
#include <string.h>

#include "ar.h"
#include "arextern.h"
#include "arfree.h"
#include "api.h"
#include "get.h"
#include "globals.h"
#include "print.h"
#include "util.h"
#include "wfd_shared.h"
#include "arerrno.h"
________________________________________________ 

The errors are found in this subroutine: Lines 11259 through 11320.

/***********************************************************************
******/
/*
*/
/*                           APIWFDSetDebugMode
*/
/*
*/
/***********************************************************************
******/

   int
APIWFDSetDebugMode()

{
   int               result = 0;
   unsigned int      debugMode = 0;
   ARStatusList      status = {0, NULL};

   /* Get parameters */
   if( NOT_WFD_QUIET )
      DriverPrintHeader("WFD SET DEBUG MODE");

   DriverPrintHeader( "Debug Mode to set (stop at)? : " );
   if( GetARBoolean("   Begin API (T): ", TRUE) )
      debugMode |= WFD_STOP_START_API;
   else
      debugMode &= ~WFD_STOP_START_API;

   if( GetARBoolean("   Qualifier (T): ", TRUE) )
      debugMode |= WFD_STOP_QUALIFIER;
   else
      debugMode &= ~WFD_STOP_QUALIFIER;

   if( GetARBoolean("   Phase 1 (T): ", TRUE) )
      debugMode |= WFD_STOP_P1_ACTION;
   else
      debugMode &= ~WFD_STOP_P1_ACTION;

   if( GetARBoolean("   Phase 2 (T): ", TRUE) )
      debugMode |= WFD_STOP_P2_ACTION;
   else
      debugMode &= ~WFD_STOP_P2_ACTION;

   if( GetARBoolean("   Phase 3 (T): ", TRUE) )
      debugMode |= WFD_STOP_P3_ACTION;
   else
      debugMode &= ~WFD_STOP_P3_ACTION;

   if( GetARBoolean("   End API (T): ", TRUE) )
      debugMode |= WFD_STOP_END_API;
   else
      debugMode &= ~WFD_STOP_END_API;

   if( GetARBoolean("   Esc Action (T): ", TRUE) )
      debugMode |= WFD_STOP_ESC_ACTION;
   else
      debugMode &= ~WFD_STOP_ESC_ACTION;

   if( GetARBoolean("   CMDB (T): ", TRUE) )
      debugMode |= WFD_STOP_CMDB;
   else
      debugMode &= ~WFD_STOP_CMDB;

   /* Call routine */
   return APIWFDDoSetDebugMode( debugMode ); }
_________________________________________________

Thorin

-----Original Message-----
From: Lyle Taylor [mailto:[email protected]]
Sent: Tuesday, August 11, 2009 2:56 PM
Subject: Re: File wfd_shared.h

Where is this file actually being included from?  Perhaps you could post
the entire error text that the compiler is printing.

Lyle

-----Original Message-----
From: Action Request System discussion list(ARSList)
[mailto:[email protected]] On Behalf Of Marty.Thorin
Sent: Tuesday, August 11, 2009 1:46 PM
To: [email protected]
Subject: File wfd_shared.h

Good afternoon:
        Our system is ARS 7.5 Patch 1.  I am trying to compile the API
example 'Driver'.  The first file to compile, api.c, fails because it is
missing the include file wfd_shared.h.  Does anyone have a copy of this
file that they would post for me?

Thank you,
Thorin
We Energies
Milwaukee, WI


 NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

________________________________________________________________________
_______
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum
Sponsor:[email protected] ARSlist: "Where the Answers Are"

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

Reply via email to