argus-clients-3.0.0.rc.63 make failure - OpenBSD4.1

Carter Bullard carter at qosient.com
Mon Nov 12 10:44:34 EST 2007


Hey Harry,
Thanks, thats what I needed, and I've got it fixed in rc.64, which  
I'll try to have up today.
The patch is to add these lines to argus_main.h.

==== //depot/argus/clients/common/argus_main.c#41 - /home/carter/ 
argus/clients/common/argus_main.c ====
95a96,102
 > #include <sys/wait.h>
 >
 > #if defined(__NetBSD__)
 > #include <sys/sched.h>
 > #else
 > #include <sched.h>
 > #endif

Thanks again!!!!!

Carter



On Nov 10, 2007, at 5:12 PM, Harry Hoffman wrote:

> Hi Carter,
>
> Yep, this is OpenBSD 4.1 running on a DELL poweredge 1650.
> bash-3.2# uname -a
> OpenBSD delator 4.1 GENERIC.MP#1225 i386
>
>
> I'm guessing that _POSIX_THREAD_PRIORITY_SCHEDULING is defined but  
> to be honest I'm not sure how/where to check.
>
> sched_get_priority_min() and sched_get_priority_max() are in /usr/ 
> include/sched.h
>
> I'm happy to provide any other info.
>
> Cheers,
> Harry
>
>
>
>
> Carter Bullard wrote:
>> Hey Harry,
>> Hmmmm, I must have missed it, as we're trying to get things
>> ready for release.  So you're getting this error in OpenBSD4.1?
>> Is the problem that _POSIX_THREAD_PRIORITY_SCHEDULING is
>> defined, but these two routines, sched_get_priority_min() and
>> sched_get_priority_max() are not there, or are they in some weird
>> include file?
>> Carter
>> On Nov 9, 2007, at 12:36 PM, Harry Hoffman wrote:
>>> Oops, sorry... I see that this was already covered in the mailing  
>>> list... missed it with my initial scan through the archives.
>>>
>>> Harry Hoffman wrote:
>>>> Hi All,
>>>> Attempting to build the latest argus-clients on obsd 4.1 and  
>>>> have encountered the following errors:
>>>> gcc -O3 -o ../bin/ra ra.o ../lib/argus_parse.a ../lib/ 
>>>> argus_common.a ../lib/argus_client.a -lm -lreadline -ltermcap   - 
>>>> lpthread
>>>> ../lib/argus_parse.a(argus_main.o)(.text+0x2559): In function  
>>>> `ArgusParseArgs':
>>>> : warning: sprintf() is often misused, please use snprintf()
>>>> ../lib/argus_parse.a(argus_main.o)(.text+0x12f): In function  
>>>> `main':
>>>> : undefined reference to `sched_get_priority_min'
>>>> ../lib/argus_parse.a(argus_main.o)(.text+0x147): In function  
>>>> `main':
>>>> : undefined reference to `sched_get_priority_max'
>>>> collect2: ld returned 1 exit status
>>>> *** Error code 1
>>>> Stop in /root/ADDONS/argus-clients-3.0.0.rc.63/clients (line 90  
>>>> of Makefile).
>>>> *** Error code 1
>>>> Stop in /root/ADDONS/argus-clients-3.0.0.rc.63 (line 64 of  
>>>> Makefile).
>>>> Any ideas?
>>>> Cheers,
>>>> Harry
>>>
>



More information about the argus mailing list