From:             [EMAIL PROTECTED]
Operating system: Linux RH 7.2
PHP version:      4.2.0
PHP Bug Type:     GD related
Bug description:  PHP won't find the freetype 1.3 headers on RH7.2

I am trying to compile PHP with GD and TTF support with a custom version of
the GD-1.8.4 library compiled with Freetype 1.3 on a RH 7.2 system which
came with both freetype 1.3 and freetype 2.0 rpms preinstalled by default.
I removed the gd-devel rpm which came preinstalled on the system in order
to use my own custom GD which is installed under /usr/local/lib.

I configure PHP with  '--with-ttf=/usr --with-gd=/usr/local
--enable-gd-native-ttf' and PHP configure detects the right GD, but it
doesn't detect freetype 1.3.

Looking in ext/config.m4, I find that the script looks for freetype1
headers in
  /usr/include/freetype.h
  /usr/include/freetype/freetype.h
  /usr/local/include/freetype.h
  /usr/local/include/freetype/freetype.h
  $TTF_DIR/include/freetype.h
  $TTF_DIR/include/freetype/freetype.h

But RH7.2 comes with the freetype1 headers installed in 
  /usr/include/freetype1/freetype/freetype.h

A workaround is to create a logical link from /usr/include/freetype ->
/usr/include/freetype1/freetype ... and that works... with that logical
link my PHP builds with TTF support...

... but I think a better fix would be to modify ext/gd/config.m4 to look
for freetype1 headers under $TTF_DIR/include/freetype1/freetype/freetype.h
as well.
-- 
Edit bug report at http://bugs.php.net/?id=17130&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17130&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17130&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17130&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17130&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17130&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17130&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17130&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17130&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17130&r=globals

Reply via email to