php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7314 gd_globals undeclared [gd.c]
Submitted: 2000-10-18 14:31 UTC Modified: 2000-10-22 12:42 UTC
From: percy at py dot dhs dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: Solaris 2.6
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: percy at py dot dhs dot org
New email:
PHP Version: OS:

 

 [2000-10-18 14:31 UTC] percy at py dot dhs dot org
When --with-servlet and --with-gd, I got
gd.c: In function `php_if_imagepalettecopy':
gd.c:858: `gd_globals' undeclared (first use in this function)
gd.c:858: (Each undeclared identifier is reported only once
gd.c:858: for each function it appears in.)
gd.c: In function `php_if_imagepsloadfont':
gd.c:2122: `gd_globals' undeclared (first use in this function)
gd.c: In function `php_if_imagepsfreefont':
gd.c:2203: `gd_globals' undeclared (first use in this function)
gd.c: In function `php_if_imagepsencodefont':
gd.c:2229: `gd_globals' undeclared (first use in this function)
gd.c: In function `php_if_imagepsextendfont':
gd.c:2265: `gd_globals' undeclared (first use in this function)
gd.c: In function `php_if_imagepsslantfont':
gd.c:2291: `gd_globals' undeclared (first use in this function)
gd.c: In function `php_if_imagepstext':
gd.c:2366: `gd_globals' undeclared (first use in this function)
gd.c: In function `php_if_imagepsbbox':
gd.c:2504: `gd_globals' undeclared (first use in this function)
make[1]: *** [gd.lo] Error 1
make[1]: Leaving directory `/mnt/src/src/php-4.0.3pl1/ext/gd'
make: *** [all-recursive] Error 1

I guess --with-servlet cause #define ZTS 1 which in turns causes problem in gd.c

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-22 12:42 UTC] sas@php.net
The GD library is not reentrant, so it would not make any sense to compile it in ZTS module.

Future versions will not enable gd by default, please use --without-gd in current releases.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 02:00:01 2026 UTC