sys/sched.h: present but cannot be compiled

Gary Gatten Ggatten at
Fri May 29 20:06:01 UTC 2009

On 6.0 RELEASE I keep getting this error.  I've read a bunch of links
and tried tweaking some source to no avail.  Any help resolving this
would be appreciated.  It sounds kinda bad to me, but things are working
*OK*....  I don't like warnings, let alone those that have to do with
scheduling and threads...


$ grep sched.h config.log

configure:33355: checking sched.h usability

configure:33400: checking sched.h presence

configure:33471: checking for sched.h

configure:33355: checking sys/sched.h usability

/usr/include/sys/sched.h: In function `sched_pin':

/usr/include/sys/sched.h:103: error: `curthread' undeclared (first use
in this function)

/usr/include/sys/sched.h:103: error: (Each undeclared identifier is
reported only once

/usr/include/sys/sched.h:103: error: for each function it appears in.)

/usr/include/sys/sched.h: In function `sched_unpin':

/usr/include/sys/sched.h:109: error: `curthread' undeclared (first use
in this function)

| #include <sys/sched.h>

configure:33400: checking sys/sched.h presence

configure:33449: WARNING: sys/sched.h: present but cannot be compiled

configure:33451: WARNING: sys/sched.h:     check for missing
prerequisite headers?

configure:33453: WARNING: sys/sched.h: see the Autoconf documentation

configure:33455: WARNING: sys/sched.h:     section "Present But Cannot
Be Compiled"

configure:33457: WARNING: sys/sched.h: proceeding with the
preprocessor's result

configure:33459: WARNING: sys/sched.h: in the future, the compiler will
take precedence

<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'>
"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."

More information about the freebsd-questions mailing list