You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_socket module cross-compilation error on android-24 #72724
On the latest Android API level (android-24), the if_nameindex function is now found by configure in Android libc. But the if_nameindex function and structure are still not defined in the Android net/if.h header.
These changes break the darwin platform, socket.if_nameindex() is not defined anymore. On Darwin, 'net/if.h' requires that 'sys/socket.h' be included beforehand (see the autoconf documentation).
Activity
xdegaye commentedon Oct 26, 2016
On the latest Android API level (android-24), the if_nameindex function is now found by configure in Android libc. But the if_nameindex function and structure are still not defined in the Android net/if.h header.
The compilation fails with:
xdegaye commentedon Nov 8, 2016
Patch attached.
python-dev commentedon Dec 21, 2016
New changeset e248bfb0f520 by Xavier de Gaye in branch '3.6':
Issue bpo-28538: Fix the compilation error that occurs because if_nameindex() is
https://hg.python.org/cpython/rev/e248bfb0f520
New changeset 55bf0b79ec55 by Xavier de Gaye in branch 'default':
Issue bpo-28538: Merge 3.6.
https://hg.python.org/cpython/rev/55bf0b79ec55
xdegaye commentedon Dec 21, 2016
These changes break the darwin platform, socket.if_nameindex() is not defined anymore. On Darwin, 'net/if.h' requires that 'sys/socket.h' be included beforehand (see the autoconf documentation).
python-dev commentedon Dec 21, 2016
New changeset f34dac552ad8 by Xavier de Gaye in branch '3.6':
Issue bpo-28538: On Darwin net/if.h requires that sys/socket.h be included beforehand.
https://hg.python.org/cpython/rev/f34dac552ad8
New changeset c568b6ac5e89 by Xavier de Gaye in branch 'default':
Issue bpo-28538: Merge 3.6.
https://hg.python.org/cpython/rev/c568b6ac5e89
xdegaye commentedon Nov 20, 2017
These changes are not needed anymore now that Unified Headers are supported by android-ndk-r14 (see bpo-29040)
xdegaye commentedon Nov 23, 2017
New changeset 5ad7ef8 by xdegaye in branch 'master':
bpo-28538: Revert all the changes (now using Android Unified Headers) (GH-4479)
5ad7ef8