php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9364 Redeclaration cannot specify a different storage class
Submitted: 2001-02-20 17:41 UTC Modified: 2001-02-21 02:43 UTC
From: amra at us dot ibm dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.4pl1 OS: OS400
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: amra at us dot ibm dot com
New email:
PHP Version: OS:

 

 [2001-02-20 17:41 UTC] amra at us dot ibm dot 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; 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-21 02:43 UTC] sas@php.net
Thanks, I've fixed the first problem. The second one had already been addressed earlier.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Sep 19 23:00:01 2025 UTC