This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients neologix, pitrou, python-dev, rosslagerwall, rpointel, vstinner
Date 2011-09-07.20:34:47
SpamBayes Score 5.0320347e-07
Marked as misclassified No
Message-id <1315427687.98.0.340992838972.issue12852@psf.upfronthosting.co.za>
In-reply-to
Content
> try with _POSIX_C_SOURCE set to 200809L and _XOPEN_SOURCE to 700

_POSIX_C_SOURCE value is set automatically depending on _XOPEN_SOURCE value. I chose to set _XOPEN_SOURCE to 700, instead of 600: it works on OpenBSD 5.0. I don't know if _XOPEN_SOURCE=700 is supported by old platforms.

I don't want to touch such sensitive thing like configure in stable releases.

@rpointel: You can backport manually the fix into OpenBSD for Python 3.2, or (safer?) patch pyconfig.h to set _XOPEN_SOURCE to 700.

According to configure.in, it was not possible to set _XOPEN_SOURCE on OpenBSD < 4.7:

  # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
  # even though select is a POSIX function. Reported by J. Ribbens.
  # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
  # In addition, Stefan Krah confirms that issue #1244610 exists through
  # OpenBSD 4.6, but is fixed in 4.7.

@rpointel: Does the fix work for you? If yes, I will close the issue.
History
Date User Action Args
2011-09-07 20:34:48vstinnersetrecipients: + vstinner, pitrou, neologix, rosslagerwall, python-dev, rpointel
2011-09-07 20:34:47vstinnersetmessageid: <1315427687.98.0.340992838972.issue12852@psf.upfronthosting.co.za>
2011-09-07 20:34:47vstinnerlinkissue12852 messages
2011-09-07 20:34:47vstinnercreate