ID:               42568
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jerry at scene-naturally dot dyndns dot org
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: OS X 10.4.10
 PHP Version:      5.2.4
 New Comment:

My question is: Does it work? :D
You could try building PHP as well with --disable-shared..


Previous Comments:
------------------------------------------------------------------------

[2007-09-07 02:30:57] jerry at scene-naturally dot dyndns dot org

In order to be complete, I did check as you asked

compiling gmp via:

./configure \
--prefix=/usr/local \
--enable-cxx \
ABI=mode32

and using the resulting library to compile PHP via:
./configure \
--with-gmp=/usr/local

PHP did configure and compile.

This leads to a conundrum though, Comparing the two libraries 
(libgmp.a built via the developers specs to libgmp.a built via your 
request) leads to 242 differences between the two static libraries.

This kind of throws cold waters on the hope of the idea of using the 
static library built the second way and tossing out the shared 
libraries (which come from not using the --disable-shared option).

------------------------------------------------------------------------

[2007-09-07 01:26:41] jerry at scene-naturally dot dyndns dot org

There are serious problems with doing that. Libtool will switch to
using 
CC instead of GCC to build the resulting shared library, which means 
most things that would in use the gmp library break because they need 
the GCC version, which is why the folks at GMP say to use the --
disabled-shared option for OS X.

------------------------------------------------------------------------

[2007-09-06 22:27:55] [EMAIL PROTECTED]

What if you compile GMP without --disable-shared ??

------------------------------------------------------------------------

[2007-09-06 14:51:11] jerry at scene-naturally dot dyndns dot org

I tried this three different ways; (all crashed).

First way: a usual full list.

Second way:

./configure \
--prefix=/usr/local/apache2/php \
--with-config-file-path=/usr/local/apache2/php/lib \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-gmp=/usr/local

This crashed as well, as did

./configure \
--with-gmp=/usr/local

All done with fresh versions of PHP.

------------------------------------------------------------------------

[2007-09-06 11:06:29] [EMAIL PROTECTED]

What was the full configure line for PHP?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/42568

-- 
Edit this bug report at http://bugs.php.net/?id=42568&edit=1

Reply via email to