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

Carter Bullard carter at qosient.com
Wed Feb 6 14:37:50 EST 2008


These are standard POSIX calls, so I'm sure you've got the code
somewhere in that box.

More than likely it's in /usr/include/sys/sched.h ?

Carter

On Feb 6, 2008, at 2:00 PM, Peter Van Epp wrote:

> On Wed, Feb 06, 2008 at 12:49:17PM -0600, Eric Pancer wrote:
>> On Nov 12, 2007 9:44 AM, Carter Bullard <carter at qosient.com> wrote:
>>> 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
>>>
>>
>> Late reply here. On OpenBSD 4.2 (sparc64) I get the same problem.
>>
>> anlib ../lib/argus_parse.a
>> making in ./clients
>> 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+0x3644): In function  
>> `ArgusParseArgs':
>> : warning: sprintf() is often misused, please use snprintf()
>> ../lib/argus_parse.a(argus_main.o)(.text+0x5f8): In function `main':
>> : undefined reference to `sched_get_priority_min'
>> ../lib/argus_parse.a(argus_main.o)(.text+0x60c): In function `main':
>> : undefined reference to `sched_get_priority_max'
>> collect2: ld returned 1 exit status
>> *** Error code 1
>>
>> Stop in /home/staff/epancer/tmp/argus/argus-clients-3.0.0.rc.68/ 
>> clients
>> (line 90 of Makefile).
>> *** Error code 1
>>
>> Stop in /home/staff/epancer/tmp/argus/argus-clients-3.0.0.rc.68 (line
>> 64 of Makefile).
>>
>> Changing NetBSD to OpenBSD for the patch that you provided doesn't
>> work. However, there are files in /usr/include and /usr/include/sys
>>
>> $ find /usr -name "sched.h"
>> /usr/include/sched.h
>> /usr/include/sys/sched.h
>>
>> Hrmm, I'll tinker, but if you have an idea, it'd help.
>>
>> - Eric
>
> 	Do a
>
> grep sched_get_priority_min /usr/include/* /usr/include/*/*
>
> and see if the symbol is defined somewhere (probably somewhere not  
> included).
> Then a conditional on __OpenBSD__ to include the .h file its defined  
> in
> should fix it. If it isn't defined at all on OpenBSD then Carter will
> probably need to figure out if there is an equivelent function in  
> OpenBSD.
>
> Peter Van Epp / Operations and Technical Support
> Simon Fraser University, Burnaby, B.C. Canada
>



More information about the argus mailing list