There is a bug in the liblinker in mysql-devel 4.1.16 or higher. When trying to compile apache,php the compile will error out with liblinker: can not find /usr/lib/mysql/libz.la. The only known fix if you have this issue is to downgrade the mysql-devel-4.1.x to version 4.1.13. We had this issue this morning on a fresh install and upon researching using google its a known bug affecting RHEL3,4 and CentOS 3,4. The bug also is found in mysql 5.0.16. I repeat the only known fix available at this time is to downgrade the mysql-devel rpm to 4.1.13 or install from the src rpm and recompile apache and php.

we had a similiar issue going to 5.1.2 and and mysql 5.18. Basically httpd wouldn't start. It was complaining about mysql libs. I ran buildapache again and same issue. Nick helped me with this and we wound up installing mysql 5.21 from a generic RPM and apache would then start. The initial error I was getting when restarting httpd was:

Cannot load /usr/local/apache/libexec/libphp5.so into server:
/usr/local/apache/libexec/libphp5.so: symbol zlibVersion, version
libmysqlclient_15 not defined in file libmysqlclient.so.15 with link time
reference

Mostly this was due to buildapache failing to continue to compile past the apache part and it would die before php started to compile.

At some point soon if not already new sPanel builds will be out for mysql's > 5.18 >not sure if this error is related in the 4.X tree. What I think is buildapache was changed slightly on May12th and my prior builds would run. After using the May12th version it would have the above problem. Something in buildapache makes the problem in mysql show itself. We found the bugs listed at mysql.com that referenced my issue and it was fixed in the later versions.

There is a bug in the liblinker in mysql-devel 4.1.16 or higher. When trying to compile apache,php the compile will error out with liblinker: can not find /usr/lib/mysql/libz.la. The only known fix if you have this issue is to downgrade the mysql-devel-4.1.x to version 4.1.13. We had this issue this morning on a fresh install and upon researching using google its a known bug affecting RHEL3,4 and CentOS 3,4. The bug also is found in mysql 5.0.16. I repeat the only known fix available at this time is to downgrade the mysql-devel rpm to 4.1.13 or install from the src rpm and recompile apache and php.

Click to expand...

Hmm, im running 4.1.18 on RHEL3 with Php; v4.2.2 with no issues whatsoever.