Issue 16779: Fix compiler warning when building extension modules on 64-bit Windows (original) (raw)

Issue16779

Created on 2012-12-25 18:38 by jkloth, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
msvc9compiler.diff jkloth,2012-12-25 18:38
Messages (3)
msg178160 - (view) Author: Jeremy Kloth (jkloth) * Date: 2012-12-25 18:38
The 64-bit linker doesn't mangle the dllexport'ed module init function (from PyMODINIT_FUNC) so it causes an exported name conflict. We cannot just remove that name from export_symbols as the module may not have used PyMODINIT_FUNC on its init function. The attached patch "fixes" the problem by suppressing the warning. I personally would prefer the "pure" approach by assuming that the module initialization function would be required to be declared by PyMODINIT_FUNC and therefore the symbol would not need to be exported on the command line.
msg178215 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2012-12-26 14:00
I think this is the same as #9709. Please just reopen if it isn't.
msg386392 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:26
Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools
History
Date User Action Args
2022-04-11 14:57:39 admin set github: 60983
2021-02-03 18:26:33 steve.dower set status: open -> closednosy: + steve.dowermessages: + resolution: out of datestage: patch review -> resolved
2014-10-14 16:17:41 skrah set nosy: - skrah
2014-02-02 17:07:08 skrah set stage: needs patch -> patch review
2014-02-02 17:05:49 skrah set status: closed -> openassignee: eric.araujo -> resolution: duplicate -> (no value)stage: resolved -> needs patch
2012-12-26 14:00:20 skrah set status: open -> closedsuperseder: test_distutils warning: initfunc exported twice on Windowsnosy: + skrahmessages: + resolution: duplicatestage: resolved
2012-12-25 18:38:54 jkloth create