classification
Title: Fix compiler warning when building extension modules on 64-bit Windows
Type: Stage: patch review
Components: Build, Distutils Versions: Python 3.3, Python 3.4, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder: test_distutils warning: initfunc exported twice on Windows
View: 9709
Assigned To: Nosy List: eric.araujo, jkloth, tarek
Priority: normal Keywords: patch

Created on 2012-12-25 18:38 by jkloth, last changed 2014-10-14 16:17 by skrah.

Files
File name Uploaded Description Edit
msvc9compiler.diff jkloth, 2012-12-25 18:38
Messages (2)
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.
History
Date User Action Args
2014-10-14 16:17:41skrahsetnosy: - skrah
2014-02-02 17:07:08skrahsetstage: needs patch -> patch review
2014-02-02 17:05:49skrahsetstatus: closed -> open
assignee: eric.araujo ->
resolution: duplicate ->
stage: resolved -> needs patch
2012-12-26 14:00:20skrahsetstatus: open -> closed

superseder: test_distutils warning: initfunc exported twice on Windows

nosy: + skrah
messages: + msg178215
resolution: duplicate
stage: resolved
2012-12-25 18:38:54jklothcreate