[Zope] MySQLDA on Solaris
Anthony Baxter
Anthony Baxter <anthony@interlink.com.au>
Wed, 26 Jan 2000 13:04:15 +1100
>>> Christopher J Ceska wrote
> ld -G _mysqlmodule.o -L/usr/local/mysql/lib -lmysqlclient -o
> _mysqlmodule.so
> Traceback (innermost last):
> File "build.py", line 14, in ?
> import MySQLdb
> File "MySQLdb.py", line 19, in ?
> from _mysql import *
> ImportError: ld.so.1: python: fatal: relocation error: file
> /usr/local/lib/mysql/libmysqlclient.so.6: symbol __udivdi3: referenced
> symbol not found
Looks like you might need to link with libm (math libs)
Try
ld -G _mysqlmodule.o -L/usr/local/mysql/lib -lmysqlclient -lm \
-o _mysqlmodule.so
It's also possible that you've done something like build the mysql
lib with gcc, and are linking with cc, or something... Solaris can
be annoying that way.
Anthony
--
Anthony Baxter <anthony@interlink.com.au>
It's never too late to have a happy childhood.