You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python 2.6 fails to build with Py_NO_ENABLE_SHARED #48744
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/loewis'closed_at=<Date2009-02-02.15:34:26.756>created_at=<Date2008-12-02.20:46:50.065>labels= ['build', 'OS-windows']
title='Python 2.6 fails to build with Py_NO_ENABLE_SHARED'updated_at=<Date2009-02-02.15:34:26.755>user='https://bugs.python.org/snaury'
When building python 2.6 with Py_NO_ENABLE_SHARED compilation fails on PC/getpathp.c, because it uses PyWin_DLLVersionString and
PyWin_DLLhModule unconditionally, which are implemented in PC/dl_nt.c
only when Py_ENABLE_SHARED is defined. The attached patch fixes the
problem by wrapping dependent parts in if #ifdef Py_ENABLE_SHARED/#endif.
Activity
snaury commentedon Dec 2, 2008
When building python 2.6 with Py_NO_ENABLE_SHARED compilation fails on
PC/getpathp.c, because it uses PyWin_DLLVersionString and
PyWin_DLLhModule unconditionally, which are implemented in PC/dl_nt.c
only when Py_ENABLE_SHARED is defined. The attached patch fixes the
problem by wrapping dependent parts in if #ifdef Py_ENABLE_SHARED/#endif.
loewis commentedon Feb 2, 2009
Thanks for the patch. Committed as r69205, r69206, r69207, r69208.