technology@mylinuxisp.com wrote:
I can query mysql and get results from within the python command line.
So that works ok. When I perfomr the make -f Makefile.pre.in boot there is no error.
However when I perfomr the make I get an error as fallows
[root@localhost src]# make 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
I read about the fixed bug [40] Zope Doc_Request: Make failures for ZmySQLDA
I do not know if this is a related issue.
Facts. I installed MySQL rpm 3.22.27-1. I have installed python-MySQLmodule-1.4.0-7.i386.rpm and python python-devel-1.5.2-2.i386.rpm and zope Zope-2.1.1-linux2-x86.tgz. on redhat 6.1 kernel 2.2.12 Thank you for any help
technology.nospam@ylinuxisp.com
I got this same error when I was trying to compile it under Solaris 2.6. My solution was to switch to using MySQLdb instead of MySQLmodule. You can find MySQLdb in the Contributed Products section of www.zope.org. You'll have to patch the ZMySQLDA to be able to use it (the patch is included in the MySQLdb distribution). -- Nick Garcia | ngarcia@codeit.com CodeIt Computing | http://codeit.com