[Zope] ZMySQLDA Problem

Steve Spicklemire steve@spvi.com
Sun, 25 Nov 2001 04:26:05 -0500


Ben,

Use MySQL-python:

http://sourceforge.net/projects/mysql-python

It works pretty much out of the box in my experience!

-steve



On Saturday, November 24, 2001, at 11:46 PM, Ben Ocean wrote:

> Hi;
> Does anyone know how to get this to work? This is my second request for 
> help. Please.
>
> I followed the instructions to install ZMySQLDA but ran into problems. 
> First up, it appears that I do have the necessary python modules:
>
> [root@hermes i386]# rpm -qa|grep MySQL
> MySQL-client-3.23.42-1
> MySQL-3.23.42-1
> MySQL-devel-3.23.42-1
>
> ...and make -f Makefile.pre.in boot goes smoothly, but when I try make 
> I get this:
>
> [root@hermes src]# make
> gcc -fPIC -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1 
> -I/usr/include/python2.1 -DHAVE_CONFIG_H  -I/usr/local/mysql/include 
> -I/usr/include/mysql -c ././MySQLmodule.c -o ./MySQLmodule.o
> ././MySQLmodule.c:199: warning: function declaration isn't a prototype
> ././MySQLmodule.c: In function `clear_channel':
> ././MySQLmodule.c:204: warning: suggest parentheses around assignment 
> used as truth value
> ././MySQLmodule.c: At top level:
> ././MySQLmodule.c:217: warning: function declaration isn't a prototype
> ././MySQLmodule.c:229: warning: function declaration isn't a prototype
> ././MySQLmodule.c: In function `pythonify_row':
> ././MySQLmodule.c:238: warning: assignment from incompatible pointer 
> type
> ././MySQLmodule.c: At top level:
> ././MySQLmodule.c:339: warning: function declaration isn't a prototype
> ././MySQLmodule.c: In function `pythonify_res':
> ././MySQLmodule.c:344: warning: `thisrow' might be used uninitialized 
> in this function
> ././MySQLmodule.c: At top level:
> ././MySQLmodule.c:373: warning: function declaration isn't a prototype
> ././MySQLmodule.c: In function `pythonify_res_fields':
> ././MySQLmodule.c:384: invalid lvalue in unary `&'
> ././MySQLmodule.c:378: warning: `tf' might be used uninitialized in 
> this function
> ././MySQLmodule.c: At top level:
> ././MySQLmodule.c:483: warning: function declaration isn't a prototype
> ././MySQLmodule.c:502: warning: function declaration isn't a prototype
> ././MySQLmodule.c:530: warning: function declaration isn't a prototype
> ././MySQLmodule.c:562: warning: function declaration isn't a prototype
> ././MySQLmodule.c:580: warning: function declaration isn't a prototype
> ././MySQLmodule.c:607: warning: function declaration isn't a prototype
> ././MySQLmodule.c:634: warning: function declaration isn't a prototype
> ././MySQLmodule.c:662: warning: function declaration isn't a prototype
> ././MySQLmodule.c:688: warning: function declaration isn't a prototype
> ././MySQLmodule.c:722: warning: function declaration isn't a prototype
> ././MySQLmodule.c:734: warning: function declaration isn't a prototype
> ././MySQLmodule.c:753: warning: function declaration isn't a prototype
> ././MySQLmodule.c:767: warning: function declaration isn't a prototype
> ././MySQLmodule.c:779: warning: function declaration isn't a prototype
> ././MySQLmodule.c:796: warning: function declaration isn't a prototype
> ././MySQLmodule.c: In function `DBH_clientinfo':
> ././MySQLmodule.c:799: warning: unused variable `info'
> ././MySQLmodule.c: At top level:
> ././MySQLmodule.c:815: warning: function declaration isn't a prototype
> ././MySQLmodule.c:832: warning: function declaration isn't a prototype
> ././MySQLmodule.c:849: warning: function declaration isn't a prototype
> ././MySQLmodule.c:866: warning: function declaration isn't a prototype
> ././MySQLmodule.c:885: warning: function declaration isn't a prototype
> ././MySQLmodule.c:902: warning: function declaration isn't a prototype
> ././MySQLmodule.c:920: warning: function declaration isn't a prototype
> ././MySQLmodule.c:973: warning: function declaration isn't a prototype
> ././MySQLmodule.c:986: warning: function declaration isn't a prototype
> ././MySQLmodule.c:994: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1032: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1040: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1070: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1085: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1102: warning: function declaration isn't a prototype
> ././MySQLmodule.c: In function `STH_fetchdict':
> ././MySQLmodule.c:1125: invalid lvalue in unary `&'
> ././MySQLmodule.c:1147: invalid lvalue in unary `&'
> ././MySQLmodule.c:1111: warning: `tf' might be used uninitialized in 
> this function
> ././MySQLmodule.c: At top level:
> ././MySQLmodule.c:1176: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1192: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1201: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1210: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1225: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1234: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1257: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1265: warning: function declaration isn't a prototype
> ././MySQLmodule.c:1296: warning: function declaration isn't a prototype
> make: *** [MySQLmodule.o] Error 1
>
> What are all these warnings and what have I done wrong?
> TIA,
> BenO
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )