Bug #60268 [Opn]: Compiling PHP fails
| From: | rich06 at gmail dot com | Date: | Fri, 11 Nov 2011 17:08:44 +0000 |
| Subject: | Bug #60268 [Opn]: Compiling PHP fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165055@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60268&edit=1
ID: 60268
User updated by: rich06 at gmail dot com
Reported by: rich06 at gmail dot com
Summary: Compiling PHP fails
Status: Open
Type: Bug
Package: Compile Failure
Operating System: Mac OS X 10.7.2 (Lion)
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
Forgot to mention that I did try all the suggestions such as moving MH_BUNDLE_FLAGS in the Makefile
and editing iconv.c using different iconv libs (MacPorts) -- nothing worked...
Previous Comments:
------------------------------------------------------------------------
[2011-11-11 15:47:55] rich06 at gmail dot com
Description:
------------
Compiling PHP v.5.3.8 fails on Mac OS X 10.7.2 (Lion) -- linker errors are generated relating to
iconv
Test script:
---------------
./configure --prefix=/usr/local --mandir=/usr/share/man --infodir=/usr/share/info
--with-apxs2=/usr/local/apache2/bin/apxs --enable-cli --with-zlib-dir=/usr --enable-exif
--enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-curl=/usr
--with-config-file-path=/etc --sysconfdir=/etc --with-mysql-sock=/tmp --with-mysql=/usr/local/mysql
--with-xmlrpc --with-xsl=/usr --without-pear --with-libxml-dir=/usr --with-zlib --with-sqlite
--with-gd --with-pdo-mysql=/usr/local/mysql --with-jpeg-dir=/opt/local --with-png-dir=/usr/X11R6
--with-iconv-dir=/opt/local --enable-pcntl --enable-soap --enable-wddx --enable-zip
make clean
make
Expected result:
----------------
make passes
Actual result:
--------------
Undefined symbols for architecture x86_64:
"_libiconv_open", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
"_libiconv", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
"_libiconv_close", referenced from:
_do_convert in gdkanji.o
_convert in encodings.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60268&edit=1