[Asterisk-Users] Help with include files & current CVS

Matt Lawson matt at 1control.com
Tue Nov 11 12:44:24 MST 2003


Hello,

I'm trying to compile a brand new CVS Asterisk and running into trouble 
with include files.  I have an older version of Asterisk that I can 
compile (2-3 months old) that I can compile fine, but the new one gives 
me this:

make[1]: Leaving directory `/home/matt/asterisk_update/stdtime'
if [ -d CVS ] && ! [ -f .version ]; then echo CVS-10/01/03-13:06:31 > 
.version; fi
gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -g  -I./include/asterisk -Iinclude -I../include 
-D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686  -DZAPTEL_OPTIMIZATIONS 
-DASTERISK_VERSION=\"CVS-10/01/03-13:06:31\" -DINSTALL_PREFIX=\"\" 
-DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" 
-DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" 
-DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" 
-DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" 
-DASTMODDIR=\"/usr/lib/asterisk/modules\" 
-DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     
-DNEW_PRI_HANGUP    -c -o asterisk.o asterisk.c
asterisk.c: In function `set_priority':
asterisk.c:377: storage size of `sched' isn't known
asterisk.c:384: warning: implicit declaration of function 
`sched_setscheduler'
asterisk.c:384: `SCHED_RR' undeclared (first use in this function)
asterisk.c:384: (Each undeclared identifier is reported only once
asterisk.c:384: for each function it appears in.)
asterisk.c:392: `SCHED_OTHER' undeclared (first use in this function)
asterisk.c:377: warning: unused variable `sched'
make: *** [asterisk.o] Error 1


It seems that the structure sched_param is not defined anywhere.  I did 
find a definition of sched_param in /usr/include/linux/sched.h but that 
file is not included.  When I tried to include it, I ended up with one 
include file after another I was having to add, and then they were 
conflicting over redefinitions, etc...

Where is Asterisk normally expecting to find the definition of struct 
sched_param?

Thanks

- Matt





More information about the asterisk-users mailing list