Zope on OpenBSD 2.8 problem solved
Hi, For those of you wishing to run Zope on OpenBSD 2.8, here is a solution. The reason it doesn't work in the first place is a thread bug in the OpenBSD 2.8 release version. The solution is to use the libc_r from OpenBSD 2.7 for the Zope instance. Thanks to Jason Ish for the howto, I thought I would rewrite it to be more generic and post it to the lists. So, here we go: Python on OpenBSD 2.8 uses /usr/lib/libc_r.so.3.1. libc_r.so.3.1 is from 2.8, libc_r.so.3.0 is from 2.7 and will work. So what we do is to copy the old libc file (if you don't have it, mail me and I'll send it to you) into a directory in the Zope install dir, and add that to the path. Then we rename the old file so the system thinks it is the curent version. In this example, I assume your Zope install is in /usr/local/zope. First, we copy the old library into our Zope dir, and rename it: cp /usr/lib/libc_r.so.3.0 /usr/local/zope/libc_r.so.3.1 Then you should add something like this to the top of your "start" script: export LD_LIBRARY_PATH=/usr/local/zope Start Zope, and you will find that it works fine now. Zope also works fine in the CURRENT tree of OpenBSD, so presumably it will work out-of-the-box on OpenBSD 2.9. This is the safest way of getting it to work at the moment. Happy OpenBSD'ing :) Alexander Limi.
Start Zope, and you will find that it works fine now. Zope also works fine in the CURRENT tree of OpenBSD, so presumably it will work out-of-the-box on OpenBSD 2.9. This is the safest way of getting it to work at the moment.
Did you understand form Jason Ish's message that it should be working with -current or did you compile and test it yourself? I compiled -current last week and it didn't work and there have been no changes to the source since then. Ragnar
Ragnar Beer wrote:
Did you understand form Jason Ish's message that it should be working with -current or did you compile and test it yourself? I compiled -current last week and it didn't work and there have been no changes to the source since then.
I just took his word for it:
- python on this system uses /usr/lib/libc_r.so.3.3
hmm, freaky.. works fine on my -current system.. I remember it being a bitch with Zope 2.2.4. well, the management interface works just fine where it was dying before.
So if it doesn't work, somebody should notify the OpenBSD people. I assume other Python applications than Zope have problems with this? Alexander Limi.
I understood that the workaround he suggested also works with -current. I submitted the bug a couple of days ago. The ID is 1631 if you want to search for it. Ragnar
Ragnar Beer wrote:
Did you understand form Jason Ish's message that it should be working with -current or did you compile and test it yourself? I compiled -current last week and it didn't work and there have been no changes to the source since then.
I just took his word for it:
- python on this system uses /usr/lib/libc_r.so.3.3
hmm, freaky.. works fine on my -current system.. I remember it being a bitch with Zope 2.2.4. well, the management interface works just fine where it was dying before.
So if it doesn't work, somebody should notify the OpenBSD people. I assume other Python applications than Zope have problems with this?
Alexander Limi.
participants (2)
-
Alexander Limi -
Ragnar Beer