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
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 )
Ben Ocean writes:
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: .... ././MySQLmodule.c: In function `STH_fetchdict': ././MySQLmodule.c:1125: invalid lvalue in unary `&' ././MySQLmodule.c:1147: invalid lvalue in unary `&' The compiler does not like the use of "&" in line 1125 and 1147 of "MySQLmodule.a".
Apparently, your compiler is stricter than the one used to develop the module....
What are all these warnings and what have I done wrong? You can ignore the warnings.
You did nothing wrong but you use a "MySQLmodule.c" source with two constructs your compiler treats as errors. Maybe, the problem has been fixed in a newer version.... The other alternative is to look at the code and fix it. Dieter
On Sat, 2001-11-24 at 23:46, 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:
MySQLmodule is very old and doesn't work with MySQL-3.23, at least not without patches. The fact that you are trying to use this indicates you are using ZMySQLDA-1, which is also somewhat old. You can get ZMySQLDA-2.0.8 and MySQL-python-0.9.1 here: http://sourceforge.net/projects/mysql-python -- Andy Dustman PGP: 0x930B8AB6 @ .net http://dustman.net/andy You can have my keys when you pry them from my dead, cold neurons.
participants (4)
-
Andy Dustman -
Ben Ocean -
Dieter Maurer -
Steve Spicklemire