Problem building argus in OpenBSD 4.1

Carter Bullard carter at qosient.com
Sun Aug 19 11:26:44 EDT 2007


Hey Pablo,
The error is coming from the compiler not finding the POSIX THREADS
include files, even though the POSIX defines are there.  If you remove the
.threads tag file in the root directory and start over (make clobber; 
./configure;
make) , it should compile fine.

So, could you email your ./config.log file, so I can see where the 
./configure
failed, it should have caught whether pthreads is there or not.

Carter

Pablo J. Rebollo-Sosa wrote:
> Hi,
>
> I'm having problems when compiling argus and argus clients (8/18/2007
> code) in OpenBSD 4.1.  Here is the error:
>
> ....
> making in ./clients
> gcc -O3 -I. -I../include -I../common -DPACKAGE_NAME=\"\"
> -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\"
> -DPACKAGE_BUGREPORT=\"\" -DHAVE_VFPRINTF=1 -DHAVE_STRCASECMP=1
> -DHAVE_STRLCAT=1 -DHAVE_STRLCPY=1 -DHAVE_STRDUP=1 -DHAVE_STRFTIME=1
> -DHAVE_SETLINEBUF=1 -DHAVE_SETENV=1 -DHAVE_ALARM=1 -DSTDC_HEADERS=1
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
> -DHAVE_INTTYPES_H=1 -DARGUS_THREADS=1 -DHAVE_SYS_SOCKIO_H=1
> -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_SYS_FILE_H=1 -DHAVE_SYSLOG_H=1
> -DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 -DHAVE_SRANDOMDEV=1
> -DARGUS_CURSES=1 -DARGUS_NCURSES_H=1 -DARGUS_READLINE=1
> -DARGUS_READLINE_EVENT_HOOK=1 -DCONFIG_X86_BSWAP=1 -DSTDC_HEADERS=1 -c
> ./ra.c
> gcc -O3 -o ../bin/ra ra.o ../lib/argus_parse.a ../lib/argus_common.a
> ../lib/argus_client.a -lm -lpthread  -lreadline -ltermcap
> ../lib/argus_parse.a(argus_main.o)(.text+0x21b0): In function
> `ArgusParseArgs':
> : warning: sprintf() is often misused, please use snprintf()
> ../lib/argus_parse.a(argus_main.o)(.text+0x131): In function `main':
> : undefined reference to `sched_get_priority_min'
> ../lib/argus_parse.a(argus_main.o)(.text+0x149): In function `main':
> : undefined reference to `sched_get_priority_max'
> collect2: ld returned 1 exit status
> *** Error code 1
>
> Stop in /root/argus-clients-3.0.0.rc.48/clients (line 87 of Makefile).
> *** Error code 1
>
> Stop in /root/argus-clients-3.0.0.rc.48 (line 64 of Makefile).
>
> Pablo
>
>





More information about the argus mailing list