Recompile php
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi,
On 10.5 I used the gettext add-on for php. I needed this for horde to work. To get this to work I used Entropy PHP. However, this is no compatible with 10.6. Does anyone know how to recompile php with gettext support? And does someone know the standard compile command used for the php that comes with 10.6(./configure WHAT ARGUMENTS GO HERE(e.g. --with-gettext) )
Thanks
12 replies
Sign in or join Beachball Help to reply.
- 0
teknocat ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I also need to recompile PHP on Snow Leopard since the default install, though loaded with all the other goodies I need, doesn't seem to include freetype. I need freetype for my websites that use Captchas generated from truetype fonts.
I've tried to recompile, including recompiling and installing all the GD support libraries (libjpeg, libpng, freetype etc) specifically in x86 64-bit architecture. However every time I get the following error during compile:
warning: in /usr/lib/libfreetype.dylib, file is not of required architecture
I installed freetype in /usr/local/lib, not /usr/lib, so not sure why it's trying to grab it from the wrong place.
Anyone able to help?
- 0
s.m1 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi,
Could you post your compile command with all the arguments your using, then I will give it a try on mine.
- 0
teknocat ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
First I wanted to make sure I was compiling for 64-bit architecture, so I issued the following commands in terminal:
# MACOSX
DEPLOYMENTTARGET=10.6# 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
atload"# export CFLAGS CXXFLAGS LDFLAGS CCFLAGS MACOSX
DEPLOYMENTTARGETHaving done that, I successfully recompiled the latest stable sources for apache, freetype, libiconv, libjpeg, libpng, and openssl. Compile commands for all but apache were simply:
# ./configure
# make
# sudo make install
For Apache I used the following configure string (as I always did for 10.4 and 10.5):
# ./configure --enable-layout=Darwin --enable-mods-shared=all
After doing this I bounced the httpd service using the Web Sharing checkbox in the Sharing preference pane. All was well. I then pulled up a phpinfo() page. That came up fine as did a couple of other sites on my local machine.
For compiling PHP 5, I had a configure string that worked every time in 10.5, but since that was giving me troubles (the aforementioned error message), I copied the configure string from phpinfo() for the stock install and modified it to the following:
./configure '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/private/etc' '--with-apxs2=/usr/sbin/apxs' '--enable-cli' '--with-config-file-path=/etc' '--with-libxml-dir=/usr' '--with-openssl=/usr' '--with-kerberos=/usr' '--with-zlib=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--with-curl=/usr' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-freetype-dir=/usr/local' '--enable-gd-native-ttf' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-iodbc=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-xmlrpc' '--with-iconv-dir=/usr/local' '--with-xsl=/usr/local' '--with-pcre-regex=/usr/local'
It configures without any problems, but I still get the error during compile. Here is the complete resulting error message:
ld: warning: in /usr/lib/libfreetype.dylib, file is not of required architecture
Undefined symbols:
"
libiconvopen", referenced from:
doconvert in gdkanji.o
_php_iconvstrlen in iconv.o
php_iconvstring in iconv.o
_php_iconvstrpos in iconv.o
_php_iconv_mimedecode in iconv.o
_php_iconv_mimedecode in iconv.o
zif_iconvsubstr in iconv.o
zif_iconvsubstr in iconv.o
zif_iconv_mimeencode in iconv.o
zif_iconv_mimeencode in iconv.o
php_iconv_stream_filter_factorycreate in iconv.o
_convert in encodings.o
"
FT_InitFreeType", referenced from:
php_gdgdFontCacheSetup in gdft.o
"
FT_Get_CharIndex", referenced from:
php_gdgdImageStringFTEx in gdft.o
"
FT_Glyph_GetCBox", referenced from:
php_gdgdImageStringFTEx in gdft.o
"
res_9_dnexpand", referenced from:
phpparserr in dns.o
phpparserr in dns.o
phpparserr in dns.o
phpparserr in dns.o
phpparserr in dns.o
phpparserr in dns.o
phpparserr in dns.o
zif_dns_getmx in dns.o
"
res_9search", referenced from:
zif_dns_checkrecord in dns.o
zif_dns_getmx in dns.o
"
FT_GetGlyph", referenced from:
php_gdgdImageStringFTEx in gdft.o
"
FT_LoadGlyph", referenced from:
php_gdgdImageStringFTEx in gdft.o
"
res_9init", referenced from:
zif_dns_getrecord in dns.o
"
FT_Glyph_ToBitmap", referenced from:
php_gdgdImageStringFTEx in gdft.o
"
FT_SetTransform", referenced from:
php_gdgdImageStringFTEx in gdft.o
"
res_9send", referenced from:
zif_dns_getrecord in dns.o
"
FT_DoneFreeType", referenced from:
php_gdgdFontCacheShutdown in gdft.o
"_libiconv", referenced from:
doconvert in gdkanji.o
_php_iconvstrlen in iconv.o
php_iconvstring in iconv.o
php_iconvstring in iconv.o
_php_iconvstrpos in iconv.o
_php_iconvappendl in iconv.o
_php_iconvappendl in iconv.o
zif_iconvsubstr in iconv.o
zif_iconv_mimeencode in iconv.o
zif_iconv_mimeencode in iconv.o
zif_iconv_mimeencode in iconv.o
zif_iconv_mimeencode in iconv.o
zif_iconv_mimeencode in iconv.o
zif_iconv_mimeencode in iconv.o
php_iconv_stream_filter_appendbucket in iconv.o
php_iconv_stream_filter_appendbucket in iconv.o
php_iconv_stream_filter_appendbucket in iconv.o
_convert in encodings.o
"
res_9mkquery", referenced from:
zif_dns_getrecord in dns.o
"
FT_Set_CharSize", referenced from:
php_gdgdImageStringFTEx in gdft.o
"
libiconvclose", referenced from:
doconvert in gdkanji.o
_php_iconvstrlen in iconv.o
php_iconvstring in iconv.o
php_iconvstring in iconv.o
_php_iconvstrpos in iconv.o
_php_iconv_mimedecode in iconv.o
_php_iconv_mimedecode in iconv.o
_php_iconv_mimedecode in iconv.o
zif_iconvsubstr in iconv.o
zif_iconvsubstr in iconv.o
php_iconv_stream_filterdtor in iconv.o
zif_iconv_mimeencode in iconv.o
zif_iconv_mimeencode in iconv.o
_convert in encodings.o
"
res_9_dnskipname", referenced from:
zif_dns_getmx in dns.o
zif_dns_getmx in dns.o
zif_dns_getrecord in dns.o
"
FT_DoneFace", referenced from:
_fontRelease in gdft.o
"
FT_NewFace", referenced from:
_fontFetch in gdft.o
"
FT_DoneGlyph", referenced from:
php_gdgdImageStringFTEx in gdft.o
"
FT_GetKerning", referenced from:
php_gdgdImageStringFTEx in gdft.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make:
* [libs/libphp5.bundle] Error 1Message was edited by: teknocat
- 0
pterobyte ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
There should be no need to recompile PHP or Apache to add gettext. You should be able to simply add it as a dynamically loaded library.
Try this as root (or issue sudo -s before):
---
mkdir -p /SourceCache
cd /SourceCache
curl -O
http://ftp.gnu.org/pub/gnu/gettext/gettext-0.17.tar.gztar xzf gettext-0.17.tar.gz
cd gettext-0.17
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" ./configuremake
make install
---
cd /SourceCache
curl -O
http://www.opensource.apple.com/source/apachemod_php/apache_modphp-53/php-5.3.0.tar.bz2tar xjf php-5.3.0.tar.bz2
cd /SourceCache/php-5.3.0/ext/gettext
phpize
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" ./configuremake
make install
---
When done, edit/create /etc/php.ini and add:
extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/gettext.sonext issue:
sudo apachectl gracefulwith a little luck you are all set.
HTH,
Alex - 0
teknocat ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
While that may solve the issue with gettext, I'm still at a loss for installing freetype.
After trying again, I looked more closely at the make output right before the error message:
gcc -bundle -bundle_loader /usr/sbin/httpd -L/usr/lib -laprutil-1 -lexpat -liconv -lsqlite3 -L/usr/lib -lapr-1 -lpthread -I/usr/local/include -arch x86_64 -g -Os -pipe -no-cpp-precomp -fvisibility=hidden -arch x86_64 -bind
atload -L/usr/local/lib ext/date/php_date.o ext/date/lib/astro.o ext/date/lib/dow.o ext/date/lib/parse_date.o ext/date/lib/parse_tz.o ext/date/lib/timelib.o ext/date/lib/tm2unixtime.o ext/date/lib/unixtime2tm.o ext/date/lib/parse
isointervals.o ext/date/lib/interval.o ext/ereg/ereg.o ext/ereg/regex/regcomp.o ext/ereg/regex/regexec.o ext/ereg/regex/regerror.o ext/ereg/regex/regfree.o ext/libxml/libxml.o ext/openssl/openssl.o ext/openssl/xp_ssl.o ext/pcre/php_pcre.o ext/sqlite3/sqlite3.o ext/sqlite3/libsqlite/sqlite3.o ext/zlib/zlib.o ext/zlib/zlib
fopenwrapper.o ext/zlib/zlib_filter.o ext/bcmath/bcmath.o ext/bcmath/libbcmath/src/add.o ext/bcmath/libbcmath/src/div.o ext/bcmath/libbcmath/src/init.o ext/bcmath/libbcmath/src/neg.o ext/bcmath/libbcmath/src/outofmem.o ext/bcmath/libbcmath/src/raisemod.o ext/bcmath/libbcmath/src/rt.o ext/bcmath/libbcmath/src/sub.o ext/bcmath/libbcmath/src/compare.o ext/bcmath/libbcmath/src/divmod.o ext/bcmath/libbcmath/src/int2num.o ext/bcmath/libbcmath/src/num2long.o ext/bcmath/libbcmath/src/output.o ext/bcmath/libbcmath/src/recmul.o ext/bcmath/libbcmath/src/sqrt.o ext/bcmath/libbcmath/src/zero.o ext/bcmath/libbcmath/src/debug.o ext/bcmath/libbcmath/src/doaddsub.o ext/bcmath/libbcmath/src/nearzero.o ext/bcmath/libbcmath/src/num2str.o ext/bcmath/libbcmath/src/raise.o ext/bcmath/libbcmath/src/rmzero.o ext/bcmath/libbcmath/src/str2num.o ext/bz2/bz2.o ext/bz2/bz2_filter.o ext/calendar/calendar.o ext/calendar/dow.o ext/calendar/french.o ext/calendar/gregor.o ext/calendar/jewish.o ext/calendar/julian.o ext/calendar/easter.o ext/calendar/cal_unix.o ext/ctype/ctype.o ext/curl/interface.o ext/curl/multi.o ext/curl/streams.o ext/dom/php_dom.o ext/dom/attr.o ext/dom/document.o ext/dom/domerrorhandler.o ext/dom/domstringlist.o ext/dom/domexception.o ext/dom/namelist.o ext/dom/processinginstruction.o ext/dom/cdatasection.o ext/dom/documentfragment.o ext/dom/domimplementation.o ext/dom/element.o ext/dom/node.o ext/dom/string_extend.o ext/dom/characterdata.o ext/dom/documenttype.o ext/dom/domimplementationlist.o ext/dom/entity.o ext/dom/nodelist.o ext/dom/text.o ext/dom/comment.o ext/dom/domconfiguration.o ext/dom/domimplementationsource.o ext/dom/entityreference.o ext/dom/notation.o ext/dom/xpath.o ext/dom/dom_iterators.o ext/dom/typeinfo.o ext/dom/domerror.o ext/dom/domlocator.o ext/dom/namednodemap.o ext/dom/userdatahandler.o ext/exif/exif.o ext/fileinfo/fileinfo.o ext/fileinfo/libmagic/apprentice.o ext/fileinfo/libmagic/apptype.o ext/fileinfo/libmagic/ascmagic.o ext/fileinfo/libmagic/cdf.o ext/fileinfo/libmagic/cdf_time.o ext/fileinfo/libmagic/compress.o ext/fileinfo/libmagic/encoding.o ext/fileinfo/libmagic/fsmagic.o ext/fileinfo/libmagic/funcs.o ext/fileinfo/libmagic/is_tar.o ext/fileinfo/libmagic/magic.o ext/fileinfo/libmagic/print.o ext/fileinfo/libmagic/readcdf.o ext/fileinfo/libmagic/readelf.o ext/fileinfo/libmagic/softmagic.o ext/filter/filter.o ext/filter/sanitizing_filters.o ext/filter/logical_filters.o ext/filter/callback_filter.o ext/ftp/php_ftp.o ext/ftp/ftp.o ext/gd/gd.o ext/gd/libgd/gd.o ext/gd/libgd/gd_gd.o ext/gd/libgd/gd_gd2.o ext/gd/libgd/gd_io.o ext/gd/libgd/gd
iodp.o ext/gd/libgd/gd
iofile.o ext/gd/libgd/gd_ss.o ext/gd/libgd/gd
ioss.o ext/gd/libgd/gd_png.o ext/gd/libgd/gd_jpeg.o ext/gd/libgd/gdxpm.o ext/gd/libgd/gdfontt.o ext/gd/libgd/gdfonts.o ext/gd/libgd/gdfontmb.o ext/gd/libgd/gdfontl.o ext/gd/libgd/gdfontg.o ext/gd/libgd/gdtables.o ext/gd/libgd/gdft.o ext/gd/libgd/gdcache.o ext/gd/libgd/gdkanji.o ext/gd/libgd/wbmp.o ext/gd/libgd/gd_wbmp.o ext/gd/libgd/gdhelpers.o ext/gd/libgd/gd_topal.o ext/gd/libgd/gd
gifin.o ext/gd/libgd/xbm.o ext/gd/libgd/gd
gifout.o ext/gd/libgd/gd_security.o ext/gd/libgd/gd_filter.o ext/gd/libgd/gd_pixelate.o ext/gd/libgd/gd_arc.o ext/gd/libgd/gd_rotate.o ext/gd/libgd/gd_color.o ext/hash/hash.o ext/hash/hash_md.o ext/hash/hash_sha.o ext/hash/hash_ripemd.o ext/hash/hash_haval.o ext/hash/hash_tiger.o ext/hash/hash_gost.o ext/hash/hash_snefru.o ext/hash/hash_whirlpool.o ext/hash/hash_adler32.o ext/hash/hash_crc32.o ext/hash/hash_salsa.o ext/iconv/iconv.o ext/json/json.o ext/json/utf8
toutf16.o ext/json/utf8_decode.o ext/json/JSON_parser.o ext/ldap/ldap.o ext/mbstring/oniguruma/regcomp.o ext/mbstring/oniguruma/regerror.o ext/mbstring/oniguruma/regexec.o ext/mbstring/oniguruma/reggnu.o ext/mbstring/oniguruma/regparse.o ext/mbstring/oniguruma/regenc.o ext/mbstring/oniguruma/regext.o ext/mbstring/oniguruma/regsyntax.o ext/mbstring/oniguruma/regtrav.o ext/mbstring/oniguruma/regversion.o ext/mbstring/oniguruma/st.o ext/mbstring/oniguruma/enc/unicode.o ext/mbstring/oniguruma/enc/ascii.o ext/mbstring/oniguruma/enc/utf8.o ext/mbstring/oniguruma/enc/euc_jp.o ext/mbstring/oniguruma/enc/euc_tw.o ext/mbstring/oniguruma/enc/euc_kr.o ext/mbstring/oniguruma/enc/sjis.o ext/mbstring/oniguruma/enc/iso8859_1.o ext/mbstring/oniguruma/enc/iso8859_2.o ext/mbstring/oniguruma/enc/iso8859_3.o ext/mbstring/oniguruma/enc/iso8859_4.o ext/mbstring/oniguruma/enc/iso8859_5.o ext/mbstring/oniguruma/enc/iso8859_6.o ext/mbstring/oniguruma/enc/iso8859_7.o ext/mbstring/oniguruma/enc/iso8859_8.o ext/mbstring/oniguruma/enc/iso8859_9.o ext/mbstring/oniguruma/enc/iso8859_10.o ext/mbstring/oniguruma/enc/iso8859_11.o ext/mbstring/oniguruma/enc/iso8859_13.o ext/mbstring/oniguruma/enc/iso8859_14.o ext/mbstring/oniguruma/enc/iso8859_15.o ext/mbstring/oniguruma/enc/iso8859_16.o ext/mbstring/oniguruma/enc/koi8.o ext/mbstring/oniguruma/enc/koi8_r.o ext/mbstring/oniguruma/enc/big5.o ext/mbstring/oniguruma/enc/utf16_be.o ext/mbstring/oniguruma/enc/utf16_le.o ext/mbstring/oniguruma/enc/utf32_be.o ext/mbstring/oniguruma/enc/utf32_le.o ext/mbstring/libmbfl/filters/html_entities.o ext/mbstring/libmbfl/filters/mbfilter_7bit.o ext/mbstring/libmbfl/filters/mbfilter_ascii.o ext/mbstring/libmbfl/filters/mbfilter_base64.o ext/mbstring/libmbfl/filters/mbfilter_big5.o ext/mbstring/libmbfl/filters/mbfilter_byte2.o ext/mbstring/libmbfl/filters/mbfilter_byte4.o ext/mbstring/libmbfl/filters/mbfilter_cp1251.o ext/mbstring/libmbfl/filters/mbfilter_cp1252.o ext/mbstring/libmbfl/filters/mbfilter_cp1254.o ext/mbstring/libmbfl/filters/mbfilter_cp866.o ext/mbstring/libmbfl/filters/mbfilter_cp932.o ext/mbstring/libmbfl/filters/mbfilter_cp936.o ext/mbstring/libmbfl/filters/mbfilter
euccn.o ext/mbstring/libmbfl/filters/mbfilter
eucjp.o ext/mbstring/libmbfl/filters/mbfilter
euc_jpwin.o ext/mbstring/libmbfl/filters/mbfilter_cp51932.o ext/mbstring/libmbfl/filters/mbfilter
euckr.o ext/mbstring/libmbfl/filters/mbfilter
euctw.o ext/mbstring/libmbfl/filters/mbfilter_htmlent.o ext/mbstring/libmbfl/filters/mbfilter_hz.o ext/mbstring/libmbfl/filters/mbfilter
iso2022kr.o ext/mbstring/libmbfl/filters/mbfilter
iso88591.o ext/mbstring/libmbfl/filters/mbfilter
iso885910.o ext/mbstring/libmbfl/filters/mbfilter
iso885913.o ext/mbstring/libmbfl/filters/mbfilter
iso885914.o ext/mbstring/libmbfl/filters/mbfilter
iso885915.o ext/mbstring/libmbfl/filters/mbfilter
iso885916.o ext/mbstring/libmbfl/filters/mbfilter
iso88592.o ext/mbstring/libmbfl/filters/mbfilter
iso88593.o ext/mbstring/libmbfl/filters/mbfilter
iso88594.o ext/mbstring/libmbfl/filters/mbfilter
iso88595.o ext/mbstring/libmbfl/filters/mbfilter
iso88596.o ext/mbstring/libmbfl/filters/mbfilter
iso88597.o ext/mbstring/libmbfl/filters/mbfilter
iso88598.o ext/mbstring/libmbfl/filters/mbfilter
iso88599.o ext/mbstring/libmbfl/filters/mbfilter_jis.o ext/mbstring/libmbfl/filters/mbfilter
iso2022_jpms.o ext/mbstring/libmbfl/filters/mbfilter_koi8r.o ext/mbstring/libmbfl/filters/mbfilter_armscii8.o ext/mbstring/libmbfl/filters/mbfilter_qprint.o ext/mbstring/libmbfl/filters/mbfilter_sjis.o ext/mbstring/libmbfl/filters/mbfilter_ucs2.o ext/mbstring/libmbfl/filters/mbfilter_ucs4.o ext/mbstring/libmbfl/filters/mbfilter_uhc.o ext/mbstring/libmbfl/filters/mbfilter_utf16.o ext/mbstring/libmbfl/filters/mbfilter_utf32.o ext/mbstring/libmbfl/filters/mbfilter_utf7.o ext/mbstring/libmbfl/filters/mbfilter_utf7imap.o ext/mbstring/libmbfl/filters/mbfilter_utf8.o ext/mbstring/libmbfl/filters/mbfilter_uuencode.o ext/mbstring/libmbfl/filters/mbfilter_koi8u.o ext/mbstring/libmbfl/filters/mbfilter_cp850.o ext/mbstring/libmbfl/mbfl/mbfilter.o ext/mbstring/libmbfl/mbfl/mbfilter_8bit.o ext/mbstring/libmbfl/mbfl/mbfilter_pass.o ext/mbstring/libmbfl/mbfl/mbfilter_wchar.o ext/mbstring/libmbfl/mbfl/mbfl_convert.o ext/mbstring/libmbfl/mbfl/mbfl_encoding.o ext/mbstring/libmbfl/mbfl/mbfl
filteroutput.o ext/mbstring/libmbfl/mbfl/mbfl_ident.o ext/mbstring/libmbfl/mbfl/mbfl_language.o ext/mbstring/libmbfl/mbfl/mbfl
memorydevice.o ext/mbstring/libmbfl/mbfl/mbfl_string.o ext/mbstring/libmbfl/mbfl/mbfl_allocators.o ext/mbstring/libmbfl/nls/nls_de.o ext/mbstring/libmbfl/nls/nls_en.o ext/mbstring/libmbfl/nls/nls_ja.o ext/mbstring/libmbfl/nls/nls_kr.o ext/mbstring/libmbfl/nls/nls_neutral.o ext/mbstring/libmbfl/nls/nls_ru.o ext/mbstring/libmbfl/nls/nls_uni.o ext/mbstring/libmbfl/nls/nls_zh.o ext/mbstring/libmbfl/nls/nls_hy.o ext/mbstring/libmbfl/nls/nls_tr.o ext/mbstring/libmbfl/nls/nls_ua.o ext/mbstring/mbstring.o ext/mbstring/php_unicode.o ext/mbstring/mb_gpc.o ext/mbstring/php_mbregex.o ext/mysql/php_mysql.o ext/mysqli/mysqli.o ext/mysqli/mysqli_api.o ext/mysqli/mysqli_prop.o ext/mysqli/mysqli_nonapi.o ext/mysqli/mysqli_fe.o ext/mysqli/mysqli_report.o ext/mysqli/mysqli_driver.o ext/mysqli/mysqli_warning.o ext/mysqli/mysqli_exception.o ext/odbc/php_odbc.o ext/pdo/pdo.o ext/pdo/pdo_dbh.o ext/pdo/pdo_stmt.o ext/pdo/pdo
sqlparser.o ext/pdo/pdo_sqlstate.o ext/pdo
mysql/pdomysql.o ext/pdo
mysql/mysqldriver.o ext/pdo
mysql/mysqlstatement.o ext/pdo
sqlite/pdosqlite.o ext/pdo
sqlite/sqlitedriver.o ext/pdo
sqlite/sqlitestatement.o ext/phar/util.o ext/phar/tar.o ext/phar/zip.o ext/phar/stream.o ext/phar/func_interceptors.o ext/phar/dirstream.o ext/phar/phar.o ext/phar/phar_object.o ext/phar/phar
pathcheck.o ext/posix/posix.o ext/reflection/php_reflection.o ext/session/session.o ext/session/mod_files.o ext/session/mod_mm.o ext/session/mod_user.o ext/shmop/shmop.o ext/simplexml/simplexml.o ext/simplexml/sxe.o ext/snmp/snmp.o ext/soap/soap.o ext/soap/php_encoding.o ext/soap/php_http.o ext/soap/php
packetsoap.o ext/soap/php_schema.o ext/soap/php_sdl.o ext/soap/php_xml.o ext/sockets/sockets.o ext/spl/php_spl.o ext/spl/spl_functions.o ext/spl/spl_engine.o ext/spl/spl_iterators.o ext/spl/spl_array.o ext/spl/spl_directory.o ext/spl/spl_exceptions.o ext/spl/spl_observer.o ext/spl/spl_dllist.o ext/spl/spl_heap.o ext/spl/spl_fixedarray.o ext/sqlite/sqlite.o ext/sqlite/sess_sqlite.o ext/sqlite/pdo_sqlite2.o ext/sqlite/libsqlite/src/opcodes.o ext/sqlite/libsqlite/src/parse.o ext/sqlite/libsqlite/src/encode.o ext/sqlite/libsqlite/src/auth.o ext/sqlite/libsqlite/src/btree.o ext/sqlite/libsqlite/src/build.o ext/sqlite/libsqlite/src/delete.o ext/sqlite/libsqlite/src/expr.o ext/sqlite/libsqlite/src/func.o ext/sqlite/libsqlite/src/hash.o ext/sqlite/libsqlite/src/insert.o ext/sqlite/libsqlite/src/main.o ext/sqlite/libsqlite/src/os.o ext/sqlite/libsqlite/src/pager.o ext/sqlite/libsqlite/src/printf.o ext/sqlite/libsqlite/src/random.o ext/sqlite/libsqlite/src/select.o ext/sqlite/libsqlite/src/table.o ext/sqlite/libsqlite/src/tokenize.o ext/sqlite/libsqlite/src/update.o ext/sqlite/libsqlite/src/util.o ext/sqlite/libsqlite/src/vdbe.o ext/sqlite/libsqlite/src/attach.o ext/sqlite/libsqlite/src/btree_rb.o ext/sqlite/libsqlite/src/pragma.o ext/sqlite/libsqlite/src/vacuum.o ext/sqlite/libsqlite/src/copy.o ext/sqlite/libsqlite/src/vdbeaux.o ext/sqlite/libsqlite/src/date.o ext/sqlite/libsqlite/src/where.o ext/sqlite/libsqlite/src/trigger.o ext/standard/crypt_freesec.o ext/standard/crypt_blowfish.o ext/standard/php
cryptr.o ext/standard/array.o ext/standard/base64.o ext/standard/basic_functions.o ext/standard/browscap.o ext/standard/crc32.o ext/standard/crypt.o ext/standard/cyr_convert.o ext/standard/datetime.o ext/standard/dir.o ext/standard/dl.o ext/standard/dns.o ext/standard/exec.o ext/standard/file.o ext/standard/filestat.o ext/standard/flock_compat.o ext/standard/formatted_print.o ext/standard/fsock.o ext/standard/head.o ext/standard/html.o ext/standard/image.o ext/standard/info.o ext/standard/iptc.o ext/standard/lcg.o ext/standard/link.o ext/standard/mail.o ext/standard/math.o ext/standard/md5.o ext/standard/metaphone.o ext/standard/microtime.o ext/standard/pack.o ext/standard/pageinfo.o ext/standard/quot_print.o ext/standard/rand.o ext/standard/soundex.o ext/standard/string.o ext/standard/scanf.o ext/standard/syslog.o ext/standard/type.o ext/standard/uniqid.o ext/standard/url.o ext/standard/url_scanner.o ext/standard/var.o ext/standard/versioning.o ext/standard/assert.o ext/standard/strnatcmp.o ext/standard/levenshtein.o ext/standard/incomplete_class.o ext/standard/url
scannerex.o ext/standard/ftp
fopenwrapper.o ext/standard/http
fopenwrapper.o ext/standard/php
fopenwrapper.o ext/standard/credits.o ext/standard/css.o ext/standard/var_unserializer.o ext/standard/ftok.o ext/standard/sha1.o ext/standard/user_filters.o ext/standard/uuencode.o ext/standard/filters.o ext/standard/proc_open.o ext/standard/streamsfuncs.o ext/standard/http.o ext/sysvmsg/sysvmsg.o ext/sysvsem/sysvsem.o ext/sysvshm/sysvshm.o ext/tokenizer/tokenizer.o ext/tokenizer/tokenizer_data.o ext/xml/xml.o ext/xml/compat.o ext/xmlreader/php_xmlreader.o ext/xmlrpc/xmlrpc-epi-php.o ext/xmlrpc/libxmlrpc/base64.o ext/xmlrpc/libxmlrpc/simplestring.o ext/xmlrpc/libxmlrpc/xml
todandarpc.o ext/xmlrpc/libxmlrpc/xmlrpc_introspection.o ext/xmlrpc/libxmlrpc/encodings.o ext/xmlrpc/libxmlrpc/system_methods.o ext/xmlrpc/libxmlrpc/xml
toxmlrpc.o ext/xmlrpc/libxmlrpc/queue.o ext/xmlrpc/libxmlrpc/xml_element.o ext/xmlrpc/libxmlrpc/xmlrpc.o ext/xmlrpc/libxmlrpc/xml
tosoap.o ext/xmlwriter/php_xmlwriter.o ext/xsl/php_xsl.o ext/xsl/xsltprocessor.o ext/mysqlnd/mysqlnd.o ext/mysqlnd/mysqlnd_charset.o ext/mysqlnd/mysqlnd_wireprotocol.o ext/mysqlnd/mysqlnd_ps.o ext/mysqlnd/mysqlnd_loaddata.o ext/mysqlnd/mysqlnd_palloc.o ext/mysqlnd/mysqlnd
pscodec.o ext/mysqlnd/mysqlnd_statistics.o ext/mysqlnd/mysqlnd_qcache.o ext/mysqlnd/mysqlnd_result.o ext/mysqlnd/mysqlnd
resultmeta.o ext/mysqlnd/mysqlnd_debug.o ext/mysqlnd/mysqlnd
blockalloc.o ext/mysqlnd/php_mysqlnd.o TSRM/TSRM.o TSRM/tsrm
strtokr.o TSRM/tsrm
virtualcwd.o main/main.o main/snprintf.o main/spprintf.o main/php_sprintf.o main/safe_mode.o main/fopen_wrappers.o main/alloca.o main/php_scandir.o main/php_ini.o main/SAPI.o main/rfc1867.o main/php
contenttypes.o main/strlcpy.o main/strlcat.o main/mergesort.o main/reentrancy.o main/php_variables.o main/php_ticks.o main/network.o main/php
open_temporaryfile.o main/php_logos.o main/output.o main/getopt.o main/streams/streams.o main/streams/cast.o main/streams/memory.o main/streams/filter.o main/streams/plain_wrapper.o main/streams/userspace.o main/streams/transports.o main/streams/xp_socket.o main/streams/mmap.o main/streams/glob_wrapper.o Zend/zend
languageparser.o Zend/zend
languagescanner.o Zend/zend
iniparser.o Zend/zend
iniscanner.o Zend/zend_alloc.o Zend/zend_compile.o Zend/zend_constants.o Zend/zend
dynamicarray.o Zend/zend
executeAPI.o Zend/zend_highlight.o Zend/zend_llist.o Zend/zend_opcode.o Zend/zend_operators.o Zend/zend
ptrstack.o Zend/zend_stack.o Zend/zend_variables.o Zend/zend.o Zend/zend_API.o Zend/zend_extensions.o Zend/zend_hash.o Zend/zend_list.o Zend/zend_indent.o Zend/zend
builtinfunctions.o Zend/zend_sprintf.o Zend/zend_ini.o Zend/zend_qsort.o Zend/zend_multibyte.o Zend/zend
tshash.o Zend/zend_stream.o Zend/zend_iterators.o Zend/zend_interfaces.o Zend/zend_exceptions.o Zend/zend_strtod.o Zend/zend_gc.o Zend/zend_closures.o Zend/zend_float.o Zend/zend_objects.o Zend/zend
objecthandlers.o Zend/zend
objectsAPI.o Zend/zend
defaultclasses.o Zend/zend_execute.o sapi/apache2handler/mod_php5.o sapi/apache2handler/sapi_apache2.o sapi/apache2handler/apache_config.o sapi/apache2handler/php_functions.o main/internal_functions.o -lexslt -liodbc -lldap -llber -liconv -liconv -lfreetype -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lbz2 -lz -lpcre -lssl -lcrypto -lm -lxml2 -lz -licucore -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lssl -lcrypto -lssl -lcrypto -lz -lz -lxml2 -lz -licucore -lm -liodbc -lxml2 -lz -licucore -lm -lnetsnmp -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxslt -lxml2 -lz -licucore -lm -o libs/libphp5.bundle && cp libs/libphp5.bundle libs/libphp5.soYou can see "-lfreetype" as one of the flags for main/internal_functions.o, so that suggests to me that it's trying to use libfreetype.dylib at the point where it compiles the internal functions - correct me if I'm wrong on that assumption.
In any case, as a last ditch effort I took a look at /usr/lib/libfreetype.dylib which turned out to be a symlink to another file with a version number in it (libfreetype.6.3.16.dylib). I renamed that symlink (to keep a backup copy) and then created a new one to /usr/local/lib/libfreetype.6.3.16.dylib to see if that made any difference. I ran "make clean" then "make" again. No dice. Still got the same error, so this is suggesting that it doesn't like the x86 64-bit architecture file.
Would appreciate any suggestions anyone might have.
- 0
koncept ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I just found this bug report . It may be of assistance to you. This may be useful as well
- 0
teknocat ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks very much for those links, koncept! Hopefully the "incorrect architecture" message is just misleading and will be resolved once they've fixed the bugs with the linker.
Will give it another go with the next official release of PHP.
- 0
teknocat ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I just thought I would add that I tried rolling back to PHP 5.2.9 and still got an error about libfreetype.dylib being incorrect architecture. I used my configure string that worked every time in Leopard. It would seem, therefore, that the problem is related to something other than just a bug in the linker in 5.2.10 and 5.3 as those links suggested.
- 0
pterobyte ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
You will need to build everything as a universal binary with at least the 2 Intel architecures.
That said, 10.6 and the SDK both already contain libfreetype installed as a shared library.
- 0
koncept ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I tried every solution out there (also tried the 5.2.10 downgrade), but ended up throwing in the towel after many hours trying to get this working. I ended up rebuilding the server via <http://www.macports.org/> and then customized it for my needs. Went extremely smoothly and now I've got everything running. Here is a list of all the php5 modules available:
<pre><code>[root]# port list php5-*
php5-apc @3.1.2 php/php5-apc
php5-calendar @5.3.0 php/php5-calendar
php5-curl @5.3.0 php/php5-curl
php5-devel @5.3.0RC4 lang/php5-devel
php5-eaccelerator @0.9.6-rc1 php/php5-eaccelerator
php5-exif @5.3.0 php/php5-exif
php5-ftp @5.3.0 php/php5-ftp
php5-gd @5.3.0 php/php5-gd
php5-gettext @5.3.0 php/php5-gettext
php5-gmp @5.3.0 php/php5-gmp
php5-gtk @2.0.1 php/php5-gtk
php5-http @1.6.3 php/php5-http
php5-iconv @5.3.0 php/php5-iconv
php5-imagick @2.3.0 php/php5-imagick
php5-imap @5.3.0 php/php5-imap
php5-intl @5.3.0 php/php5-intl
php5-mbstring @5.3.0 php/php5-mbstring
php5-mcrypt @5.3.0 php/php5-mcrypt
php5-memcache @2.2.5 php/php5-memcache
php5-midgard @8.09.5 www/php5-midgard
php5-midgard2 @9.03.0 php/php5-midgard2
php5-mssql @5.3.0 php/php5-mssql
php5-mysql @5.3.0 php/php5-mysql
php5-openssl @5.3.0 php/php5-openssl
php5-oracle @5.3.0 php/php5-oracle
php5-pcntl @5.3.0 php/php5-pcntl
php5-posix @5.3.0 php/php5-posix
php5-postgresql @5.3.0 php/php5-postgresql
php5-pspell @5.3.0 php/php5-pspell
php5-readline @5.3.0 php/php5-readline
php5-rrdtool @1.0 php/php5-rrdtool
php5-soap @5.3.0 php/php5-soap
php5-sockets @5.3.0 php/php5-sockets
php5-sqlite @5.3.0 php/php5-sqlite
php5-sqlite3 @5.3.0 php/php5-sqlite3
php5-suhosin @0.9.29 php/php5-suhosin
php5-syck @0.55 php/php5-syck
php5-tidy @5.3.0 php/php5-tidy
php5-uploadprogress @1.0.1 php/php5-uploadprogress
php5-wddx @5.3.0 php/php5-wddx
php5-web @5.3.0 lang/php5-web
php5-xdebug @2.0.5 php/php5-xdebug
php5-xmlrpc @5.3.0 php/php5-xmlrpc
php5-xsl @5.3.0 php/php5-xsl
php5-yaz @1.0.14 php/php5-yaz
php5-zip @5.3.0 php/php5-zip
php5-zlib @5.3.0 php/php5-zlib</code></pre> - 0
teknocat ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Looks like Macports is the way I'll have to go too. It's certainly not a bad solution. Unfortunately it's still not quite working in 10.6. It won't install apr, which apache2 depends on. The following ticket has already been submitted:
https://trac.macports.org/ticket/21040
Ah well. Will just have to be patient until all the little 10.6 issues are sorted out.
- 0
pterobyte ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Careful with Macports or Fink on a Server. They have caused issues in the past.