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
compilation of Modules/python.c fails on OpenBSD #48396
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/warsaw'closed_at=<Date2008-10-19.14:15:50.453>created_at=<Date2008-10-19.12:10:32.091>labels= ['interpreter-core', 'build', 'release-blocker']
title='compilation of Modules/python.c fails on OpenBSD'updated_at=<Date2008-10-19.14:15:50.441>user='https://bugs.python.org/djmdjm'
Compilation of 3.0rc1 Modules/python.c fails on OpenBSD with the
following error. The attached patch fixes things by explicitly casting
PyMem_Malloc's return value
c++ -pthread -c -fno-strict-aliasing -DNDEBUG -O2 -pipe
-DTHREAD_STACK_SIZE=0x20000 -fPIC -I. -IInclude -I./Include
-DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c Modules/python.c: In function int main(int, char**)': [Modules/python.c:20](https://github.com/python/cpython/blob/main/Modules/python.c#L20): error: invalid conversion from void*' to wchar_t**' [Modules/python.c:22](https://github.com/python/cpython/blob/main/Modules/python.c#L22): error: invalid conversion from void*' to wchar_t**' [Modules/python.c:57](https://github.com/python/cpython/blob/main/Modules/python.c#L57): error: invalid conversion from void*' to `wchar_t*'
Activity
djmdjm commentedon Oct 19, 2008
Compilation of 3.0rc1 Modules/python.c fails on OpenBSD with the
following error. The attached patch fixes things by explicitly casting
PyMem_Malloc's return value
c++ -pthread -c -fno-strict-aliasing -DNDEBUG -O2 -pipe
-DTHREAD_STACK_SIZE=0x20000 -fPIC -I. -IInclude -I./Include
-DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
Modules/python.c: In function
int main(int, char**)': [Modules/python.c:20](https://github.com/python/cpython/blob/main/Modules/python.c#L20): error: invalid conversion fromvoid*' towchar_t**' [Modules/python.c:22](https://github.com/python/cpython/blob/main/Modules/python.c#L22): error: invalid conversion fromvoid*' towchar_t**' [Modules/python.c:57](https://github.com/python/cpython/blob/main/Modules/python.c#L57): error: invalid conversion fromvoid*' to `wchar_t*'tiran commentedon Oct 19, 2008
Thanks! The patch looks good.
Next time please use either the .diff or .patch extension. It makes it
easier to review the patch.
benjaminp commentedon Oct 19, 2008
Fixed in r66976.