MySQL DA with Sun Solaris 2.6
Hi, I'm trying to install the MySQL-DA under Solaris 2.6. After successfully compiling and linking, doing:
python Python 1.5.2 (#6, Jun 4 1999, 08:31:43) [GCC 2.8.1] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
import MySQL Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: file ./MySQLmodule.so: symbol __moddi3: referenced symbol not found
I tried to use the linker-option -lgcc, but that results in a linker error. I put this already on the collector. Mit freundlichen Grüßen Joachim Schmitz ------------------------------------------------------------------------------ P R O F I . N E T A G * Joachim Schmitz * Senior Network Consultant ------------------------------------------------------------------------------ profi.net | Aindlinger Str. 7 | Voice +49 821 27062-0 Hassler & Mair AG | 86167 Augsburg | Fax +49 821 27062-99 | Germany | Email js@profi.net
Hi, I´m posting the solution for this myself. What´s the situation is here: the module __moddi3 is in libgcc.a Compiler used: gcc Linker used: ld: Software Generation Utilities - Solaris/ELF (3.0) the linker does not know the path to libgcc, so simply using -lgcc does not help. I created a symlink in /lib to libgcc.a. Now it works. thanks for the tips though Joachim Schmitz
Hi,
I'm trying to install the MySQL-DA under Solaris 2.6. After successfully compiling and linking, doing:
python Python 1.5.2 (#6, Jun 4 1999, 08:31:43) [GCC 2.8.1] on sunos5 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
import MySQL Traceback (innermost last): File "<stdin>", line 1, in ? ImportError: ld.so.1: python: fatal: relocation error: file ./MySQLmodule.so: symbol __moddi3: referenced symbol not found
I tried to use the linker-option -lgcc, but that results in a linker error.
I put this already on the collector.
Mit freundlichen Grüßen
Joachim Schmitz
------------------------------------------------------------------------------ P R O F I . N E T A G * Joachim Schmitz * Senior Network Consultant ------------------------------------------------------------------------------ profi.net | Aindlinger Str. 7 | Voice +49 821 27062-0 Hassler & Mair AG | 86167 Augsburg | Fax +49 821 27062-99 | Germany | Email js@profi.net
participants (1)
-
Joachim Schmitz