PHP Startup: Unable to load dynamic library mysql.so


#1

hello every body :
i use soalris 10
i have a problem with mysql :
mysql functions are not defined !
even if my php.ini is configure as bellow :

; Directory in which the loadable extensions (modules) reside.
extension_dir = “/usr/local/lib/php/extensions/no-debug-non-zts-20060613/”

extension=mysql.so

and whene a do an ls :

ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysql.so

-rwxr-xr-x 1 root root 119916 Jun 11 11:38 /usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysql.so

here is the error in the log file :
[11-Jun-2007 15:33:24] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/mysql.so’ - ld.so.1: httpd:
fatal: libmtmalloc.so.1: DF_1_NOOPEN tagged object may not be dlopen()'ed in Unknown on line 0

and in the browser i get
Fatal error: Call to undefined function mysql_connect() in /var/apache2/htdocs/test_mysql.php on line 8

line 8 : in test_mysql.php

if (!mysql_connect($db_hostname, $db_username, $db_password))

thank you for giving me some help here


#2

Might this be the problem?

-rwxr-xr-x 1 root root

Owner = root, group = root.


#3

the problem is in the libmtmalloc.so !!
in the link
http://bugs.mysql.com/bug.php?id=18322
we get

[18 Mar 2006 7:00] Dean Ellis

Description:
Our Solaris builds are apparently explicitly linked to libmtmalloc. This library cannot
be dlopen()ed, so we are breaking programs such as DBD::mysql that attempt to dlopen() our
client library.


#4

Uuhm, okay. I presume that answers your question then?


#5

i still can’t resolve this task :(


#6

Did you try the patch that was suggested from http://bugs.mysql.com/bug.php?id=18322 ?

Patch => http://lists.mysql.com/commits/4204