[Python-Dev] Broken build

Barry A. Warsaw barry@zope.com
Wed, 19 Sep 2001 00:15:26 -0400


>>>>> "BAW" == Barry A Warsaw <barry@zope.com> writes:

    BAW> Yeah, but posixmodule.c has this bit in it:

    | #ifdef HAVE_NICE
    | #if defined(HAVE_BROKEN_NICE) && defined(HAVE_SYS_RESOURCE_H)
    | #if defined(HAVE_GETPRIORITY) && !defined(PRIO_PROCESS)
    | #include <sys/resource.h>
    | #endif
    | #endif

    BAW> So why isn't sys/resource.h getting included?

...because configure isn't finding it:

checking for sys/resource.h... no

so HAVE_SYS_RESOURCE_H isn't getting defined in pyconfig.h.  It's
there in /usr/include though:

% ls -l /usr/include/sys/resource.h
-rw-r--r--   1 root     root         3185 Sep 20  1999 /usr/include/sys/resource.h

Strange.  More investigation tomorrow.

-Barry