#42568 [Com]: Compile fails when using --with-gmp option in MacOSX

From: Date: Thu, 29 Oct 2009 22:52:45 +0000
Subject: #42568 [Com]: Compile fails when using --with-gmp option in MacOSX
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-144092@lists.php.net to get a copy of this message
ID: 42568 Comment by: syzygy at mvn dot net Reported By: jerry at scene-naturally dot dyndns dot org Status: No Feedback Bug Type: GNU MP related Operating System: MacOSX 10.4.10 PHP Version: 5.2.4 New Comment: I got php version 5.3.0 to compile using the "--with-gmp" option and gmp version 4.3.1 as follows: gmp compile dialog: $ cd gmp-4.3.1 $ ./configure --build=i686-apple-darwin9.8.0 \ --host=i686-apple-darwin9.8.0 --target=i686-apple-darwin9.8.0 $ make $ make check $ make install php compile dialog: $ cd php-5.3.0 $ ./configure --build=i686-apple-darwin9.8.0 \ --host=i686-apple-darwin9.8.0 --target=i686-apple-darwin9.8.0 \ --with-apxs2=/usr/sbin/apxs --with-mysql=/usr/local/mysql \ --with-mcrypt=/usr/local/bin/mcrypt --enable-mbstring \ --enable-calendar --enable-ftp --enable-sockets --without-pear \ --disable-cgi --with-zlib --with-pgsql=/usr/local/pgsql \ --with-gmp=/usr/local $ make $ make test $ sudo make install Hope this is helpful. I realize this is an old bug, but I was also having the same problem. I believe that the success of my build is probably related to the use of the "--build", "--host", and/or "--target" options, which are for my Mac OS X 10.5.8 laptop, and others are likely to need different specifications for other Mac OS X configurations. The php configure options "--with-mysql" through "--with-pgsql" are probably unimportant to the success of this build, but I've included them for the sake of completeness, just because I haven't taken the time to test the build without them. This php build is now up and running, and appears to be stable on preliminary testing, although I haven't yet tested any of the gmp functions. If any of the gmp_ functions fail during future development I'll leave another comment (assuming this one is still here). Thanks & long live PHP. Previous Comments: ------------------------------------------------------------------------ [2008-11-04 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2008-10-27 13:44:28] jani@php.net Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2007-11-05 19:12:04] stas@php.net I'm afraid I don't know what to do with this - I don't have OS X readily available and OS linkage is quite exotic so I couldn't figure it out using other systems... ------------------------------------------------------------------------ [2007-09-13 10:18:12] jani@php.net Assigned to the ext/gmp maintainer. ------------------------------------------------------------------------ [2007-09-11 15:55:51] jerry at scene-naturally dot dyndns dot org This is from the gmp folks: "Well, I can only wish you luck since there is really nothing I can do about this. You need to dig in PHP to debug this. You need to provide me with a test case that violates the documented GMP behavior, then I will fix the error." Therein is a problem, when gmp is build according to the developer's instructions, using it when building PHP is the only place things break, which does not violate the docs for gmp. ------------------------------------------------------------------------ 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

« previous php.bugs (#144092) next »