Apache Warning - MySQL Lib Size Mismatch Solution

"Adam Douglas" <[email protected]>
Newsgroups gmane.comp.web.midgard.user
Message-ID <[email protected]>
I was having some problems with my web site so I went off to check my
Apache HTTPD error_log and found three warning messages logged.

Apache HTTPD error_log
/usr/sbin/httpd:/usr/lib/apache/modules/libphp4.so:
/usr/local/lib/libmysqlclient.so.12.0 : WARNING: symbol(client_errors)
size mismatch, relink your program
/usr/sbin/httpd:/usr/lib/apache/modules/libphp4.so:
/usr/local/lib/libmysqlclient.so.12.0 : WARNING:
symbol(default_directories) size mismatch, relink your program
/usr/sbin/httpd:/usr/lib/apache/modules/libphp4.so:
/usr/local/lib/libmysqlclient.so.12.0 : WARNING: symbol(globerrs) size
mismatch, relink your program

After some time of research and with no solution, I decided to mention
the problem in Midgard IRC channel. With Piotras comment, I quote
"TheWarden: php was compiled with different version of mysql libraries".
So with that said off I went to re-install PHP v4.3.11 but this time
configure it with -with-mysql=/usr/local so the correct MySQL libraries
would be used. If -with-mysql is not used PHP will use it's own built in
MySQL libraries. I double checked my Apache HTTPD error_log and now the
warnings are no longer present.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.