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.

classification
Title: unconditional definiton of _BSD_SOURCE breaks builds with g++-4.3
Type: compile error Stage:
Components: Build Versions: Python 2.6, Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: doko, loewis
Priority: high Keywords:

Created on 2007-12-25 14:34 by doko, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg58991 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2007-12-25 14:34
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+.
msg59038 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2007-12-29 18:50
I opted for conditionalizing it to OpenBSD; it was wrong on Linux,
anyway, as _BSD_SOURCE has a different meaning there.

Fixed in r59610 and r59611.
History
Date User Action Args
2022-04-11 14:56:29adminsetgithub: 46040
2007-12-29 18:50:09loewissetstatus: open -> closed
resolution: fixed
messages: + msg59038
2007-12-25 16:44:52christian.heimessetpriority: high
assignee: loewis
2007-12-25 14:35:16dokosetnosy: + loewis
2007-12-25 14:34:27dokocreate