Bug #17205 Updated: GD1.3 not working with ttf

From: Date: Fri, 28 Jun 2002 06:58:32 +0000
Subject: Bug #17205 Updated: GD1.3 not working with ttf
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12332@lists.php.net to get a copy of this message
ID: 17205 Updated by: sniper@php.net Reported By: ta@sot.com -Status: Open +Status: Closed Bug Type: GD related Operating System: Linux 2.2.14 PHP Version: 4.2.1 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-05-14 08:10:48] ta@sot.com 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 this bug report at http://bugs.php.net/?id=17205&edit=1

« previous php.bugs (#12332) next »