Hi people, I am trying to get ZMysqlDA running on a 4.0 Release BSD machine, I have compiled this fine before on Linux but no luck on bsd. I am new to Bsd so if this is a bsd problem I appolagise in advance, but the ZMysqlda documentation is not clear on what libs are required. Python 1.5.2 manually compiled and installed (not part from ports). cc -fpic -I/usr/local/include/mysql -I/usr/include/mysql -O -pipe -D_THREAD_SAFE -I/usr/local/include/python1.5 -I/usr/local/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 `&' *** Error code 1 Brenton Bills.
+----[ Brenton Bills ]--------------------------------------------- | | Hi people, I am trying to get ZMysqlDA running on a 4.0 Release BSD | machine, I have compiled this fine before on Linux but no luck on bsd. I | am new to Bsd so if this is a bsd problem I appolagise in advance, but the | ZMysqlda documentation is not clear on what libs are required. | | Python 1.5.2 manually compiled and installed (not part from ports). You need to edit the src/Setup to change the locations for the mysql includes and libraries: -I/usr/local/include/mysql -L/usr/local/lib/mysql so you get a line that looks like:- MySQLmodule MySQLmodule.c -I/usr/local/mysql/include -I/usr/include/mysql -L/usr /local/mysql/lib -L/usr/lib/mysql -lmysqlclient -lm Works for me d8) -- Totally Holistic Enterprises Internet| P:+61 7 3870 0066 | Andrew Milton The Internet (Aust) Pty Ltd | F:+61 7 3870 4477 | ACN: 082 081 472 | M:+61 416 022 411 | Carpe Daemon PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au|
Brenton, What version of MySQL are you using? Later versions have changed slightly and you need to edit MySQLmodule.c to compensate. I think if you remove the '&' in the lines mentioned in the error message it should work ok, well it did for me. hth Phil phil.harris@zope.co.uk ----- Original Message ----- From: "Brenton Bills" <fud@mail.theinternet.com.au> To: <zope@zope.org> Sent: Monday, May 22, 2000 8:06 AM Subject: [Zope] ZMysqlDA
Hi people, I am trying to get ZMysqlDA running on a 4.0 Release BSD machine, I have compiled this fine before on Linux but no luck on bsd. I am new to Bsd so if this is a bsd problem I appolagise in advance, but the ZMysqlda documentation is not clear on what libs are required.
Python 1.5.2 manually compiled and installed (not part from ports).
cc -fpic -I/usr/local/include/mysql -I/usr/include/mysql -O -pipe -D_THREAD_SAFE -I/usr/local/include/python1.5 -I/usr/local/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 `&' *** Error code 1
Brenton Bills.
_______________________________________________ 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 )
participants (3)
-
Andrew Kenneth Milton -
Brenton Bills -
Phil Harris