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 _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
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 I saw this problem report already (--> search the mailing list archives).
"MySQLmodule.c" uses "&" in a way your compiler does not like... Dieter
Hi! You are trying to compile very very old and outdated sources. MySQLmodule is ling dead. Long live MySQLdb!
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
Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
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.
On Thu, Dec 27, 2001 at 01:06:42AM -0500, Andy Dustman wrote:
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.
./MySQLmodule.c:1147: invalid lvalue in unary `&'
This can be fixed in MySQLmodule.c - once I did it. But certailnly one must get rid of MySQLmodule ASAP - it is unsupported and sooner or later will stop working completely. Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (4)
-
Andy Dustman -
Dieter Maurer -
Oleg Broytmann -
Stephan Goeldi