[Python-bugs-list] [ python-Bugs-440522 ] Linux/nice() changes break build

noreply@sourceforge.net noreply@sourceforge.net
Wed, 11 Jul 2001 15:37:14 -0700


Bugs item #440522, was opened at 2001-07-11 15:03
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=440522&group_id=5470

Category: Extension Modules
Group: Platform-specific
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Fred L. Drake, Jr. (fdrake)
Assigned to: Thomas Wouters (twouters)
Summary: Linux/nice() changes break build

Initial Comment:
(Perhaps these changes only broke the build for some
versions of Linux; appearantly they helped on other
versions.)

On Mandrake Linux 7.2 (kernel 2.2.17), the posix_nice()
function fails to compile with gcc:

gcc -g -O3 -Wall -Wstrict-prototypes
-Dss_family=__ss_family -Dss_len=__ss_len -I.
-I../Include -DHAVE_CONFIG_H   -c
../Modules/posixmodule.c -o Modules/posixmodule.o
../Modules/posixmodule.c: In function `posix_nice':
../Modules/posixmodule.c:1139: warning: implicit
declaration of function `getpriority'
../Modules/posixmodule.c:1139: `PRIO_PROCESS'
undeclared (first use in this function)
../Modules/posixmodule.c:1139: (Each undeclared
identifier is reported only
once../Modules/posixmodule.c:1139: for each function it
appears in.)
make: *** [Modules/posixmodule.o] Error 1             
                         


----------------------------------------------------------------------

>Comment By: Thomas Wouters (twouters)
Date: 2001-07-11 15:37

Message:
Logged In: YES 
user_id=34209

Fixed in the CVS tree now. Geez, you impatient people just
have no respect for dinner, do you ? Not to mention
crash-and-burn-time at work ;-)


----------------------------------------------------------------------

Comment By: Barry Warsaw (bwarsaw)
Date: 2001-07-11 15:10

Message:
Logged In: YES 
user_id=12800

Ploing!  I just reported this same problem to python-dev. 
Attached is a patch that fixes it for me on my RH6.1-ish
Linux box.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=440522&group_id=5470