I solved it by replacing the link command with: ld -G build/temp.solaris-2.6-sun4u-2.1/_mysql.o -L/u/mysql/lib -lmysqlclient -lsocket -lresolv -o build/lib.solaris-2.6-sun4u-2.1/_mysql.so --On Mittwoch, Februar 27, 2002 15:33:09 +0100 Joachim Schmitz <js@aixtraware.de> wrote:
Hi, I am trying to install MySQL-python-0.9.1 on Solaris 2.6 under Zope-2.5.1beta.
I modified the setup.py to fit my installation.
when doing:
python setup.py build
the _mysl.o is compiled, but the linking fails with
gcc -shared build/temp.solaris-2.6-sun4u-2.1/_mysql.o -L/u/mysql/lib -R/usr/local/lib:/usr/ccs/lib:/usr/openwin/lib:/usr/dt/lib -lmysqlclient -lresolv -ldl -lz -lc -o build/lib.solaris-2.6-sun4u-2.1/_mysql.so
Text relocation remains referenced against symbol offset in file ctype_latin1 0x4bc /u/mysql/lib/libmysqlclient.a(d$ ctype_latin1 0x684 /u/mysql/lib/libmysqlclient.a(d$ .....
a lot of lines like this and finally
ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1
Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/
_______________________________________________ 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 )
Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://germany.keyserver.net/en/