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.TCP_* no longer available with cygwin 3.1.6+ #85546
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2021-10-20.17:15:19.285>created_at=<Date2020-07-23.07:51:44.046>labels= ['build', '3.11']
title='socket.TCP_* no longer available with cygwin 3.1.6+'updated_at=<Date2021-10-20.17:15:24.662>user='https://github.com/lazka'
This leads to socket.TCP_NODELAY for example not being available anymore.
git blame leads me to b5daaed introducing this special case, which isn't very helpful. I'd suggest to just remove the cygwin check and always include it (which works fine on my machine)
Activity
lazka commentedon Jul 23, 2020
The TCP macros are provided by netinet/tcp.h, which for some reason is skipped here:
cpython/Modules/socketmodule.h
Line 11 in 592527f
Until cygwin 3.1.6 these macros were also provided by sys/socket.h, but this got removed in https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=e037192b505b4f233fca9a6deafc9797210f6693
This leads to socket.TCP_NODELAY for example not being available anymore.
git blame leads me to b5daaed introducing this special case, which isn't very helpful. I'd suggest to just remove the cygwin check and always include it (which works fine on my machine)
Downstream bug report for extra context: msys2/MSYS2-packages#2050
matzeri commentedon Jan 2, 2021
The Analysis is correct.
Removing the test for CYGWIN and always include the
<netinet/tcp.h>
solved the problem building all python (3.6,3.7,3.8) packages
https://sourceware.org/pipermail/cygwin-apps/2020-December/040845.html
https://sourceware.org/pipermail/cygwin-announce/2020-December/009853.html
attached patch used on the build.
Similar one was applied to the rebuild of 2.7.18
lazka commentedon Feb 13, 2021
ping. The PR looks good to me.
iritkatriel commentedon Oct 20, 2021
New changeset d8e1819 by Zackery Spytz in branch 'main':
bpo-41374: Remove obsolete exclusion of netinet/tcp.h on Cygwin (GH-21649)
d8e1819