[Zope-dev] RE: Problem of compile ZMySQLDA.!

Joachim Schmitz js@ac-copy.net
Fri, 21 Jan 2000 20:57:44 +0100 (CET)


Hi I just had the same problem, aparently the mysql.h was changed between

MySQL V 3.22-22 and 3.22-30. If you remove the "&" in the lines 384,1125
and 1147 it compiles fine on RedHat 6.1.

Victor.Zhai wrote:

>When I compile the ZMySqlDa in Proucts/Mysql/src/.
>.......

>gcc -fPIC  -I/home/zgx/mysql/include/mysql -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
>
>
>What is the problem?
>Thanks a lot!



Mit freundlichen Grüßen

Joachim Schmitz

WWW-Consultant

email: js@ac-copy.net
tel: +49-241-89491-0
fax: +49-241-89491-29