[LAU] Python3 PyAlsa Build fails

Christoph Kuhr christoph.kuhr at web.de
Wed Mar 20 11:42:16 UTC 2013


Hi, thanks for your help!
> #ifndef Py_TYPE
>      #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
> #endif
worked, with replacing *self->ob_type* by *Py_TYPE(self)* in any C-file.

now I ran into another compilation problem, which I could not find any 
solution to:

pyalsa/alsaseq.c:505:13: error: 'PyInt_Type' undeclared here (not in a 
function)
pyalsa/alsaseq.c:508:3: error: 'Py_TPFLAGS_HAVE_GETCHARBUFFER' 
undeclared here (not in a function)
pyalsa/alsaseq.c:509:5: error: 'Py_TPFLAGS_HAVE_CLASS' undeclared here 
(not in a function)
pyalsa/alsaseq.c:510:5: error: 'Py_TPFLAGS_CHECKTYPES' undeclared here 
(not in a function)

Do you have any suggestions?

Regards,
Ck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20130320/8825b3fc/attachment.html>


More information about the Linux-audio-user mailing list