[Zope] Trouble compiling ZMySQLDA
Eric L. Walstad
Eric@Walstads.net
Mon, 10 Jul 2000 09:57:04 -0700
Hello Ewald,
Here's a mailing list archive that may help you:
http://zope.nipltd.com/public/lists/zope-archive.nsf/242bb7cc2b2c343d802568a
b003585d4/041159ede9899734802568a700259726?OpenDocument
It helped me with the same problem. Basically, It tells you how to make a
few simple modifications to the MySQLmodule.c file that allow the file to be
compiled.
Hope It Helps...
Eric.
// -----Original Message-----
// From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ewald
// Wasscher
// Sent: Sunday, July 09, 2000 4:54 PM
// To: zope@zope.org
// Subject: [Zope] Trouble compiling ZMySQLDA
//
//
// Hello all,
//
// When I try to compile ZMySQLDA I get the following error messages after
// typing make:
//
// [root@catv6216 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
// [root@catv6216 src]#
//
// I can't even read a single line of c so I have no idea what's wrong
// exactly.
//
// FYI:
//
// OS: Immunix 6.2 (= RedHat 6.2 + stackguard)
// Zope: 2.1.6 (compiled from Jeff Rush's source rpm, 2.2b3 doesn't work
// either)
// MySQL: 3.22.32 and 3.23.21
// Python MySQLdb: 2.0 2.1
//
// Ewald Wasscher
//
// _______________________________________________
// 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 )
//