[Zope] ZMySQLDA compile error

Andy Dustman andy@dustman.net
27 Dec 2001 01:06:42 -0500


On Sun, 2001-12-23 at 08:26, Oleg Broytmann wrote:
> Hi!
> 
>    You are trying to compile very very old and outdated sources.
> MySQLmodule is ling dead. Long live MySQLdb!

And as a side note: MySQLmodule.c doesn't compile against MySQL-3.23,
and maybe not against 3.22 either, as it was designed for 3.21, which is
very old. Some of the things that were macros then became functions, or
perhaps vice versa.

MySQLdb (MySQL-python) works with 3.22 up to and including 4.0.

> > Stephan Goeldi writes:
> >  > I installed and compiled MySQL-Python successfully in my Zope 2.4.3 tree. 
> >  > Afterwards I start compiling ZMySQLDA with "make -f Makefile.pre.in boot" 
> >  > which runs without error. Then I start "make" and get this output:
> >  > 
> >  > gcc -fPIC  -I/usr/local/mysql/include -I/usr/include/mysql -g -O2 
> >  > -I/usr/include
> >  > /python1.5 -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./MySQLmodule.c
> >  > ./MySQLmodule.c: In function `pythonify_row':
> >  > ./MySQLmodule.c:238: warning: assignment from incompatible pointer type
> >  > ./MySQLmodule.c: In function `pythonify_res_fields':
> >  > ./MySQLmodule.c:384: invalid lvalue in unary `&'
> >  > ./MySQLmodule.c: In function `STH_fetchdict':
> >  > ./MySQLmodule.c:1125: invalid lvalue in unary `&'
> >  > ./MySQLmodule.c:1147: invalid lvalue in unary `&'
> >  > make: *** [MySQLmodule.o] Error 1

-- 
Andy Dustman         PGP: 0x930B8AB6
    @       .net     http://dustman.net/andy
You can have my keys when you pry them from my dead, cold neurons.