[issue12871] Disable sched_get_priority_min/max if Python is compiled without threads

STINNER Victor report at bugs.python.org
Wed Aug 31 20:03:42 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

If Pyton is configured without thread support (--without-threads), the compilation fails on OpenBSD :

$ make
[...]
./Modules/posixmodule.c:4582: undefined reference to `sched_get_priority_min'
libpython3.3m.a(posixmodule.o)(.text+0x430b): In function `posix_sched_get_priority_max':
./Modules/posixmodule.c:4565: undefined reference to `sched_get_priority_max'
collect2: ld returned 1 exit status
*** Error code 1

I didn't try on Linux, but I suppose that the issue is not specific to OpenBSD.

----------
components: Extension Modules
messages: 143270
nosy: haypo, rpointel
priority: normal
severity: normal
status: open
title: Disable sched_get_priority_min/max if Python is compiled without threads
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12871>
_______________________________________


More information about the Python-bugs-list mailing list