Hi everybody!
I'm getting an apr-util related error ("bad magic number (not a Mach-O
file)") when building PHP5 with apxs, involving MySql's libs.
My original post about it is here,
http://news.php.net/php.general/262438
But the longer I stare at this stuff, the more I think it may be a
problem with the apr-util build.
I've ./configure'd apr-util (trunk/r579042) from source,
./configure --with-apr=/usr/local/apache2
--with-berkeley-db=/usr/local/dbd46 --with-dbm=db46
--with-expat=/usr/local --with-mysql=/usr/local/mysql
--with-sqlite3=/usr/local/sqlite
And it builds OK.
Checking with,
/usr/local/apache2/bin/apu-1-config --libs
-ldb-4.6 -lsqlite3 /usr/local/mysql/lib/mysql/libmysqlclient_r.la
-lexpat -liconv
I'm suspicious of that
"/usr/local/mysql/lib/mysql/libmysqlclient_r.la"; I expected "just"
-lmysqlclient_r.
And, since that's exactly the lib name referred in the php error (link above).
Ideas? Is this an apr-util or PHP problem?
Thanks a lot :-)
Ali