Title: Python 3.7.3 win 64bit - unresolved external symbol PyOS_AfterFork_Child
Type: compile error Stage: resolved
Components: Library (Lib), Windows Versions: Python 3.7
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: Massimo Fidanza, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2019-06-13 08:21 by Massimo Fidanza, last changed 2019-06-13 16:23 by steve.dower. This issue is now closed.

Messages (2)
msg345474 - (view) Author: Massimo Fidanza (Massimo Fidanza) Date: 2019-06-13 08:21
I need to build mod_wsgi under Windows 10 64bit, but I get a linking error
    mod_wsgi.obj : error LNK2001: unresolved external symbol PyOS_AfterFork_Child
    build\\mod_wsgi\server\mod_wsgi.cp37-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120

I checked my installation and found that inside include\intrcheck.h, PyOS_AfterFork_Child is declared, but if I run dumpbin /exports on libs\* (libpython37.a, python3.lib and python37.lib) there is only PyOS_AfterFork exported, and not PyOS_AfterFork_Child, PyOS_AfterFork_Parent and PyOS_BeforeFork. I have installed Python3.7.3 using "Windows x86-64 executable installer" (python-3.7.3-amd64.exe) downloaded from
msg345526 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2019-06-13 16:23
Windows does not have fork, and so the fork functionality is not built into it (PyOS_AfterFork() is empty).

You will need to report this to mod_wsgi to be able to build without fork support.
Date User Action Args
2019-06-13 16:23:15steve.dowersetstatus: open -> closed
resolution: third party
messages: + msg345526

stage: resolved
2019-06-13 08:24:46xtreaksetnosy: + paul.moore, tim.golden, zach.ware, steve.dower
components: + Windows
2019-06-13 08:21:40Massimo Fidanzacreate