[p4python] Fix for compiling p4python 1.1 with gcc 3.4.6 on rhel464 bit

Robert Cowham robert at vaccaperna.co.uk
Tue Jun 3 03:32:08 PDT 2008


The following is generic and a patch I have applied to the official P4Python
to get it to compile with 2.4
 
// Allow usage of Python 2.4
#if (PY_VERSION_HEX < 0x02050000)
typedef int Py_ssize_t;
#define PyErr_WarnEx(category, msg, stack) PyErr_Warn(category, msg)
#endif
 

  _____  

From: p4python-bounces at perforce.com [mailto:p4python-bounces at perforce.com]
On Behalf Of William Deegan
Sent: 02 June 2008 20:34
To: p4python at perforce.com
Subject: [p4python] Fix for compiling p4python 1.1 with gcc 3.4.6 on rhel464
bit


Greetings,


diff -w P4Clientmodule.cc ../p4python/P4Clientmodule.cc
342c342
<         int pos = 0;
---
>         Py_ssize_t pos = 0;

Seems to get it to compile.
Comments?
-Bill


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.perforce.com/pipermail/p4python/attachments/20080603/7bb3e2fd/attachment-0001.html>


More information about the p4python mailing list