php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59323 Fail to compile - spl_type.c:416: error: duplicate ?static?
Submitted: 2010-07-26 16:38 UTC Modified: 2011-01-18 15:54 UTC
From: arielpatschiki at gmail dot com Assigned: davidc (profile)
Status: Closed Package: SPL_Types (PECL)
PHP Version: 5.3.2 OS: Linux CentoOS 5 - 2.6.18-194.3.1
Private report: No CVE-ID: None
 [2010-07-26 16:38 UTC] arielpatschiki at gmail dot com
Description:
------------
When running the command "make", compiler fails and return a fatal error:

I Fixed the error by removing the word "static" from the 405 and 415 lines. The fix is written by Alex Dutra at the follow link: 

http://www.mail-archive.com/freebsd-ports@freebsd.org/msg26685.html

Quoting: "The macro ZEND_BEGIN_ARG_INFO_EX already includes 'static const'
keywords in the signature, so it's enough to remove the additional 'static'"

Reproduce code:
---------------
make

Expected result:
----------------
Build complete.

Actual result:
--------------
spl_type.c:405: error: duplicate ?static?
spl_type.c:415: error: duplicate ?static?
make: *** [spl_type.lo] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-13 06:43 UTC] jasonwyz98 at gmail dot com
Yep, got the same error:

/tmp/pear/temp/SPL_Types/spl_type.c: At top level:
/tmp/pear/temp/SPL_Types/spl_type.c:405: error: duplicate 
?static?
/tmp/pear/temp/SPL_Types/spl_type.c:415: error: duplicate 
?static?

Used the command "pecl install SPL_Types" to install the 
package.

Please fix.

Thanks
Jason
 [2011-01-18 15:54 UTC] david at echolibre dot com
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

This has been fixed in SVN and a release is coming shortly 
(0.3.1)
 [2011-08-19 12:22 UTC] gauthier dot delacroix at coreye dot fr
Seems that 7 months after the fix, version 0.3.1 still isn't available..?
 [2011-11-11 11:16 UTC] cannadark at pirateswar dot com
Run into same error. I'll try to fix myself bu is it going to be a new release?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 08 06:01:29 2024 UTC