Bug#569118: php-imlib: FTBFS with php 5.3
On 2010-02-10 00:39:21 -0600, Raphael Geissert wrote: > > /tmp/buildd/php-imlib-0.7/imlib.c:46: error: duplicate 'static' > > /tmp/buildd/php-imlib-0.7/imlib.c:54: error: duplicate 'static' > > /tmp/buildd/php-imlib-0.7/imlib.c:77: error: 'second_arg_force_ref' > > undeclared here (not in a function) > > /tmp/buildd/php-imlib-0.7/imlib.c:114: > > error: 'third_arg_force_ref' undeclared here (not in a function) After googling a little bit I found the commit which removed those declarations from zend_modules.h: http://github.com/php/php-src/commit/d09789e53096b5afe625240172ee397e60198289 Copying the needed declarations into imlib.c lets it build again. Attached is a patch to fix the FTBFS (the deprecation warnings are still there). It would be good if an user of it could confirm that is still works as expected (didn't had time to test it yet). Michael --- php-imlib-0.7/imlib.c +++ php-imlib-0.7/imlib.c @@ -42,7 +42,17 @@ ZEND_DECLARE_MODULE_GLOBALS(imlib); -static + ZEND_BEGIN_ARG_INFO(second_arg_force_ref, 0) + ZEND_ARG_PASS_INFO(0) + ZEND_ARG_PASS_INFO(1) + ZEND_END_ARG_INFO(); + + ZEND_BEGIN_ARG_INFO(third_arg_force_ref, 0) + ZEND_ARG_PASS_INFO(0) + ZEND_ARG_PASS_INFO(0) + ZEND_ARG_PASS_INFO(1) + ZEND_END_ARG_INFO(); + ZEND_BEGIN_ARG_INFO(third_and_fourth_arg_force_ref, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) @@ -50,7 +60,6 @@ ZEND_ARG_PASS_INFO(1) ZEND_END_ARG_INFO(); -static ZEND_BEGIN_ARG_INFO(second_through_fifth_arg_force_ref, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(1) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#569118: php-imlib: FTBFS with php 5.3
Source: php-imlib Version: 0.7-1 Severity: serious Tags: sid Hi, Your package FTBFS with PHP 5.3 which is now in unstable. Part of the build log follows: > libtool: compile: i486-linux-gnu-gcc -I. -I/tmp/buildd/php-imlib-0.7 > -DPHP_ATOM_INC -I/tmp/buildd/php-imlib-0.7/include > -I/tmp/buildd/php-imlib-0.7/main -I/tmp/buildd/php-imlib-0.7 > -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM > -I/usr/include/php5/Zend -I/usr/include/php5/ext > -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -DHAVE_CONFIG_H -g -O2 -c /tmp/buildd/php-imlib-0.7/imlib.c -fPIC -DPIC -o > .libs/imlib.o > /tmp/buildd/php-imlib-0.7/imlib.c:46: error: duplicate 'static' > /tmp/buildd/php-imlib-0.7/imlib.c:54: error: duplicate 'static' > /tmp/buildd/php-imlib-0.7/imlib.c:77: error: 'second_arg_force_ref' > undeclared here (not in a function) > /tmp/buildd/php-imlib-0.7/imlib.c:114: > error: 'third_arg_force_ref' undeclared here (not in a function) There are some other warnings about deprecated functions. Cheers, -- Raphael Geissert - Debian Developer www.debian.org - get.debian.net -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#569118: php-imlib: FTBFS with php 5.3
On Fri, Mar 05, 2010 at 02:09:23PM +0100, Michael Bienia wrote: > It would be good if an user of it could confirm that is still works as > expected (didn't had time to test it yet). It does appear to work as expected, so far as I've been able to tell. Deprecation warnings are also still happening during compilation. Full build log follows: /bin/bash /tmp/build/php-imlib-0.7/libtool --mode=compile cc -I. -I/tmp/build/php-imlib-0.7 -DPHP_ATOM_INC -I/tmp/build/php-imlib-0.7/include -I/tmp/build/php-imlib-0.7/main -I/tmp/build/php-imlib-0.7 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/build/php-imlib-0.7/imlib.c -o imlib.lo libtool: compile: cc -I. -I/tmp/build/php-imlib-0.7 -DPHP_ATOM_INC -I/tmp/build/php-imlib-0.7/include -I/tmp/build/php-imlib-0.7/main -I/tmp/build/php-imlib-0.7 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H -g -O2 -c /tmp/build/php-imlib-0.7/imlib.c -fPIC -DPIC -o .libs/imlib.o /tmp/build/php-imlib-0.7/imlib.c: In function ‘_php_imlib_draw_something’: /tmp/build/php-imlib-0.7/imlib.c:501: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘_php_imlib_single_arg’: /tmp/build/php-imlib-0.7/imlib.c:533: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_add_color_to_color_range’: /tmp/build/php-imlib-0.7/imlib.c:560: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_blend_image_onto_image’: /tmp/build/php-imlib-0.7/imlib.c:586: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_clone_image’: /tmp/build/php-imlib-0.7/imlib.c:622: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_create_cropped_image’: /tmp/build/php-imlib-0.7/imlib.c:661: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_create_cropped_scaled_image’: /tmp/build/php-imlib-0.7/imlib.c:685: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_create_image’: /tmp/build/php-imlib-0.7/imlib.c:714: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_create_rotated_image’: /tmp/build/php-imlib-0.7/imlib.c:743: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_create_scaled_image’: /tmp/build/php-imlib-0.7/imlib.c:777: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_dump_image’: /tmp/build/php-imlib-0.7/imlib.c:820: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_free_color_range’: /tmp/build/php-imlib-0.7/imlib.c:913: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_free_font’: /tmp/build/php-imlib-0.7/imlib.c:930: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_free_image’: /tmp/build/php-imlib-0.7/imlib.c:947: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_get_text_size’: /tmp/build/php-imlib-0.7/imlib.c:966: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_image_blur’: /tmp/build/php-imlib-0.7/imlib.c:1002: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_image_draw_polygon’: /tmp/build/php-imlib-0.7/imlib.c:1048: warning: ‘zend_get_parameters_ex’ is deprecated (declared at /usr/include/php5/Zend/zend_API.h:222) /tmp/build/php-imlib-0.7/imlib.c: In function ‘zif_imlib_image_fill