Edit report at https://bugs.php.net/bug.php?id=60268&edit=1
ID: 60268
Comment by: lolautruche at gmail dot com
Reported by: rich06 at gmail dot com
Summary: Compiling PHP fails
Status: Closed
Type: Bug
Package: Compile Failure
Operating System: Mac OS X 10.7.2 (Lion)
PHP Version: 5.3.8
Assigned To: patrickallaert
Block user comment: N
Private report: N
New Comment:
I don't agree here, as ./configure --help says:
--with-apxs2=FILE Build shared Apache 2.0 Handler module. FILE is the
optional
pathname to the Apache apxs tool apxs
So FILE is optional
Previous Comments:
------------------------------------------------------------------------
[2011-12-08 10:38:54] [email protected]
Closing.
Invalid usage of --with-apxs2 which expects a file argument:
--with-apxs2 --with-iconv-dir=/opt/local
------------------------------------------------------------------------
[2011-12-08 09:59:43] lolautruche at gmail dot com
There seems to be linked with --with-apxs2 option.
Indeed, I first used --with-apxs2 (without value) and
--with-iconv-dir=/opt/local
(macports prefix). Here the compiler will take apxs system default (which is
/usr/sbin/apxs), and for some reason also makes ignore --with-iconv-dir value.
If I use --with-apxs2=/opt/local/apache2/bin/apxs (apache2 macports prefix),
then
everything will be fine.
------------------------------------------------------------------------
[2011-12-06 10:02:54] [email protected]
This issue should be solved, editing manually the Makefile isn't the way to go.
------------------------------------------------------------------------
[2011-12-06 09:37:01] lolautruche at gmail dot com
I confirm the same issue while compiling PHP 5.4RC2.
To reproduce it, you'll need to have MacPorts installed with iconv lib
installed
here. Basically, I already have a 5.3.8 built with MacPorts on my system.
Modifying the Makefile as rich06 suggested made it work, but shouldn't this be
made by configure script ? I tried with --with-iconv-dir=/opt/local/lib, but it
doesn't seem to work here
------------------------------------------------------------------------
[2011-11-30 20:46:08] rich06 at gmail dot com
I finally resolved this by editing the Makefile as follows so that the first
-L/usr/lib is changed to -L/opt/local/lib (I am using Macports)
MH_BUNDLE_FLAGS = -bundle -bundle_loader /usr/local/apache2/bin/httpd
-L/opt/local/lib -laprutil-1 -lldap -llber -llber -lexpat -liconv -L/usr/lib
-lpq -lsqlite3 -lldap -llber -llber -L/usr/lib -lapr-1 -lpthread
Hope this helps someone else.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=60268
--
Edit this bug report at https://bugs.php.net/bug.php?id=60268&edit=1