[Zope] ZMySQLDA-2.0.9b1 released
Matthew T. Kromer
matt@zope.com
Fri, 01 Feb 2002 09:12:10 -0500
Harald Koschinski wrote:
> MySQLdb-0.9.2a2 is not compiling :-((
>
> intranet:/usr/local/opt/Zope/products/MySQL-python-0.9.2a2 # python
> setup.py build
> [...]
> /usr/i486-suse-linux/bin/ld: cannot find -lmysqlclient_r
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
>
> No Problems with 0.9.1 on the same mashine
>
But the 0.9.1 you built is a time bomb waiting to blow up on you. If
you don't link with the reentrant mysqlclient libraries your python
adapater isn't thread safe.
I expect you can edit the Setup.py file and change the "use threaded
client libraries" switch to use the non-threaded library. If you do
that and use it in Zope though, you are asking for crashes.