This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients brian.curtin, eric.araujo, skrah
Date 2010-08-29.17:10:35
SpamBayes Score 1.2498067e-06
Marked as misclassified No
Message-id <1283101838.76.0.73949668593.issue9709@psf.upfronthosting.co.za>
In-reply-to
Content
On Windows, the initfunc of a C extension is exported twice, as
seen here:

test_distutils
xxmodule.c
xxmodule.obj : warning LNK4197: export 'initxx' specified multiple times; using first specification


First export: pyport.h: #define PyMODINIT_FUNC __declspec(dllexport) void

Second export: Specified on the command line with /EXPORT

The code responsible for adding the initfunc name to ext.export_symbols
is in build_ext.py:get_export_symbols. I'm not sure if it could be
removed, since older extensions might not use PyMODINIT_FUNC.

If it can't be removed, perhaps PyMODINIT_FUNC could be specified
simply as void.
History
Date User Action Args
2010-08-29 17:10:38skrahsetrecipients: + skrah, eric.araujo, brian.curtin
2010-08-29 17:10:38skrahsetmessageid: <1283101838.76.0.73949668593.issue9709@psf.upfronthosting.co.za>
2010-08-29 17:10:37skrahlinkissue9709 messages
2010-08-29 17:10:35skrahcreate