Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22885 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49161 invoked by uid 1010); 19 Apr 2006 21:52:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49146 invoked from network); 19 Apr 2006 21:52:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2006 21:52:38 -0000 X-Host-Fingerprint: 38.98.1.66 unknown Received: from ([38.98.1.66:18063] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 0D/72-19715-621B6444 for ; Wed, 19 Apr 2006 17:52:38 -0400 Message-ID: <0D.72.19715.621B6444@pb1.pair.com> To: internals@lists.php.net Date: Wed, 19 Apr 2006 14:52:33 -0700 User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 38.98.1.66 Subject: compiling a 64-bit PHP on a mac G5 From: jon@cyberflowsolutions.com (Jon) I'm using os X and 64-bit mysql on a G5 and I'm trying to compile a 64-bit PHP but I seem to be having trouble with the libraries. If I run configure as so: CFLAGS="-mpowerpc64 -mcpu=G5 -mtune=G5 -arch ppc64" CPPFLAGS="-mpowerpc64 -mcpu=G5 -mtune=G5 -arch ppc64" CXXFLAGS="-mpowerpc64 -mcpu=G5 -mtune=G5 -arch ppc64" ./configure --with-apxs=/usr/sbin/apxs --with-mysqli=\ /usr/local/mysql/bin/mysql_config --with-libxml-dir=/usr ... then it dies with this stuff in the config.log: ld64 warning: in /usr/lib/libxml2.dylib, file does not contain requested architecture ld64 warning: in /usr/lib/libz.dylib, file does not contain requested architecture ld64 warning: in /usr/lib/libiconv.dylib, file does not contain requested architecture ... however if I don't use the various CFLAGS it dies trying to link to libmysqlclient with this in the config.log: /usr/bin/ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it) /usr/bin/ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it) Has anyone out there had any luck doing this? I'd really like to be able to use php in 64 bit glory and additionally I want to be able to use a feature of proc_open() that can only be enabled with a source-code edit. Any advice would be appreciated. ~jon