[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-18 Thread Hervé Coatanhay

New submission from Hervé Coatanhay :

Linux Version:
2.6.18-238.19.1.el5 / CentOS release 5.8 (Final)

On changeset 75803:b26056192653 , I have the following compilation error:

gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -IInclude -I. -I./Include -I/usr/local/include 
-I/home/proexp/cpython2 -c /home/proexp/cpython2/Modules/_posixsubprocess.c -o 
build/temp.linux-x86_64-3.3/home/proexp/cpython2/Modules/_posixsubprocess.o
/home/proexp/cpython2/Modules/_posixsubprocess.c: In function 
‘_close_open_fd_range_safe’:
/home/proexp/cpython2/Modules/_posixsubprocess.c:207: erreur: ‘O_CLOEXEC’ 
undeclared (first use in this function)
/home/proexp/cpython2/Modules/_posixsubprocess.c:207: erreur: (Each undeclared 
identifier is reported only once
/home/proexp/cpython2/Modules/_posixsubprocess.c:207: erreur: for each function 
it appears in.)


The problem is the too old kernel version provided on CentOS 5 and RHEL 5 whic 
does not support O_CLOEXEC. I join my proposed patch for this issue.

--
components: Build
files: _posixmodule.patch
keywords: patch
messages: 156237
nosy: Alzakath
priority: normal
severity: normal
status: open
title: _posixsubprocess.o compilation error on CentOS 5.8
type: compile error
versions: Python 3.3
Added file: http://bugs.python.org/file24922/_posixmodule.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-18 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset fe1dfc066a38 by Ross Lagerwall in branch 'default':
Issue 14359: Only use O_CLOEXEC in _posixmodule.c if it is defined.
http://hg.python.org/cpython/rev/fe1dfc066a38

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-18 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

please apply this to 3.2 as well.

--
assignee:  -> rosslagerwall
nosy: +gregory.p.smith, rosslagerwall
versions: +Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-18 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 09371e2ae84d by Ross Lagerwall in branch '3.2':
Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined.
http://hg.python.org/cpython/rev/09371e2ae84d

New changeset 0d5fcbfd646f by Ross Lagerwall in branch 'default':
Merge with 3.2 for #14359.
http://hg.python.org/cpython/rev/0d5fcbfd646f

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14359] _posixsubprocess.o compilation error on CentOS 5.8

2012-03-19 Thread Ross Lagerwall

Ross Lagerwall  added the comment:

Thanks!

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com