[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-08 Thread Neil Schemenauer
Change by Neil Schemenauer : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-08 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 5741c45acf9b0ce22ff0dbf56322fe0ff16cfcfc by Neil Schemenauer in branch 'master': bpo-35903: Use autoconfig to probe for shm_open() and shm_unlink(). (#11765) https://github.com/python/cpython/commit/5741c45acf9b0ce22ff0dbf56322fe0ff16cfcfc

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-06 Thread Neil Schemenauer
Neil Schemenauer added the comment: Hi Ronald, I tested with my MacBook but I'm not sure what version of the OS. Probably the latest but I can check when I get home. Maybe my comment was not clear. On my MacBook, you don't need librt for shm_open, etc. That sounds like it is the same as

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: @Neil: On what version of macOS did you test? On 10.14.3 with Xcode 10.1 shm_open is in libSystem (that's named libc on most other unixy systems) and there is no library named librt. -- nosy: +ronaldoussoren

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
Neil Schemenauer added the comment: I didn't understand autoconfig well enough but I think I fixed it now. Apparently MacOS is a platform where it has shm_open but you don't need to link with -lrt. The revised 'configure' should handle that correctly now. --

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Davin Potts
Davin Potts added the comment: Agreed that the logic for building that code needs exactly this sort of change. Thanks for the patch! It looks like your patch does not happily detect the dependencies on MacOS for some reason, but all appears well on Windows & Linux. I will have a closer

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +11719, 11720 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +11719, 11720, 11721 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +11719 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35903] Build of posixshmem.c should probe for required OS functions

2019-02-05 Thread Neil Schemenauer
New submission from Neil Schemenauer : The logic in setup.py that determines if _multiprocessing/posixshmem.c should get built is not very robust. I think it is better to use autoconfig to probe for the required functions and libraries. My autoconfig brain cells are a bit fuzzy but I think