[Zope] - Zope-1.9.0 + Python-1.5.2b1 = BOOM
Andy Dustman
Andy Dustman <adustman@comstar.net>
Thu, 24 Dec 1998 16:52:57 -0500 (EST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
---187888452-2009856136-914536377=:23785
Content-Type: TEXT/PLAIN; charset=US-ASCII
When compiling, I get:
./../Components/ExtensionClass/ThreadLock.c:75: parse error before `type_lock'
Apparently this is due to a renaming in Python between 1.5.1 and 1.5.2b1:
thread.h -> pythread.h (which the code does look for) but apparently there
has now been a renaming of type_lock -> PyThread_type_lock (also
type_sema -> PyThread_type_sema) and free_lock -> PyThread_free_lock. I'm
guessing the first change came with the 1.5.2a series and the latter came
with 1.5.2b; 1.5.2b1's pythread.h definitely does not have all the
renaming stuff in 1.5.1. Luckily I still had a 1.5.1 source tree lying
around. Making the changes above SHOULD work for 1.5.1 as well, however,
since it does do a bunch of renaming in thread.h, but if you're using
1.5.1, you probably don't need the patch.
Patch attached.
--
Andy Dustman You should always say "spam" and "eggs"
ComStar Communications Corp. instead of "foo" and "bar"
(706) 549-7689 | PGP KeyID=0xC72F3F1D in Python examples. (Mark Lutz)
---187888452-2009856136-914536377=:23785
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="threadlock.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.3.96.981224165257.23785E@kenny.comstar.net>
Content-Description:
LS0tIFpvcGUtMS45LjAtc3JjL2xpYi9Db21wb25lbnRzL0V4dGVuc2lvbkNs
YXNzL1RocmVhZExvY2suYy5vcmlnCVR1ZSBOb3YgMTcgMTY6NDM6NTAgMTk5
OA0KKysrIFpvcGUtMS45LjAtc3JjL2xpYi9Db21wb25lbnRzL0V4dGVuc2lv
bkNsYXNzL1RocmVhZExvY2suYwlUaHUgRGVjIDI0IDE2OjQxOjIzIDE5OTgN
CkBAIC03Miw3ICs3Miw3IEBADQogICBpbnQgY291bnQ7DQogICBs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