From:             [EMAIL PROTECTED]
Operating system: Linux 2.2.14
PHP version:      4.2.1
PHP Bug Type:     GD related
Bug description:  GD1.3 not working with ttf

When php >=4.1 is configured with --with-gd and --with-ttf options while
you are having gd1.3 and freetype1 on your system, it will result an
unresolved link to "gdImageColorResolve()" function as you start the
apache daemon.

Also when you try to compile the gd extension separately by running gcc, a
warning will be produced saying that no definition can be found for that
function. I tried to use php without --with-ttf option and then everything
was ok.

The problem could be in declaring the function as "static" in
ext/gd/php_gd.h. I managed to solve the problem by simply copy-pasting
gdImageColorResolve() definition from ext/gd/gd.c to ext/gd/gdttf.c and
then everything worked out for me.

I also suspect that ext/gd/gdt1.c can also be problematic since this
function is called from this file as well.

-- 
Edit bug report at http://bugs.php.net/?id=17205&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17205&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17205&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17205&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17205&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17205&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17205&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17205&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17205&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17205&r=globals

Reply via email to