php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28162 compile error in gdft.c
Submitted: 2004-04-26 18:06 UTC Modified: 2004-12-29 01:00 UTC
Votes:9
Avg. Score:4.3 ± 0.8
Reproduced:7 of 7 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (28.6%)
From: info at rhalff dot com Assigned:
Status: No Feedback Package: GD related
PHP Version: 5CVS-2004-04-26 (dev) OS: linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: info at rhalff dot com
New email:
PHP Version: OS:

 

 [2004-04-26 18:06 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-30 23:45 UTC] 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-12-21 07:58 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip


 [2004-12-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 06:01:29 2024 UTC