Compdigitec Labs

« | Home | »

Set of patches to allow PHP-GTK2 to compile with PHP6 (incomplete)

By admin | January 24, 2009

If you try to compile PHP-GTK 2.0.1 with PHP 6 (available at the Compdigitec Packaging Department), you will need a series of patches to allow it to compile with PHP 6 because the PHP-GTK generator does not like PHP 6. Here are a set of (incomplete, missing main/phpg_support.c) patches for the PHP-GTK2 generator:

This set of patches is incomplete because the build process will fail on

gcc -I/usr/dev/php-gtk-2.0.1/main -I. -I/usr/dev/php-gtk-2.0.1 -DPHP_ATOM_INC -I/usr/dev/php-gtk-2.0.1/include -I/usr/dev/php-gtk-2.0.1/main -I/usr/dev/php-gtk-2.0.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/php -DHAVE_CONFIG_H -g -O0 -Wall -c /usr/dev/php-gtk-2.0.1/main/phpg_support.c  -fPIC -DPIC -o main/.libs/phpg_support.o

which it fails with the following output:

/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘phpg_init_object’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:275: error: incompatible type for argument 2 of ‘zend_hash_find’
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘phpg_register_class’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:300: error: incompatible types in assignment
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:328: error: incompatible type for argument 2 of ‘zend_hash_find’
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:331: error: incompatible type for argument 2 of ‘_zend_hash_add_or_update’
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘phpg_register_interface’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:353: error: incompatible types in assignment
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘unset_abstract_flag’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:486: error: incompatible type for argument 2 of ‘zend_hash_quick_exists’
/usr/dev/php-gtk-2.0.1/main/phpg_support.c: In function ‘phpg_handler_marshal’:
/usr/dev/php-gtk-2.0.1/main/phpg_support.c:565: warning: passing argument 3 of ‘zend_is_callable’ from incompatible pointer type

If you found this article useful or helpful, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful or interesting articles!

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: PHP | 19 Comments »

19 Responses to “Set of patches to allow PHP-GTK2 to compile with PHP6 (incomplete)”

  1. โรงงานผลิตสายรัดพลาสติก Says:
    November 6th, 2024 at 23:25

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  2. เกมสล็อต ได้เงินจริง 888 Says:
    November 7th, 2024 at 21:23

    … [Trackback]

    […] Here you will find 59573 more Information to that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  3. 10000 Says:
    November 8th, 2024 at 09:06

    10000

    10000

  4. 9gm.ru Says:
    November 8th, 2024 at 09:47

    9gm.ru

    9gm.ru

  5. hdorg2.ru Says:
    November 10th, 2024 at 01:58

    hdorg2.ru

    https://hdorg2.ru/

  6. raso.su Says:
    November 10th, 2024 at 09:41

    raso.su

    raso.su

  7. ezybet Says:
    November 12th, 2024 at 02:21

    … [Trackback]

    […] Information to that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  8. yapay k脹zl脹k zar脹 Says:
    November 29th, 2024 at 03:12

    yapay k脹zl脹k zar脹

    yapay k脹zl脹k zar脹

  9. ลดข้าวดีด ข้าวเด้ง Says:
    December 2nd, 2024 at 20:01

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  10. Destination Wedding in France Says:
    December 5th, 2024 at 21:51

    … [Trackback]

    […] Information to that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  11. สล็อตเว็บตรง ทุนหลักร้อย Says:
    December 6th, 2024 at 23:10

    … [Trackback]

    […] There you can find 28199 additional Information to that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  12. onur テカzden anti seo テァalトアナ殞alarトア Says:
    December 7th, 2024 at 19:23

    onur テカzden anti seo テァalトアナ殞alarトア

    onur テカzden anti seo テァalトアナ殞alarトア

  13. meritking ナ殃kayetvar Says:
    December 7th, 2024 at 22:26

    meritking ナ殃kayetvar

    meritking ナ殃kayetvar

  14. meritking ( haberi kaldトアrトアn piナ殞an olursunuz ) Says:
    December 8th, 2024 at 06:48

    meritking ( haberi kaldトアrトアn piナ殞an olursunuz )

    meritking ( haberi kaldトアrトアn piナ殞an olursunuz )

  15. çorlu klima servisi Says:
    December 8th, 2024 at 07:23

    çorlu klima servisi

    çorlu klima servisi

  16. silivri avukat Says:
    December 9th, 2024 at 10:18

    silivri avukat

    silivri avukat

  17. ปั้มคนดูไลฟ์สด Says:
    December 9th, 2024 at 20:01

    … [Trackback]

    […] Read More on to that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  18. ชุดยูนิฟอร์ม Says:
    December 27th, 2024 at 03:10

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

  19. lnw69 Says:
    December 28th, 2024 at 19:07

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2009/01/24/set-of-patches-to-allow-php-gtk2-to-compile-with-php6/ […]

Comments