ID: 48195 Comment by: b1667861 at tyldd dot com Reported By: rickdunn at chez dot com Status: Assigned Bug Type: Compile Failure Operating System: MacOSX 10.5.7 PHP Version: 5.3.0RC2 Assigned To: scottmac New Comment:
Solved for me by referring to this post: http://jspr.tndy.me/2009/07/php-5-3-iconv-osx-symbols-missing-_libiconv/ My setup: - OS X 10.5.8 / PHP 5.2.8 - Intel - mySQL 5.0.51b installed in usr/local (preparation) MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" export CFLAGS CXXFLAGS LDFLAGS CCFLAGS MACOSX_DEPLOYMENT_TARGET (mhash) ./configure && make && sudo make install (libmcrypt) ./configure && make && sudo make install (mcrypt) touch malloc.h ./configure && make && sudo make install (libiconv) ./configure && make && sudo make install (php 5.3.0 configure = PHP 5.2.8 configure string from OS X 10.5.8 + updated mySQL paths + mCrypt + iConv) env LIBS="-liconv" ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --with-apxs2=/usr/sbin/apxs --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable-trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc --with-mysql-sock=/var/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql --with-openssl --with-xmlrpc --with-xsl=/usr --without-pear --with-mcrypt=/usr/local/bin/mcrypt --with-iconv=/usr/local/bin/iconv (php makefile edit) from: $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so to: $(CC) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) $(MH_BUNDLE_FLAGS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so (php make) make sudo make install (toggle Web Sharing in User Preferences) (Also add (or uncomment) in [etc/php.ini] to prevent date-functions errors to be thrown in php 5.3.0) date.timezone = "America/New_York" Previous Comments: ------------------------------------------------------------------------ [2009-07-18 19:20:09] raymond dot plante at gmail dot com It's obvious the makefile needs to be patched to search configuration specified library paths first. I hope that there isn't anyone here seriously trying to suggest 'you should just have 1 version of a library on your system'. ------------------------------------------------------------------------ [2009-06-15 08:53:00] j...@php.net I'll check them once I get back home in couple of days or so. ------------------------------------------------------------------------ [2009-06-12 11:03:16] rickdunn at chez dot com Sorry about that -- files sent by e-mail. ------------------------------------------------------------------------ [2009-06-12 07:06:15] j...@php.net Thanks, but I should propably said "send them via email". Both me and Scott. From the generated Makefiles it's easier to diff what the problem is. I deleted those from this report, quite unreadable here. ------------------------------------------------------------------------ [2009-06-10 20:52:22] rickdunn at chez dot com I tried the makefile modification and the build was not successful. ------------------------------------------------------------------------ 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/48195 -- Edit this bug report at http://bugs.php.net/?id=48195&edit=1