New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20460 (closed defect: fixed)

Opened 4 years ago

Last modified 12 months ago

php5-gtk 2.0.1 doesn't build with php 5.3.0: error: duplicate 'static'

Reported by: ryandesign@… Owned by: anant@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: jendave@…, apple@…, me@…, rudloff@…, anant@…, paolo.marco.maria@…
Port: php5-gtk

Description (last modified by ryandesign@…) (diff)

php5-gtk 2.0.1 doesn't build with php 5.3.0:

--->  Building php5-gtk
DEBUG: Executing org.macports.build (php5-gtk)
DEBUG: port allows a parallel build
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.4'
DEBUG: Assembled command: 'cd "/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1" && nice -n 10 make all'
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/libtool --mode=compile /usr/bin/gcc-4.0  -I./ext/gtk+/ -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/./ext/gtk+/ -DPHP_ATOM_INC -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/main -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1 -I/mp/include/php -I/mp/include/php/main -I/mp/include/php/TSRM -I/mp/include/php/Zend -I/mp/include/php/ext -I/mp/include/php/ext/date/lib -I/mp/include/glib-2.0 -I/mp/lib/glib-2.0/include -I/mp/include -I/mp/include/gtk-2.0 -I/mp/lib/gtk-2.0/include -I/mp/include/atk-1.0 -I/mp/include/cairo -I/mp/include/pango-1.0 -I/mp/include/pixman-1 -I/mp/include/freetype2 -I/mp/include/libpng12 -I/mp/include/libglade-2.0 -I/mp/include/libxml2  -I/mp/include -DHAVE_CONFIG_H  -O2   -c /mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c -o ./ext/gtk+/php_gtk+.lo 
mkdir ./ext/gtk+/.libs
 /usr/bin/gcc-4.0 -I./ext/gtk+/ -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/./ext/gtk+/ -DPHP_ATOM_INC -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/main -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1 -I/mp/include/php -I/mp/include/php/main -I/mp/include/php/TSRM -I/mp/include/php/Zend -I/mp/include/php/ext -I/mp/include/php/ext/date/lib -I/mp/include/glib-2.0 -I/mp/lib/glib-2.0/include -I/mp/include -I/mp/include/gtk-2.0 -I/mp/lib/gtk-2.0/include -I/mp/include/atk-1.0 -I/mp/include/cairo -I/mp/include/pango-1.0 -I/mp/include/pixman-1 -I/mp/include/freetype2 -I/mp/include/libpng12 -I/mp/include/libglade-2.0 -I/mp/include/libxml2 -I/mp/include -DHAVE_CONFIG_H -O2 -c /mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/./ext/gtk+/php_gtk+.c  -fno-common -DPIC -o ./ext/gtk+/.libs/php_gtk+.o
/bin/sh /mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/libtool --mode=compile /usr/bin/gcc-4.0  -Iext/gtk+/ -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/ext/gtk+/ -DPHP_ATOM_INC -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/main -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1 -I/mp/include/php -I/mp/include/php/main -I/mp/include/php/TSRM -I/mp/include/php/Zend -I/mp/include/php/ext -I/mp/include/php/ext/date/lib -I/mp/include/glib-2.0 -I/mp/lib/glib-2.0/include -I/mp/include -I/mp/include/gtk-2.0 -I/mp/lib/gtk-2.0/include -I/mp/include/atk-1.0 -I/mp/include/cairo -I/mp/include/pango-1.0 -I/mp/include/pixman-1 -I/mp/include/freetype2 -I/mp/include/libpng12 -I/mp/include/libglade-2.0 -I/mp/include/libxml2  -I/mp/include -DHAVE_CONFIG_H  -O2   -c ext/gtk+/gen_atk.c -o ext/gtk+/gen_atk.lo 
 /usr/bin/gcc-4.0 -Iext/gtk+/ -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/ext/gtk+/ -DPHP_ATOM_INC -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/include -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1/main -I/mp/var/macports/build/_Users_rschmidt_macports_dports_php_php5-gtk/work/php-gtk-2.0.1 -I/mp/include/php -I/mp/include/php/main -I/mp/include/php/TSRM -I/mp/include/php/Zend -I/mp/include/php/ext -I/mp/include/php/ext/date/lib -I/mp/include/glib-2.0 -I/mp/lib/glib-2.0/include -I/mp/include -I/mp/include/gtk-2.0 -I/mp/lib/gtk-2.0/include -I/mp/include/atk-1.0 -I/mp/include/cairo -I/mp/include/pango-1.0 -I/mp/include/pixman-1 -I/mp/include/freetype2 -I/mp/include/libpng12 -I/mp/include/libglade-2.0 -I/mp/include/libxml2 -I/mp/include -DHAVE_CONFIG_H -O2 -c ext/gtk+/gen_atk.c  -fno-common -DPIC -o ext/gtk+/.libs/gen_atk.o
ext/gtk+/gen_atk.c:272: error: duplicate 'static'
ext/gtk+/gen_atk.c:277: error: duplicate 'static'
ext/gtk+/gen_atk.c:282: error: duplicate 'static'
ext/gtk+/gen_atk.c:287: error: duplicate 'static'
ext/gtk+/gen_atk.c:292: error: duplicate 'static'
ext/gtk+/gen_atk.c:298: error: duplicate 'static'
ext/gtk+/gen_atk.c:303: error: duplicate 'static'
ext/gtk+/gen_atk.c:308: error: duplicate 'static'
ext/gtk+/gen_atk.c:313: error: duplicate 'static'
ext/gtk+/gen_atk.c:318: error: duplicate 'static'
ext/gtk+/gen_atk.c:440: error: duplicate 'static'
ext/gtk+/gen_atk.c:445: error: duplicate 'static'
ext/gtk+/gen_atk.c:722: error: duplicate 'static'
ext/gtk+/gen_atk.c:727: error: duplicate 'static'
ext/gtk+/gen_atk.c:732: error: duplicate 'static'
ext/gtk+/gen_atk.c:737: error: duplicate 'static'
ext/gtk+/gen_atk.c:742: error: duplicate 'static'
ext/gtk+/gen_atk.c:747: error: duplicate 'static'
ext/gtk+/gen_atk.c:791: error: duplicate 'static'
ext/gtk+/gen_atk.c:829: error: duplicate 'static'
ext/gtk+/gen_atk.c:923: error: duplicate 'static'
ext/gtk+/gen_atk.c:929: error: duplicate 'static'
ext/gtk+/gen_atk.c:934: error: duplicate 'static'
ext/gtk+/gen_atk.c:999: error: duplicate 'static'
ext/gtk+/gen_atk.c:1147: error: duplicate 'static'
ext/gtk+/gen_atk.c:1152: error: duplicate 'static'
ext/gtk+/gen_atk.c:1157: error: duplicate 'static'
ext/gtk+/gen_atk.c:1162: error: duplicate 'static'
ext/gtk+/gen_atk.c:1167: error: duplicate 'static'
ext/gtk+/gen_atk.c:1172: error: duplicate 'static'
ext/gtk+/gen_atk.c:1341: error: duplicate 'static'
ext/gtk+/gen_atk.c:1346: error: duplicate 'static'
ext/gtk+/gen_atk.c:1351: error: duplicate 'static'
ext/gtk+/gen_atk.c:1356: error: duplicate 'static'
ext/gtk+/gen_atk.c:1361: error: duplicate 'static'
ext/gtk+/gen_atk.c:1366: error: duplicate 'static'
make: *** [ext/gtk+/gen_atk.lo] Error 1

The php-gtk homepage said in May 2009 that the next version will support php 5.3, so it seems to be known that the current version does not.

Change History

comment:1 Changed 4 years ago by ryandesign@…

Similar errors are occurring with php5-sqlite3 and php5-intl.

comment:2 Changed 4 years ago by ryandesign@…

  • Description modified (diff)

comment:3 Changed 3 years ago by ryandesign@…

Has duplicate #26491.

comment:4 Changed 3 years ago by jendave@…

  • Cc jendave@… added

Cc Me!

comment:5 Changed 3 years ago by apple@…

  • Cc apple@… added

Cc Me!

comment:6 Changed 2 years ago by me@…

  • Cc me@… added

Cc Me!

comment:7 Changed 2 years ago by me@…

I can build php-gtk2 from SVN trunk (rev 310438) just fine against php 5.3.6 from macports and all of the other dependancies (eg. cairo). Can't we get an "unstable" package to help folks out?

comment:8 Changed 2 years ago 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....

comment:9 follow-up: ↓ 11 Changed 2 years ago by paolo.marco.maria@…

How to edit previous posts ?

comment:10 Changed 18 months ago by ryandesign@…

  • Cc rudloff@…, anant@… added

Has duplicate #32357.

comment:11 in reply to: ↑ 9 Changed 18 months ago by ryandesign@…

  • Cc paolo.marco.maria@… added

Replying to paolo.marco.maria@…:

How to edit previous posts ?

You can't; only admins can. I've fixed your WikiFormatting.

Did you find out whether php5-gtk works or not, following your modifications?

comment:12 Changed 12 months ago by ryandesign@…

  • Status changed from new to closed
  • Resolution set to fixed

Committed anyway in r93286.

Note: See TracTickets for help on using tickets.