[New-bugs-announce] [issue28000] Build fails on AIX with _LINUX_SOURCE_COMPAT flag

Matthieu S report at bugs.python.org
Wed Sep 7 11:21:43 EDT 2016


New submission from Matthieu S:

Python build fails on AIX when using the _LINUX_SOURCE_COMPAT flag.

When using this flag, the gethostbyname_r subroutine has 6 parameters instead of 3, like on Linux, but Modules/socketmodule.c always expects a gethostbyname_r subroutine with only 3 parameters on AIX.

The attached patch allows to build with this flag. It has been tested for Python 3.5.1 and 3.5.2 with GCC and XLC compilers.

----------
components: Extension Modules
files: Python-3.5.1-compat.patch
keywords: patch
messages: 274819
nosy: sarterm
priority: normal
severity: normal
status: open
title: Build fails on AIX with _LINUX_SOURCE_COMPAT flag
type: compile error
versions: Python 3.5
Added file: http://bugs.python.org/file44440/Python-3.5.1-compat.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28000>
_______________________________________


More information about the New-bugs-announce mailing list