After updating MySQL to 5.0.22 (needed for some projects) on our development box and recompiling PHP 4.2.2, I ended up with the following error at make install:
PHP Fatal error: Unable to start curl module in Unknown on line 0
It seems that this is indeed a MySQL issue and there is a
PHP bug (bogused) as well as a
MySQL bug report for the problem. There’s also a
blog entry by Ilia that details a possible solution. Basically, MySQL saw it fit to link their binary distribution not against OpenSSL (which is probably available on near 100% of unixoid hosts out there), but YaSSL - of which I personally never even heard. Since function names seem to clash between Ya and OpenSSL, we have a nice mixup here that libcurl (which also links against OpenSSL) can’t really digest. It tries to call the YaSSL init function on startup and fails miserably.
So, have fun compiling MySQL manually (and don’t forget that --without-server switch if you only want client + library)!
Thanks to Pierre for pointing the link to Ilia’s blog out and to Ilia for the solution.