Re: Python 2.5 compile on x86_64



On Fri, 2006-12-15 at 11:34 +0100, Denis Leroy wrote:
Since we updated to python 2.5, glom 1.2.2 is failing to build on 
x86_64. I'm a bit short on time and will not have time to look at this 
in depth before a few days, so if anyone has an easy fix for this


py_glom_related.cc:194: error: invalid conversion from 'int 
(*)(PyObject*)' to 'Py_ssize_t (*)(PyObject*)'
py_glom_record.cc: In function 'PyObject* 
Glom::Record_tp_as_mapping_getitem(Glom::PyGlomRecord*, PyObject*)':
py_glom_record.cc:197: warning: format '%d' expects type 'int', but 
argument 4 has type 'size_t'
py_glom_record.cc: At global scope:
py_glom_record.cc:234: error: invalid conversion from 'int 
(*)(PyObject*)' to 'Py_ssize_t (*)(PyObject*)'
make[5]: *** [py_glom_record.lo] Error 1

This patch, or something like it, might fix it. It doesn't build for me
(on Ubuntu Edgy) with Python 2.4.3, because Py_ssize_t is not defined.


-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com

Attachment: glom_python25.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]