Hi,
I have try the solution explained in
http://discussions.apple.com/message.jspa?messageID=5969911#5969911 with following bash commands :
+ bash-3.2# CFLAGS=-DBIND
8COMPAT\\+ + bash-3.2# export CFLAGS\\+ + bash-3.2# MACOSX
DEPLOYMENTTARGET=10.6 \ \\+ + CFLAGS="-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" \ \\+ + CCFLAGS="-arch i386 -arch x86_64 -g -Os -pipe" \ \\+ + CXXFLAGS="-arch i386 -arch x86_64 -g -Os -pipe" \ \\+ + LDFLAGS="-arch i386 -arch x86_64 -bind
atload" \ \\+ + ./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=mysqlnd \\+ + --with-mysqli=mysqlnd \ \\+ + --with-pdo-mysql=mysqlnd \ \\+ + --with-mysql-sock=/var/mysql/mysql.sock \ \\+ + --with-openssl \ \\+ + --with-xmlrpc \ \\+ + --with-xsl=/usr \ \\+ + --without-pear \ \\+ + --with-freetype-dir=/usr/local/lib \ \\+ + --with-jpeg-dir=/usr/local/lib \ \\+ + --with-png-dir=/usr/X11R6 \ \\+ + --with-xpm-dir=/usr/X11R6 \ \\+ + --with-gd \ \\+ + --with-ttf \ \\+ + --with-iconv=/usr/local/lib \ \\+ + --enable-gd-imgstrttf \ \\+
--enable-gd-native-ttf
Before issuing make, I have to change in
php-5.3.2/ext/iconv/iconv.c file +#define iconv libiconv+ into +#define iconv iconv+ to let this command run through.
+ bash-3.2# make+
+bash-3.2# make test+
+ bash-3.2# mv /usr/bin/php /usr/bin/php.original+
+ bash-3.2# mv /usr/libexec/apache2/libphp5.so /usr/libexec/apache2/libphp5.so.original+
+ bash-3.2# make install+
+ bash-3.2# apachectl gracefull+
My phpinfo() test page shows:
+ GD Support enabled \\+ + GD Version bundled (2.0.34 compatible) \\+ + FreeType Support enabled \\+ + FreeType Linkage with freetype \\+ + FreeType Version 2.4.3 \\+ + GIF Read Support enabled \\+ + GIF Create Support enabled \\+ + JPEG Support enabled \\+ + libJPEG Version unknown \\+ + PNG Support enabled \\+ + libPNG Version 1.2.35 \\+ + WBMP Support enabled \\+ + XPM Support enabled \\+ + XBM Support enabled \\+
But finally, I get the same result. No more graphics!
So I revert to original state:
+ bash-3.2# mv /usr/bin/php /usr/bin/php.truetype+
+ bash-3.2# mv /usr/bin/php.original /usr/bin/php+
+ bash-3.2# mv /usr/libexec/apache2/libphp5.so /usr/libexec/apache2/libphp5.so.truetype+
+ bash-3.2# mv /usr/libexec/apache2/libphp5.so.original /usr/libexec/apache2/libphp5.so+
+ bash-3.2# apachectl gracefull+
Any ideas?