ID: 28162 Comment by: ralph at maxsoft dot com Reported By: info at rhalff dot com Status: Open Bug Type: Compile Failure Operating System: linux PHP Version: 5CVS-2004-04-26 (dev) New Comment:
I also saw this bug when compiling the php4 FreeBSD port for version 4.3.6. Following the suggestion in the bug report, I removed --with-freetype-dir=whatever from the top level Makefile, and then everything compiled without error, with make test reporting only 6 (presumably unrelated) errors, as follows: ===================================================================== TIME END 2004-05-28 22:25:18 ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 75 Exts tested : 13 --------------------------------------------------------------------- Number of tests : 592 Tests skipped : 256 (43.2%) Tests warned : 0 ( 0.0%) Tests failed : 6 ( 1.0%) Tests passed : 330 (55.7%) --------------------------------------------------------------------- Time taken : 274 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Bug #24773 (unset() of integers treated as arrays causes a crash) [tests/lang/bug24773.phpt] Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)") [tests/lang/bug24783.phpt] Bug #25547 (error_handler and array index with function call) [tests/lang/bug25547.phpt] Bug #27731 (error_reporing() call inside @ block does not work correctly) [tests/lang/bug27731.phpt] Bug #26862 (ob_flush() before output_reset_rewrite_vars() results in data loss) [ext/session/tests/bug26862.phpt] Bug #27780 (strtotime(+1 xxx) returns a wrong date/time) [ext/standard/tests/time/bug27780.phpt] ===================================================================== Until today, I have been running the FreeBSD port for version 4.3.5, which compiled without any problems. Previous Comments: ------------------------------------------------------------------------ [2004-04-30 23:45:57] info at rhalff dot com I compiled it again without the --with-freetype-dir=/usr configure option. And the compile is succesfull. Since freetype is bundeled with php5 maybe the configure option should be removed/ignored, so it will not look for an external freetype library ------------------------------------------------------------------------ [2004-04-26 18:06:01] info at rhalff dot com Description: ------------ php5 fails to compile, occures both in current snap as in RC2. I had no problem compiling previous versions of php5. Reproduce code: --------------- Compile options: --prefix=/usr \ --enable-discard-path \ --with-config-file-path=/etc/apache2/php5 \ --enable-safe-mode \ --enable-bcmath \ --with-bz2 \ --with-pic \ --enable-calendar \ --enable-ctype \ --with-gdbm \ --with-imap=/usr/local/imap-2002e\ --enable-dbase=shared \ --enable-dba=shared \ --enable-ftp \ --with-gd \ --enable-gd-native-ttf \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-freetype-dir=/usr \ --with-gmp=shared \ --with-mysql=shared,/usr \ --with-xml=/usr/local \ --enable-trans-sid \ --enable-shmop \ --enable-sockets \ --with-regex=php \ --enable-sysvsem \ --enable-sysvshm \ --enable-yp \ --enable-memory-limit \ --with-tsrm-pthreads \ --enable-shared \ --enable-debug \ --with-zlib=/usr \ --with-pspell=shared,/usr \ --with-gettext=shared,/usr \ --enable-inline-optimization \ --disable-static \ --with-mime-magic \ --with-mhash=/usr/local \ --enable-xslt \ --with-xslt-sablot \ --with-dom \ --with-xml-rpc \ --enable-wddx \ --enable-cli \ --with-readline \ --without-pear Expected result: ---------------- succesfull build Actual result: -------------- /php5_source/php5-200404261430/ext/gd/libgd/gdft.c -fPIC -DPIC -o ext/gd/libgd/gdft.lo /php5_source/php5-200404261430/ext/gd/libgd/gdft.c: In function `fontFetch': /php5_source/php5-200404261430/ext/gd/libgd/gdft.c:439: `FT_ENCODING_MS_SYMBOL' undeclared (first use in this function) /php5_source/php5-200404261430/ext/gd/libgd/gdft.c:439: (Each undeclared identifier is reported only once /php5_source/php5-200404261430/ext/gd/libgd/gdft.c:439: for each function it appears in.) /php5_source/php5-200404261430/ext/gd/libgd/gdft.c:440: `FT_ENCODING_ADOBE_CUSTOM' undeclared (first use in this function) /php5_source/php5-200404261430/ext/gd/libgd/gdft.c:440: `FT_ENCODING_ADOBE_STANDARD' undeclared (first use in this function) /php5_source/php5-200404261430/ext/gd/libgd/gdft.c: In function `gdImageStringFTEx': /php5_source/php5-200404261430/ext/gd/libgd/gdft.c:904: `FT_ENCODING_MS_SYMBOL' undeclared (first use in this function) make[1]: *** [ext/gd/libgd/gdft.lo] Error 1 make[1]: Leaving directory `/php5_source/php5-200404261430' make: *** [build] Error 2 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28162&edit=1