PHP 4.0 Bug #9364 Updated: Redeclaration cannot specify a different storage class
| From: | sas@php.net | Date: | Wed, 21 Feb 2001 07:43:54 +0000 |
| Subject: | PHP 4.0 Bug #9364 Updated: Redeclaration cannot specify a different storage class | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47126@lists.php.net to get a copy of this message | ||
ID: 9364
Updated by: sas
Reported By: amra@us.ibm.com
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
Assigned To:
Comments:
Thanks, I've fixed the first problem. The second one had already been addressed earlier.
Previous Comments:
---------------------------------------------------------------------------
[2001-02-20 17:41:07] amra@us.ibm.com
When trying to compile sapi/cgi/getopt.c and sapi/cgi/cgi_main.c, I get the following errors:
---------- begin [getopt..c] ----------
ERROR :15 The redeclaration cannot specify a different storage class.
ERROR :16 The redeclaration cannot specify a different storage class.
---------- end [getopt.c] ----------
I got rid of above error by removing static from
static int ap_php_opterr = 1;
static int ap_php_optopt;
---------- begin [cgi_main.c] ----------
ERROR :204 The redeclaration cannot specify a different storage class.
---------- end [cgi_main.c] ----------
I got rid of above error by removing static from
static sapi_module_struct sapi_module = {
I believe the errors are due to the conflicting declarations in sapi/cgi/php_getopt.h:
extern int ap_php_opterr;
extern int ap_php_optopt;
and the conflictng declaration in main/SAPI.h:
extern sapi_module_struct sapi_module;
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9364&edit=2