Time Issue on OpenBSD 4.2 with rc.69 (Was: Re: Sparc64 OpenBSD4.1 Compile issue)

Peter Van Epp vanepp at sfu.ca
Tue Feb 12 19:34:53 EST 2008


On Tue, Feb 12, 2008 at 05:47:07PM -0600, Eric Pancer wrote:
> Ok great. Thanks to you both.
> 
> Carter: can you try and start radium? It's segfaulting on me. I swear:
> I was really nice to it too!
> 

	I needed the following patch to ratop to get it to continue building,
but after that radium doesn't segfault (doesn't give any obvious output either
though, although that may be operator error :-)). Possibly the 64 bit system
again (or I need to tell it to do something :-))?

# radium -r test.argus -n
radium[18197]: 08:15:09.377885 ArgusOutputProcess() exiting
# 

Peter Van Epp / Operations and Technical Support 
Simon Fraser University, Burnaby, B.C. Canada

*** ratop/ratop.c.orig	Tue Feb 12 08:05:47 2008
--- ratop/ratop.c	Tue Feb 12 08:08:18 2008
***************
*** 519,525 ****
           if ((status = pthread_attr_init(&RaTopAttr)) != 0)
              ArgusLog (LOG_ERR, "pthreads init error");
  
! #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && !defined(sun) && !defined(CYGWIN)
           if ((status = pthread_attr_getschedpolicy(&RaTopAttr, &thread_policy)) != 0)
              ArgusLog (LOG_ERR, "pthreads get policy error");
           if ((status = pthread_attr_getschedparam(&RaTopAttr, &thread_param)) != 0)
--- 519,525 ----
           if ((status = pthread_attr_init(&RaTopAttr)) != 0)
              ArgusLog (LOG_ERR, "pthreads init error");
  
! #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && !defined(sun) && !defined(CYGWIN) && !defined(__OpenBSD__)
           if ((status = pthread_attr_getschedpolicy(&RaTopAttr, &thread_policy)) != 0)
              ArgusLog (LOG_ERR, "pthreads get policy error");
           if ((status = pthread_attr_getschedparam(&RaTopAttr, &thread_param)) != 0)
***************
*** 589,595 ****
     if ((status = pthread_attr_init(&attr)) != 0)
        ArgusLog (LOG_ERR, "pthreads init error");
  
! #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && !defined(sun) && !defined(CYGWIN)
     if ((status = pthread_attr_getschedpolicy(&attr, &thread_policy)) != 0)
        ArgusLog (LOG_ERR, "pthreads get policy error");
     if ((status = pthread_attr_getschedparam(&attr, &thread_param)) != 0)
--- 589,595 ----
     if ((status = pthread_attr_init(&attr)) != 0)
        ArgusLog (LOG_ERR, "pthreads init error");
  
! #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && !defined(sun) && !defined(CYGWIN) && !defined(__OpenBSD__)
     if ((status = pthread_attr_getschedpolicy(&attr, &thread_policy)) != 0)
        ArgusLog (LOG_ERR, "pthreads get policy error");
     if ((status = pthread_attr_getschedparam(&attr, &thread_param)) != 0)



More information about the argus mailing list