ID: 34089 Comment by: boydjd at jbip dot net Reported By: [EMAIL PROTECTED] Status: No Feedback Bug Type: Compile Failure Operating System: Mac OS X 10.4.8 PHP Version: 6CVS-2006-10-03 New Comment:
I've tested this with OS X 10.5.5 and CVS HEAD tonight, and upon installing ICU following the last commenter's suggestions, ./configure and make when just fine with no errors. Previous Comments: ------------------------------------------------------------------------ [2008-05-19 06:06:20] steve_d at redmonkey dot org I've just ran into this problem building on MAC with the latest (at time of writting this) PHP6 snapshot from snaps.php.net. The issue in my case was related to the icu libraries rather than any problem with PHP's configure. The icu build system produces MAC platform libraries with an install name which does not include a path, this can be seen by running "otool -L" on any of the libraries or anything you build that links against any of the libraries. So, PHP6's configure fails when executing libxml2's conftest if icu's libraries are installed in a directory not included in dyld's search path as dyld quite simply has no idea where else to look for the libraries. You could get round the problem by installing the icu libraries in a path already searched for by dyld or adding the path to the libraries to the "DYLD_LIBRARY_PATH" environment variable. My solution was to edit icu's darwin config file found at "<icu-source-directory>/config/mh-darwin" By changing line 28 from: LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(notdir $(MIDDLE_SO_TARGET)) To: LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(libdir)/$(notdir $(MIDDLE_SO_TARGET)) And all appears to be good, for me at least. Hopefully some of that will help. ------------------------------------------------------------------------ [2008-05-08 21:11:15] marcioandreyfurtado at hotmail dot com yes ------------------------------------------------------------------------ [2007-08-10 02:00:24] asokan dot anish at gmail dot com I installed the gcc-c++ binaries and its dependencies. using yum install gcc-c++.i386 gcc-libstc++ though there were some 5 more depended files. The error: configure: error: installation or configuration problem: C++ compiler cannot create executables. was resolved. and I the configuration script sucessfully completed! I was able to install php 5.2.3 with apache httpd-2.2.4, mysql-5.0.45, libxml2-2.6.29, zlib-1.2.3, libpng-1.2.18, gd-2.0.35 etc. Anish Asokan ------------------------------------------------------------------------ [2007-08-10 01:02:49] asokan dot anish at gmail dot com I was using the configure script : ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --disable-debug --enable-inline-optimization --sysconfdir=/etc --with-png-dir=/usr --with-png --with-gettext --with-zlib --with-mysql=/usr/local/mysql --enable-ftp --enable-magic-quotes --enable-sockets --enable-track-vars --enable-trans-sid --enable-yp --enable-tidy --enable-wddx=shared --enable-mbstring --enable-mm=shared --enable-safe-mode --enable-xml --with-dom --with-libxml-dir=/usr --with-xml --with-gd=shared --with-regex=system --enable-dom --with-libxml-dir=/usr I was also getting the same error. But I installed, 3 rpm packages. 1] libxml2 2] libxml2-devel 3] zlib-devel using the command yum install libxml2 libxml2-devel zlib-devel was automatically installed as a dependency. After that the same configure script resolved the libxml error. but I ended up in a different one!! Configuring libtool checking build system type... i686-pc-linux-gnu checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking how to recognise dependent libraries... pass_all checking for object suffix... o checking for executable suffix... no checking for c++... no checking for g++... no checking for gcc... gcc checking whether the C++ compiler (gcc ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. I think its something related with my compilers. Let me try another round of yum install... ------------------------------------------------------------------------ [2007-07-30 01:00:01] 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". ------------------------------------------------------------------------ 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/34089 -- Edit this bug report at http://bugs.php.net/?id=34089&edit=1