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 pgurumur
Recipients pgurumur
Date 2010-11-08.06:52:19
SpamBayes Score 5.509156e-05
Marked as misclassified No
Message-id <1289199143.28.0.506984185363.issue10349@psf.upfronthosting.co.za>
In-reply-to
Content
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=0x20000 -fPIC -I/usr/include  -DPy_BUILD_CORE -o Modules/python.o /usr/home/pgurumur/temp/Python-3.1.2/Modules/python.ccc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++/usr/home/pgurumur/temp/Python-3.1.2/Modules/python.c: In function 'wchar_t* char2wchar(char*)':/usr/home/pgurumur/temp/Python-3.1.2/Modules/python.c:60: error: invalid conversion from 'void*' to 'wchar_t*'*** Error code 1

I changed line 60 from:
res = PyMem_Malloc(argsize*sizeof(wchar_t));

to:
res = (wchar_t *)PyMem_Malloc(argsize*sizeof(wchar_t));

I was able to compile it successfully, another thing you would notice is that, -Wstrict-prototypes is not a valid option with g++, (just a warning though)

My configure options:

 /usr/home/pgurumur/temp/Python-3.1.2/configure --with-fpectl --with-threads --srcdir=/usr/home/pgurumur/temp/Python-3.1.2 --enable-ipv6 --enable-shared --with-cxx_main --with-signal-module --prefix=/opt/local
History
Date User Action Args
2010-11-08 06:52:23pgurumursetrecipients: + pgurumur
2010-11-08 06:52:23pgurumursetmessageid: <1289199143.28.0.506984185363.issue10349@psf.upfronthosting.co.za>
2010-11-08 06:52:21pgurumurlinkissue10349 messages
2010-11-08 06:52:19pgurumurcreate