[MacPorts] #20460: php5-gtk 2.0.1 doesn't build with php 5.3.0: error: duplicate 'static'

MacPorts noreply at macports.org
Wed May 4 06:46:00 PDT 2011


#20460: php5-gtk 2.0.1 doesn't build with php 5.3.0: error: duplicate 'static'
-------------------------------------+--------------------------------------
 Reporter:  ryandesign@…             |       Owner:  anant@…     
     Type:  defect                   |      Status:  new         
 Priority:  Normal                   |   Milestone:              
Component:  ports                    |     Version:  1.7.1       
 Keywords:                           |        Port:  php5-gtk    
-------------------------------------+--------------------------------------

Comment(by paolo.marco.maria@…):

 I have made it !!!!

 If you look, most of the errors are like:

 ext/gtk+/some_code.c:xyz: error: duplicate 'static'

 If you correct by hand all these errors, you can manage to do compile it !

 To correct i mean to open each some_code.c file, there are at least 10
 files to do, and remove such lines like this example:

 bad one:

 static <--- REMOVE IT !!!!
 ZEND_BEGIN_ARG_INFO(arginfo_gobject_block, 0)
     ZEND_ARG_INFO(0, handler_id)
 ZEND_END_ARG_INFO();

 good one:

 ZEND_BEGIN_ARG_INFO(arginfo_gobject_block, 0)
     ZEND_ARG_INFO(0, handler_id)
 ZEND_END_ARG_INFO();


 I know that is a bit tricky, but it seems to work,
 Now I have to do some test to see if it only compiles or
 it also works....

-- 
Ticket URL: <https://trac.macports.org/ticket/20460#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list