Source: php-gnupg
Version: 1.5.3-1
Severity: important

Good morning,

this package  FTBFS against gpgme 2 (available in experimental) with:

gnupg.c -o gnupg.lo  -MMD -MF gnupg.dep -MT gnupg.lo
libtool: compile:  cc -I. -I/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4 
-I/usr/include/php/20240924 -I/usr/include/php/20240924/main 
-I/usr/include/php/20240924/TSRM -I/usr/include/php/20240924/Zend 
-I/usr/include/php/20240924/ext -I/usr/include/php/20240924/ext/date/lib 
-Wdate-time -D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2 
-Werror=implicit-function-declaration 
-ffile-prefix-map=/home/ametzler/GPGME/php-gnupg-1.5.3=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wall -Wno-pedantic -fpermissive 
-D_GNU_SOURCE -DZEND_COMPILE_DL_EXT=1 -c 
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c -MMD -MF gnupg.dep -MT 
gnupg.lo  -fPIC -DPIC -o .libs/gnupg.o
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c: In function 
'zif_gnupg_encrypt':
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:513:48: warning: 
operation on '_phpc_this->err' may be undefined [-Wsequence-point]
  513 | #define PHP_GNUPG_DO(_action) ((PHPC_THIS->err = _action) == 
GPG_ERR_NO_ERROR)
      |                                ~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1453:14: note: in 
expansion of macro 'PHP_GNUPG_DO'
 1453 |         if (!PHP_GNUPG_DO(PHPC_THIS->err = gpgme_data_new(&out))) {
      |              ^~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c: In function 
'zif_gnupg_gettrustlist':
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1947:9: error: unknown 
type name 'gpgme_trust_item_t'
 1947 |         gpgme_trust_item_t item;
      |         ^~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1963:27: error: implicit 
declaration of function 'gpgme_op_trustlist_start'; did you mean 
'gpgme_op_keylist_start'? [-Werror=implicit-function-declaration]
 1963 |         if (!PHP_GNUPG_DO(gpgme_op_trustlist_start(PHPC_THIS->ctx, 
pattern, 0))) {
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:513:50: note: in 
definition of macro 'PHP_GNUPG_DO'
  513 | #define PHP_GNUPG_DO(_action) ((PHPC_THIS->err = _action) == 
GPG_ERR_NO_ERROR)
      |                                                  ^~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1968:29: error: implicit 
declaration of function 'gpgme_op_trustlist_next'; did you mean 
'gpgme_op_keylist_next'? [-Werror=implicit-function-declaration]
 1968 |         while (PHP_GNUPG_DO(gpgme_op_trustlist_next(PHPC_THIS->ctx, 
&item))) {
      |                             ^~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:513:50: note: in 
definition of macro 'PHP_GNUPG_DO'
  513 | #define PHP_GNUPG_DO(_action) ((PHPC_THIS->err = _action) == 
GPG_ERR_NO_ERROR)
      |                                                  ^~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:523:68: error: invalid 
type argument of '->' (have 'int')
  523 |                 PHPC_VAL_CAST_TO_PZVAL(_g_arr), #_g_name, 
_g_struct->_g_key)
      |                                                                    ^~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:525:9: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_LONG_EX'
  525 |         PHP_GNUPG_ARRAY_ADD_ASSOC_LONG_EX(_g_arr, _g_name, _g_struct, 
_g_name)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1972:17: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_LONG'
 1972 |                 PHP_GNUPG_ARRAY_ADD_ASSOC_LONG(sub_arr, level, item);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:523:68: error: invalid 
type argument of '->' (have 'int')
  523 |                 PHPC_VAL_CAST_TO_PZVAL(_g_arr), #_g_name, 
_g_struct->_g_key)
      |                                                                    ^~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:525:9: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_LONG_EX'
  525 |         PHP_GNUPG_ARRAY_ADD_ASSOC_LONG_EX(_g_arr, _g_name, _g_struct, 
_g_name)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1973:17: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_LONG'
 1973 |                 PHP_GNUPG_ARRAY_ADD_ASSOC_LONG(sub_arr, type, item);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:529:68: error: invalid 
type argument of '->' (have 'int')
  529 |                 PHPC_VAL_CAST_TO_PZVAL(_g_arr), #_g_name, 
_g_struct->_g_key)
      |                                                                    ^~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:531:9: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX'
  531 |         PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX(_g_arr, _g_name, _g_struct, 
_g_name)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1974:17: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR'
 1974 |                 PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(sub_arr, keyid, item);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:529:68: error: invalid 
type argument of '->' (have 'int')
  529 |                 PHPC_VAL_CAST_TO_PZVAL(_g_arr), #_g_name, 
_g_struct->_g_key)
      |                                                                    ^~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1975:17: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX'
 1975 |                 PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX(sub_arr, ownertrust, 
item, owner_trust);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:529:68: error: invalid 
type argument of '->' (have 'int')
  529 |                 PHPC_VAL_CAST_TO_PZVAL(_g_arr), #_g_name, 
_g_struct->_g_key)
      |                                                                    ^~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:531:9: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX'
  531 |         PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX(_g_arr, _g_name, _g_struct, 
_g_name)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1976:17: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR'
 1976 |                 PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(sub_arr, validity, item);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:529:68: error: invalid 
type argument of '->' (have 'int')
  529 |                 PHPC_VAL_CAST_TO_PZVAL(_g_arr), #_g_name, 
_g_struct->_g_key)
      |                                                                    ^~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:531:9: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX'
  531 |         PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR_EX(_g_arr, _g_name, _g_struct, 
_g_name)
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1977:17: note: in 
expansion of macro 'PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR'
 1977 |                 PHP_GNUPG_ARRAY_ADD_ASSOC_CSTR(sub_arr, name, item);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:1978:17: error: implicit 
declaration of function 'gpgme_trust_item_unref'; did you mean 
'gpgme_result_unref'? [-Werror=implicit-function-declaration]
 1978 |                 gpgme_trust_item_unref(item);
      |                 ^~~~~~~~~~~~~~~~~~~~~~
      |                 gpgme_result_unref
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c: In function 
'passphrase_decrypt_cb':
/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4/gnupg.c:747:17: warning: 
ignoring return value of 'write' declared with attribute 'warn_unused_result' 
[-Wunused-result]
  747 |                 write(fd, "\n", 1);
      |                 ^~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:208: gnupg.lo] Error 1
make[2]: Leaving directory '/home/ametzler/GPGME/php-gnupg-1.5.3/build-8.4'
dh_auto_build: error: cd build-8.4 && make -j1 returned exit code 2
make[1]: *** [/usr/share/dh-php/pkg-pecl.mk:112: build-8.4-stamp] Error 25
make[1]: Leaving directory '/home/ametzler/GPGME/php-gnupg-1.5.3'
make: *** [/usr/share/dh-php/pkg-pecl.mk:82: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Reply via email to