#16925: Can't build php5 (libmysqlclient_r.la bad magic number) --------------------------------+------------------------------------------- Reporter: ureason@gmail.com | Owner: ryandesign@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: php5, apr-util | --------------------------------+------------------------------------------- Changes (by ryandesign@macports.org): * cc: dluke@macports.org (added) * status: new => assigned * port: php5 => php5, apr-util Comment: I got another report about this problem from Rulf Niegenfind by private email. It looks like this issue: http://www.mail- archive.com/dev@apr.apache.org/msg18908.html I can confirm the problem on my system if I install the apr-util port with the +mysql5 variant and then try to build php5 (with or without the +mysql5 variant). New users who attempt to install php5 +mysql5 as one of their first ports will encounter this because +mysql5 variant will get inherited by all dependencies being built, including the apr-util port, as of r37635 (v1.3.0). The workaround for now is to get rid of the apr-util with the +mysql5 variant and reinstall it without that variant, then clean and install php5 with the variants you want: {{{ sudo port deactivate apr-util sudo port clean apr-util sudo port install apr-util sudo port clean php5 sudo port install php5 [...] }}} Not sure if this is a php bug or an apr-util bug. Perhaps I can at least add a warning to the php5 port if apr-util is installed with the +mysql5 variant. -- Ticket URL: <http://trac.macports.org/ticket/16925#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS