Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-08-15 Thread Antony Dovgal
On 15.08.2007 17:13, Christian Speich wrote: hello, I think the code should look like this: if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined (__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) # if defined(__LITTLE_ENDIAN__) # undef WORDS_BIGENDIAN # else if defined(__BIG_ENDIAN__)

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-08-15 Thread Christian Speich
hello, I think the code should look like this: if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined (__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) # if defined(__LITTLE_ENDIAN__) # undef WORDS_BIGENDIAN # else if defined(__BIG_ENDIAN__) # define WORDS_BIGENDIAN # endif #endif Yes

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-08-13 Thread Antony Dovgal
On 13.08.2007 14:09, Christian Speich wrote: hello again, so now i have the test results :) (I dont have an ppc mac, so i ask an friend) As far as I know, GCC on PPC is unable to generate universal binaries, so I don't understand what exactly you were testing there.. And it dosn't work!

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-08-13 Thread Christian Speich
, 2007 11:06 AM To: Uwe Schindler Cc: internals@lists.php.net Subject: Re: [PHP-DEV] php5 as universal binary (Mac OS X) Uwe, could you plz test this patch? http://dev.daylessday.org/diff/macos_uni.diff Thanks. On 27.07.2007 16:21, Uwe Schindler wrote: On http://developer.apple.com/documenta

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-08-09 Thread Christian Speich
lto:[EMAIL PROTECTED] Sent: Thursday, August 09, 2007 11:06 AM To: Uwe Schindler Cc: internals@lists.php.net Subject: Re: [PHP-DEV] php5 as universal binary (Mac OS X) Uwe, could you plz test this patch? http://dev.daylessday.org/diff/macos_uni.diff Thanks. On 27.07.2007 16:21, Uwe Schindler wrote:

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-08-09 Thread Uwe Schindler
s@lists.php.net > Subject: Re: [PHP-DEV] php5 as universal binary (Mac OS X) > > Uwe, could you plz test this patch? > http://dev.daylessday.org/diff/macos_uni.diff > > Thanks. > > On 27.07.2007 16:21, Uwe Schindler wrote: > > On > > > http://developer.apple.co

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-08-09 Thread Antony Dovgal
Uwe, could you plz test this patch? http://dev.daylessday.org/diff/macos_uni.diff Thanks. On 27.07.2007 16:21, Uwe Schindler wrote: On http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/comp iling/chapter_4_section_3.html Apple states: -- Wbr, Antony Dovgal -- PHP Int

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Christian Speich
.net > > NSAPI SAPI developer > > Bremen, Germany > > > > > -----Original Message- > > > From: Antony Dovgal [mailto:[EMAIL PROTECTED] > > > Sent: Friday, July 27, 2007 11:46 AM > > > To: internals@lists.php.net > > > Subject: Re: [PH

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Uwe Schindler
inal Message- > From: Antony Dovgal [mailto:[EMAIL PROTECTED] > Sent: Friday, July 27, 2007 12:32 PM > To: Uwe Schindler > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] php5 as universal binary (Mac OS X) > > On 27.07.2007 14:23, Uwe Schindler wrote: > &g

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Antony Dovgal
On 27.07.2007 14:47, David Wang wrote: Isn't an universal binary just two binaries packaged together? Yes. One has to be compiled for Intel and the other for PowerPC. GCC is able to build both on Intel. How exactly is this currently being done in a single run on Christian's machine? It

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Christian Speich
ctly). But this is not possible for PHP. > > - > Uwe Schindler > [EMAIL PROTECTED] - http://www.php.net > NSAPI SAPI developer > Bremen, Germany > > > -Original Message- > > From: Antony Dovgal [mailto:[EMAIL PROTECTED] > > Sent: Friday, July 27, 2007 11:46 A

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread David Wang
Isn't an universal binary just two binaries packaged together? One has to be compiled for Intel and the other for PowerPC. How exactly is this currently being done in a single run on Christian's machine? Is there a special build tool that runs the compilation twice or a special compiler that genera

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Antony Dovgal
On 27.07.2007 14:23, Uwe Schindler wrote: The simpliest would be to create a patch that is included *after* the configure-generated .h file. I do not exactly now, in which PHP/Zend specific .h file the configure generated php_config.h one is included, but that would be the place to place the foll

RE: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Uwe Schindler
PROTECTED] - http://www.php.net NSAPI SAPI developer Bremen, Germany > -Original Message- > From: Antony Dovgal [mailto:[EMAIL PROTECTED] > Sent: Friday, July 27, 2007 11:46 AM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] php5 as universal binary (Mac OS X) > >

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Jani Taskinen
Just sponsor me with one of these Apple laptops and I can see what I can do for it.. ;) --Jani On Fri, 2007-07-27 at 13:45 +0400, Antony Dovgal wrote: > Intel Mac is little-endian, PPC Mac is big-endian. > Endiannes is detected during configure run, that's why the binary works fine > on Intel Ma

Re: [PHP-DEV] php5 as universal binary (Mac OS X)

2007-07-27 Thread Antony Dovgal
Intel Mac is little-endian, PPC Mac is big-endian. Endiannes is detected during configure run, that's why the binary works fine on Intel Mac, but not on PPC. To make it work on both you either need to build separate binaries on PPC and Intel, and then merge them (IIRC that was possible), or you