[issue4146] compilation of Modules/python.c fails on OpenBSD

Damien Miller report at bugs.python.org
Sun Oct 19 14:11:32 CEST 2008


New submission from Damien Miller <djmdjm at users.sourceforge.net>:

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: error: invalid conversion from `void*' to `wchar_t**'
Modules/python.c:22: error: invalid conversion from `void*' to `wchar_t**'
Modules/python.c:57: error: invalid conversion from `void*' to `wchar_t*'

----------
components: Interpreter Core
files: patch-Modules_python_c
messages: 74973
nosy: djmdjm
severity: normal
status: open
title: compilation of Modules/python.c fails on OpenBSD
type: compile error
versions: Python 3.0
Added file: http://bugs.python.org/file11830/patch-Modules_python_c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4146>
_______________________________________


More information about the Python-bugs-list mailing list