New submission from Torne Wuff <torne-pythonb...@wolfpuppy.org.uk>:

On systems without dup2(), Python tries to compile its own from Python/dup2.c, 
but this file refers to close() without including unistd.h. This causes it to 
not compile with newlib (and possibly other C libraries, presumably it was 
relying on fcntl.h indirectly including it?).

This is probably true of all older versions as well, but Python 2.x doesn't 
appear to actually bother to compile dup2.c even if the system lacks dup2, so 
it doesn't actually cause a build error there.

(building python for a semi-freestanding environment is "fun")

----------
components: Interpreter Core
files: fix_dup2.patch
keywords: patch
messages: 108445
nosy: torne
priority: normal
severity: normal
status: open
title: Python/dup2.c doesn't compile on (at least) newlib
type: compile error
versions: Python 3.1
Added file: http://bugs.python.org/file17753/fix_dup2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9060>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to