Bug #19348 | Can't load 'mysql.so' for module DBD::mysql: | ||
---|---|---|---|
Submitted: | 25 Apr 2006 18:49 | Modified: | 12 May 2006 9:56 |
Reporter: | Andy Chen | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connectors: DBD::mysql ( Perl ) | Severity: | S1 (Critical) |
Version: | 3.0002 | OS: | Solaris (Solaris 10 SPARC) |
Assigned to: | CPU Architecture: | Any |
[25 Apr 2006 18:49]
Andy Chen
[26 Apr 2006 8:40]
Valeriy Kravchuk
Thank you for a problem report. How did you install MySQL 5.1.7b? Please, send the ./configure command line if you compiled it yourself. What is the value of LD_LIBRARY_PATH environment variable? Finally, please, try to repeat with newer version of MySQL server, 5.1.9b, and inform about the results.
[26 Apr 2006 14:29]
Andy Chen
Thanks for quick reply. I download the MySQL 5.1.7b 64bit tar format for Solaris 10, and direct untar it to /usr/local. The my.cnf didn't create yet, so I assume the MySQL is using default configurations. After opened this case, I also tried older versions (5.0.12 64bit, 5.0.20 23bit) but still have same problem, looks like it's DBD::mysql's issue to me...
[26 Apr 2006 14:32]
Valeriy Kravchuk
Sorry, but if you compile DBD::mysql with gcc, why this flag: -D_FORTEC_ is used? Can you try to compile with Sun's native compiler?
[27 Apr 2006 2:38]
Andy Chen
Yes, the setting -D_FORTEC_ was used. Today I downgraded my Perl back to 5.6.1, and compiled again without any problem. ;-) Looks like the problem is the Perl 5.8.7 can't get alone with DBD::mysql 3.0002... Thanks for all the help, now I can keep working on my project!!! ;-)
[12 May 2006 9:56]
Valeriy Kravchuk
Looks like the problem is not DBD::mysql-related, but rather Perl vertsion related.
[20 Jun 2006 2:36]
Toby Thain
Is this a duplicate of http://bugs.mysql.com/bug.php?id=18322 (although the fix does not seem to have been implemented in the 5.0.17 package I'm using!) I saw the same problem on Solaris 5.10 Generic_118844-26 (x86-64), trying to build DBD-mysql-3.0002 against mysql-pro-gpl-cert-5.0.17c-solaris10-x86_64.pkg, using bundled Perl 5.8.4 (though I notice 5.6.1 is also installed). Altering the build flags for DBD::mysql resolved the library loading problem - original flags were detected as follows: # perl Makefile.PL ... cflags (mysql_config) = -I/opt/mysql/mysql/include -m64 -g -mtune=k8 libs (mysql_config) = -m64 -O2 -g -mtune=k8 -static-libgcc -L/opt/mysql/mysql/lib -lmysqlclient -lz -lposix4 -lgen -lsocket -lnsl -lm -lmtmalloc Removing '-m64 -g -mtune=k8' from cflags, and '-m64 -O2 -g -mtune=k8 -static-libgcc -lmtmalloc' from libs solved the originally reported problem. I can now move on to my next problem... Apache reports: ld.so.1: httpd: fatal: relocation error: file /usr/perl5/site_perl/5.8.4/i86pc-solaris-64int/auto/DBD/mysql/mysql.so: symbol mysql_init: referenced symbol not found