[issue1699] unconditional definiton of _BSD_SOURCE breaks builds with g++-4.3

Matthias Klose report at bugs.python.org
Tue Dec 25 15:34:27 CET 2007


New submission from Matthias Klose:

as seen in the logs from
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=455400

both pyconfig.h and png.h define _BSD_SOURCE, which leads to a build
failure with current GCC from the trunk, when both headers are included
by an extension. Either define it only on OpenBSD, or undefine it if it
is already defined (but pyconfig.h.in is autogenerated).

------------------------------------------------------------------------
r56635 | martin.v.loewis | 2007-07-31 21:54:20 +0200 (Tue, 31 Jul 2007)
| 2 lines

Define _BSD_SOURCE, to get access to POSIX extensions on OpenBSD 4.1+.

----------
components: Build
messages: 58991
nosy: doko
severity: normal
status: open
title: unconditional definiton of _BSD_SOURCE breaks builds with g++-4.3
type: compile error
versions: Python 2.5, Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1699>
__________________________________


More information about the Python-bugs-list mailing list