[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2014-09-30 Thread STINNER Victor
STINNER Victor added the comment: > g++ (...) > Modules/python.c:60: error: invalid conversion from 'void*' to 'wchar_t*'*** > Error code 1 This line was part of the function char2wchar() which was moved to Python/fileutils.c (and renamed to _Py_char2wchar). Since "configure --with-cxx_main"

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2014-09-30 Thread Mark Lawrence
Mark Lawrence added the comment: Is this out of date as the only buildbot I could find is running OpenBSD 5.5? -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-20 Thread Georg Brandl
Georg Brandl added the comment: This is the old issue of casting the result of malloc() -- frowned upon in C, but required in C++. Looking at the Python sources, most uses of PyMem_Malloc seem to have the cast, so it doesn't seem wrong to add one here (where it actually can be configured to

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I ran the build "without" cxx_main, I did _not_ see the same error. -- ___ Python tracker ___ __

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I understand, Ill run it without cxx_main option tonight. -- ___ Python tracker ___ ___ Python-b

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: I wasn't really discussing (yet) whether this is a bug. I was just trying to find out what specifically made you use this configure option. The need for it should have gone away ten years ago or so. -- ___ Python

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: You may be correct, (since I have not tested it), but isn't the error that gcc complains about, an issue? a minor one I am sure. I have gotten around it by just updating the file. Correct me if I am wrong here please, --with-cxx_main is not a supported op

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: It should certainly work around the problem you are reporting. -- ___ Python tracker ___ ___ Pytho

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-08 Thread Prabhu Gurumurthy
Prabhu Gurumurthy added the comment: I was building it just the way python2.x is being built, should I try it without cxx-main? But, does it solve the actual problem? -- ___ Python tracker ___

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Out of curiosity: why are you building with --with-cxx_main? -- nosy: +loewis ___ Python tracker ___ _

[issue10349] Error in Module/python.c when building on OpenBSD 4.8

2010-11-07 Thread Prabhu Gurumurthy
New submission from Prabhu Gurumurthy : When manually building on OpenBSD 4.8 using gcc 4.2.1, I got the following error: g++ -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I/usr/home/pgurumur/temp/Python-3.1.2/Include -DTHREAD_STACK_SIZE=0x