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

Eric Pancer epancer at gmail.com
Wed Feb 6 13:49:17 EST 2008


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



More information about the argus mailing list