[DRE-maint] Bug#1117232: ruby-gpgme: FTBFS against gpgme 2 (error: 'gpgme_op_export_keys' undeclared)
Andreas Metzler
ametzler at bebt.de
Sun Oct 5 10:35:54 BST 2025
Source: ruby-gpgme
Version: 2.0.23-1
Severity: important
Good morning,
this package FTBFS against gpgme 2 (available in experimental) with:
gpgme_n.c: In function 'rb_s_gpgme_op_edit':
gpgme_n.c:1469:3: warning: 'gpgme_op_edit' is deprecated [-Wdeprecated-declarations]
1469 | err = gpgme_op_edit (ctx, key, edit_cb, (void *)vcb, out);
| ^~~
In file included from gpgme_n.c:43:
/usr/include/gpgme.h:2734:15: note: declared here
2734 | gpgme_error_t gpgme_op_edit (gpgme_ctx_t ctx, gpgme_key_t key,
| ^~~~~~~~~~~~~
gpgme_n.c: In function 'rb_s_gpgme_op_edit_start':
gpgme_n.c:1498:3: warning: 'gpgme_op_edit_start' is deprecated [-Wdeprecated-declarations]
1498 | err = gpgme_op_edit_start (ctx, key, edit_cb, (void *)vcb, out);
| ^~~
/usr/include/gpgme.h:2731:15: note: declared here
2731 | gpgme_error_t gpgme_op_edit_start (gpgme_ctx_t ctx, gpgme_key_t key,
| ^~~~~~~~~~~~~~~~~~~
gpgme_n.c: In function 'rb_s_gpgme_op_card_edit':
gpgme_n.c:1527:3: warning: 'gpgme_op_card_edit' is deprecated [-Wdeprecated-declarations]
1527 | err = gpgme_op_card_edit (ctx, key, edit_cb, (void *)vcb, out);
| ^~~
/usr/include/gpgme.h:2741:15: note: declared here
2741 | gpgme_error_t gpgme_op_card_edit (gpgme_ctx_t ctx, gpgme_key_t key,
| ^~~~~~~~~~~~~~~~~~
gpgme_n.c: In function 'rb_s_gpgme_op_card_edit_start':
gpgme_n.c:1556:3: warning: 'gpgme_op_card_edit_start' is deprecated [-Wdeprecated-declarations]
1556 | err = gpgme_op_card_edit_start (ctx, key, edit_cb, (void *)vcb, out);
| ^~~
/usr/include/gpgme.h:2737:15: note: declared here
2737 | gpgme_error_t gpgme_op_card_edit_start (gpgme_ctx_t ctx, gpgme_key_t key,
| ^~~~~~~~~~~~~~~~~~~~~~~~
gpgme_n.c: In function 'rb_s_gpgme_op_trustlist_start':
gpgme_n.c:1572:9: error: implicit declaration of function 'gpgme_op_trustlist_start'; did you mean 'rb_s_gpgme_op_trustlist_start'? [-Wimplicit-function-declaration]
1572 | err = gpgme_op_trustlist_start (ctx, StringValueCStr(vpattern),
| ^~~~~~~~~~~~~~~~~~~~~~~~
| rb_s_gpgme_op_trustlist_start
gpgme_n.c: In function 'rb_s_gpgme_op_trustlist_next':
gpgme_n.c:1581:3: error: unknown type name 'gpgme_trust_item_t'
1581 | gpgme_trust_item_t item;
| ^~~~~~~~~~~~~~~~~~
gpgme_n.c:1591:9: error: implicit declaration of function 'gpgme_op_trustlist_next'; did you mean 'rb_s_gpgme_op_trustlist_next'? [-Wimplicit-function-declaration]
1591 | err = gpgme_op_trustlist_next (ctx, &item);
| ^~~~~~~~~~~~~~~~~~~~~~~
| rb_s_gpgme_op_trustlist_next
In file included from /usr/include/ruby-3.3.0/ruby/internal/assume.h:29,
from /usr/include/ruby-3.3.0/ruby/backward/2/assume.h:24,
from /usr/include/ruby-3.3.0/ruby/defines.h:72,
from /usr/include/ruby-3.3.0/ruby/ruby.h:25,
from /usr/include/ruby-3.3.0/ruby.h:38,
from gpgme_n.c:39:
gpgme_n.c:110:35: error: 'gpgme_trust_item_unref' undeclared (first use in this function); did you mean 'gpgme_result_unref'?
110 | Data_Wrap_Struct(cTrustItem, 0, gpgme_trust_item_unref, item)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro 'RBIMPL_CAST'
31 | # define RBIMPL_CAST(expr) (expr)
| ^~~~
/usr/include/ruby-3.3.0/ruby/internal/core/rdata.h:207:9: note: in expansion of macro 'RBIMPL_DATA_FUNC'
207 | RBIMPL_DATA_FUNC(free))
| ^~~~~~~~~~~~~~~~
gpgme_n.c:110:3: note: in expansion of macro 'Data_Wrap_Struct'
110 | Data_Wrap_Struct(cTrustItem, 0, gpgme_trust_item_unref, item)
| ^~~~~~~~~~~~~~~~
gpgme_n.c:1594:15: note: in expansion of macro 'WRAP_GPGME_TRUST_ITEM'
1594 | vitem = WRAP_GPGME_TRUST_ITEM(item);
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:110:35: note: each undeclared identifier is reported only once for each function it appears in
110 | Data_Wrap_Struct(cTrustItem, 0, gpgme_trust_item_unref, item)
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro 'RBIMPL_CAST'
31 | # define RBIMPL_CAST(expr) (expr)
| ^~~~
/usr/include/ruby-3.3.0/ruby/internal/core/rdata.h:207:9: note: in expansion of macro 'RBIMPL_DATA_FUNC'
207 | RBIMPL_DATA_FUNC(free))
| ^~~~~~~~~~~~~~~~
gpgme_n.c:110:3: note: in expansion of macro 'Data_Wrap_Struct'
110 | Data_Wrap_Struct(cTrustItem, 0, gpgme_trust_item_unref, item)
| ^~~~~~~~~~~~~~~~
gpgme_n.c:1594:15: note: in expansion of macro 'WRAP_GPGME_TRUST_ITEM'
1594 | vitem = WRAP_GPGME_TRUST_ITEM(item);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/ruby-3.3.0/ruby/internal/core.h:27,
from /usr/include/ruby-3.3.0/ruby/ruby.h:29:
/usr/include/ruby-3.3.0/ruby/internal/core/rdata.h:205:9: error: passing argument 2 of 'rb_data_object_wrap' makes pointer from integer without a cast [-Wint-conversion]
205 | (sval), \
| ^~~~~~
| |
| int
gpgme_n.c:110:3: note: in expansion of macro 'Data_Wrap_Struct'
110 | Data_Wrap_Struct(cTrustItem, 0, gpgme_trust_item_unref, item)
| ^~~~~~~~~~~~~~~~
gpgme_n.c:1594:15: note: in expansion of macro 'WRAP_GPGME_TRUST_ITEM'
1594 | vitem = WRAP_GPGME_TRUST_ITEM(item);
| ^~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/core/rdata.h:166:46: note: expected 'void *' but argument is of type 'int'
166 | VALUE rb_data_object_wrap(VALUE klass, void *datap, RUBY_DATA_FUNC dmark, RUBY_DATA_FUNC dfree);
| ~~~~~~^~~~~
In file included from /usr/include/ruby-3.3.0/ruby/internal/value_type.h:30,
from /usr/include/ruby-3.3.0/ruby/internal/fl_type.h:38,
from /usr/include/ruby-3.3.0/ruby/internal/core/rstring.h:30,
from /usr/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:29,
from /usr/include/ruby-3.3.0/ruby/internal/arithmetic.h:24,
from /usr/include/ruby-3.3.0/ruby/ruby.h:28:
gpgme_n.c:1595:52: error: invalid type argument of '->' (have 'int')
1595 | rb_iv_set (vitem, "@keyid", rb_str_new2 (item->keyid));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/constant_p.h:33:55: note: in definition of macro 'RBIMPL_CONSTANT_P'
33 | # define RBIMPL_CONSTANT_P(expr) __builtin_constant_p(expr)
| ^~~~
/usr/include/ruby-3.3.0/ruby/internal/intern/string.h:1675:21: note: in expansion of macro 'rb_str_new_cstr'
1675 | #define rb_str_new2 rb_str_new_cstr /**< @old{rb_str_new_cstr} */
| ^~~~~~~~~~~~~~~
gpgme_n.c:1595:35: note: in expansion of macro 'rb_str_new2'
1595 | rb_iv_set (vitem, "@keyid", rb_str_new2 (item->keyid));
| ^~~~~~~~~~~
In file included from /usr/include/ruby-3.3.0/ruby/intern.h:56,
from /usr/include/ruby-3.3.0/ruby/ruby.h:194:
gpgme_n.c:1595:52: error: invalid type argument of '->' (have 'int')
1595 | rb_iv_set (vitem, "@keyid", rb_str_new2 (item->keyid));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/intern/string.h:1517:25: note: in definition of macro 'rb_str_new_cstr'
1517 | rb_str_new_cstr) (str))
| ^~~
gpgme_n.c:1595:35: note: in expansion of macro 'rb_str_new2'
1595 | rb_iv_set (vitem, "@keyid", rb_str_new2 (item->keyid));
| ^~~~~~~~~~~
In file included from /usr/include/ruby-3.3.0/ruby/internal/arithmetic/int.h:26,
from /usr/include/ruby-3.3.0/ruby/internal/arithmetic/char.h:23:
gpgme_n.c:1596:46: error: invalid type argument of '->' (have 'int')
1596 | rb_iv_set (vitem, "@type", INT2FIX(item->type));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
gpgme_n.c:1596:46: error: invalid type argument of '->' (have 'int')
1596 | rb_iv_set (vitem, "@type", INT2FIX(item->type));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro 'RBIMPL_CAST'
31 | # define RBIMPL_CAST(expr) (expr)
| ^~~~
gpgme_n.c:1596:34: note: in expansion of macro 'INT2FIX'
1596 | rb_iv_set (vitem, "@type", INT2FIX(item->type));
| ^~~~~~~
gpgme_n.c:1596:46: error: invalid type argument of '->' (have 'int')
1596 | rb_iv_set (vitem, "@type", INT2FIX(item->type));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:352:20: note: in definition of macro 'INT2FIX'
352 | RB_INT2FIX(i))
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:1596:34: note: in expansion of macro 'INT2FIX'
1596 | rb_iv_set (vitem, "@type", INT2FIX(item->type));
| ^~~~~~~
gpgme_n.c:1597:47: error: invalid type argument of '->' (have 'int')
1597 | rb_iv_set (vitem, "@level", INT2FIX(item->level));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
gpgme_n.c:1597:47: error: invalid type argument of '->' (have 'int')
1597 | rb_iv_set (vitem, "@level", INT2FIX(item->level));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/cast.h:31:29: note: in definition of macro 'RBIMPL_CAST'
31 | # define RBIMPL_CAST(expr) (expr)
| ^~~~
gpgme_n.c:1597:35: note: in expansion of macro 'INT2FIX'
1597 | rb_iv_set (vitem, "@level", INT2FIX(item->level));
| ^~~~~~~
gpgme_n.c:1597:47: error: invalid type argument of '->' (have 'int')
1597 | rb_iv_set (vitem, "@level", INT2FIX(item->level));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:352:20: note: in definition of macro 'INT2FIX'
352 | RB_INT2FIX(i))
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:1597:35: note: in expansion of macro 'INT2FIX'
1597 | rb_iv_set (vitem, "@level", INT2FIX(item->level));
| ^~~~~~~
gpgme_n.c:1598:15: error: invalid type argument of '->' (have 'int')
1598 | if (item->owner_trust)
| ^~
gpgme_n.c:1599:60: error: invalid type argument of '->' (have 'int')
1599 | rb_iv_set (vitem, "@owner_trust", rb_str_new2 (item->owner_trust));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/constant_p.h:33:55: note: in definition of macro 'RBIMPL_CONSTANT_P'
33 | # define RBIMPL_CONSTANT_P(expr) __builtin_constant_p(expr)
| ^~~~
/usr/include/ruby-3.3.0/ruby/internal/intern/string.h:1675:21: note: in expansion of macro 'rb_str_new_cstr'
1675 | #define rb_str_new2 rb_str_new_cstr /**< @old{rb_str_new_cstr} */
| ^~~~~~~~~~~~~~~
gpgme_n.c:1599:43: note: in expansion of macro 'rb_str_new2'
1599 | rb_iv_set (vitem, "@owner_trust", rb_str_new2 (item->owner_trust));
| ^~~~~~~~~~~
gpgme_n.c:1599:60: error: invalid type argument of '->' (have 'int')
1599 | rb_iv_set (vitem, "@owner_trust", rb_str_new2 (item->owner_trust));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/intern/string.h:1517:25: note: in definition of macro 'rb_str_new_cstr'
1517 | rb_str_new_cstr) (str))
| ^~~
gpgme_n.c:1599:43: note: in expansion of macro 'rb_str_new2'
1599 | rb_iv_set (vitem, "@owner_trust", rb_str_new2 (item->owner_trust));
| ^~~~~~~~~~~
gpgme_n.c:1600:55: error: invalid type argument of '->' (have 'int')
1600 | rb_iv_set (vitem, "@validity", rb_str_new2 (item->validity));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/constant_p.h:33:55: note: in definition of macro 'RBIMPL_CONSTANT_P'
33 | # define RBIMPL_CONSTANT_P(expr) __builtin_constant_p(expr)
| ^~~~
/usr/include/ruby-3.3.0/ruby/internal/intern/string.h:1675:21: note: in expansion of macro 'rb_str_new_cstr'
1675 | #define rb_str_new2 rb_str_new_cstr /**< @old{rb_str_new_cstr} */
| ^~~~~~~~~~~~~~~
gpgme_n.c:1600:38: note: in expansion of macro 'rb_str_new2'
1600 | rb_iv_set (vitem, "@validity", rb_str_new2 (item->validity));
| ^~~~~~~~~~~
gpgme_n.c:1600:55: error: invalid type argument of '->' (have 'int')
1600 | rb_iv_set (vitem, "@validity", rb_str_new2 (item->validity));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/intern/string.h:1517:25: note: in definition of macro 'rb_str_new_cstr'
1517 | rb_str_new_cstr) (str))
| ^~~
gpgme_n.c:1600:38: note: in expansion of macro 'rb_str_new2'
1600 | rb_iv_set (vitem, "@validity", rb_str_new2 (item->validity));
| ^~~~~~~~~~~
gpgme_n.c:1601:15: error: invalid type argument of '->' (have 'int')
1601 | if (item->name)
| ^~
gpgme_n.c:1602:53: error: invalid type argument of '->' (have 'int')
1602 | rb_iv_set (vitem, "@name", rb_str_new2 (item->name));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/constant_p.h:33:55: note: in definition of macro 'RBIMPL_CONSTANT_P'
33 | # define RBIMPL_CONSTANT_P(expr) __builtin_constant_p(expr)
| ^~~~
/usr/include/ruby-3.3.0/ruby/internal/intern/string.h:1675:21: note: in expansion of macro 'rb_str_new_cstr'
1675 | #define rb_str_new2 rb_str_new_cstr /**< @old{rb_str_new_cstr} */
| ^~~~~~~~~~~~~~~
gpgme_n.c:1602:36: note: in expansion of macro 'rb_str_new2'
1602 | rb_iv_set (vitem, "@name", rb_str_new2 (item->name));
| ^~~~~~~~~~~
gpgme_n.c:1602:53: error: invalid type argument of '->' (have 'int')
1602 | rb_iv_set (vitem, "@name", rb_str_new2 (item->name));
| ^~
/usr/include/ruby-3.3.0/ruby/internal/intern/string.h:1517:25: note: in definition of macro 'rb_str_new_cstr'
1517 | rb_str_new_cstr) (str))
| ^~~
gpgme_n.c:1602:36: note: in expansion of macro 'rb_str_new2'
1602 | rb_iv_set (vitem, "@name", rb_str_new2 (item->name));
| ^~~~~~~~~~~
gpgme_n.c: In function 'rb_s_gpgme_op_trustlist_end':
gpgme_n.c:1620:9: error: implicit declaration of function 'gpgme_op_trustlist_end'; did you mean 'rb_s_gpgme_op_trustlist_end'? [-Wimplicit-function-declaration]
1620 | err = gpgme_op_trustlist_end (ctx);
| ^~~~~~~~~~~~~~~~~~~~~~
| rb_s_gpgme_op_trustlist_end
gpgme_n.c: In function 'Init_gpgme_n':
gpgme_n.c:2726:28: error: 'GPGME_ATTR_KEYID' undeclared (first use in this function)
2726 | INT2FIX(GPGME_ATTR_KEYID));
| ^~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2726:20: note: in expansion of macro 'INT2FIX'
2726 | INT2FIX(GPGME_ATTR_KEYID));
| ^~~~~~~
gpgme_n.c:2728:28: error: 'GPGME_ATTR_FPR' undeclared (first use in this function); did you mean 'GPGRT_ATTR_PURE'?
2728 | INT2FIX(GPGME_ATTR_FPR));
| ^~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2728:20: note: in expansion of macro 'INT2FIX'
2728 | INT2FIX(GPGME_ATTR_FPR));
| ^~~~~~~
gpgme_n.c:2730:28: error: 'GPGME_ATTR_ALGO' undeclared (first use in this function); did you mean 'GPGRT_ATTR_MALLOC'?
2730 | INT2FIX(GPGME_ATTR_ALGO));
| ^~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2730:20: note: in expansion of macro 'INT2FIX'
2730 | INT2FIX(GPGME_ATTR_ALGO));
| ^~~~~~~
gpgme_n.c:2732:28: error: 'GPGME_ATTR_LEN' undeclared (first use in this function); did you mean 'GPGRT_ATTR_USED'?
2732 | INT2FIX(GPGME_ATTR_LEN));
| ^~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2732:20: note: in expansion of macro 'INT2FIX'
2732 | INT2FIX(GPGME_ATTR_LEN));
| ^~~~~~~
gpgme_n.c:2734:28: error: 'GPGME_ATTR_CREATED' undeclared (first use in this function); did you mean 'GPGRT_ATTR_DEPRECATED'?
2734 | INT2FIX(GPGME_ATTR_CREATED));
| ^~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2734:20: note: in expansion of macro 'INT2FIX'
2734 | INT2FIX(GPGME_ATTR_CREATED));
| ^~~~~~~
gpgme_n.c:2736:28: error: 'GPGME_ATTR_EXPIRE' undeclared (first use in this function); did you mean 'GPGRT_ATTR_PURE'?
2736 | INT2FIX(GPGME_ATTR_EXPIRE));
| ^~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2736:20: note: in expansion of macro 'INT2FIX'
2736 | INT2FIX(GPGME_ATTR_EXPIRE));
| ^~~~~~~
gpgme_n.c:2738:28: error: 'GPGME_ATTR_OTRUST' undeclared (first use in this function)
2738 | INT2FIX(GPGME_ATTR_OTRUST));
| ^~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2738:20: note: in expansion of macro 'INT2FIX'
2738 | INT2FIX(GPGME_ATTR_OTRUST));
| ^~~~~~~
gpgme_n.c:2740:28: error: 'GPGME_ATTR_USERID' undeclared (first use in this function); did you mean 'GPGRT_ATTR_USED'?
2740 | INT2FIX(GPGME_ATTR_USERID));
| ^~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2740:20: note: in expansion of macro 'INT2FIX'
2740 | INT2FIX(GPGME_ATTR_USERID));
| ^~~~~~~
gpgme_n.c:2742:28: error: 'GPGME_ATTR_NAME' undeclared (first use in this function); did you mean 'GPGRT_ATTR_PURE'?
2742 | INT2FIX(GPGME_ATTR_NAME));
| ^~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2742:20: note: in expansion of macro 'INT2FIX'
2742 | INT2FIX(GPGME_ATTR_NAME));
| ^~~~~~~
gpgme_n.c:2744:28: error: 'GPGME_ATTR_EMAIL' undeclared (first use in this function)
2744 | INT2FIX(GPGME_ATTR_EMAIL));
| ^~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2744:20: note: in expansion of macro 'INT2FIX'
2744 | INT2FIX(GPGME_ATTR_EMAIL));
| ^~~~~~~
gpgme_n.c:2746:28: error: 'GPGME_ATTR_COMMENT' undeclared (first use in this function)
2746 | INT2FIX(GPGME_ATTR_COMMENT));
| ^~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2746:20: note: in expansion of macro 'INT2FIX'
2746 | INT2FIX(GPGME_ATTR_COMMENT));
| ^~~~~~~
gpgme_n.c:2748:28: error: 'GPGME_ATTR_VALIDITY' undeclared (first use in this function); did you mean 'GPGME_STATUS_VALIDSIG'?
2748 | INT2FIX(GPGME_ATTR_VALIDITY));
| ^~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2748:20: note: in expansion of macro 'INT2FIX'
2748 | INT2FIX(GPGME_ATTR_VALIDITY));
| ^~~~~~~
gpgme_n.c:2750:28: error: 'GPGME_ATTR_LEVEL' undeclared (first use in this function); did you mean 'GPGME_STATUS_LEAVE'?
2750 | INT2FIX(GPGME_ATTR_LEVEL));
| ^~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2750:20: note: in expansion of macro 'INT2FIX'
2750 | INT2FIX(GPGME_ATTR_LEVEL));
| ^~~~~~~
gpgme_n.c:2752:28: error: 'GPGME_ATTR_TYPE' undeclared (first use in this function); did you mean 'GPGRT_ATTR_PURE'?
2752 | INT2FIX(GPGME_ATTR_TYPE));
| ^~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2752:20: note: in expansion of macro 'INT2FIX'
2752 | INT2FIX(GPGME_ATTR_TYPE));
| ^~~~~~~
gpgme_n.c:2754:28: error: 'GPGME_ATTR_IS_SECRET' undeclared (first use in this function); did you mean 'GPGME_STATUS_NO_SECKEY'?
2754 | INT2FIX(GPGME_ATTR_IS_SECRET));
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2754:20: note: in expansion of macro 'INT2FIX'
2754 | INT2FIX(GPGME_ATTR_IS_SECRET));
| ^~~~~~~
gpgme_n.c:2756:28: error: 'GPGME_ATTR_KEY_REVOKED' undeclared (first use in this function); did you mean 'GPGME_STATUS_KEYREVOKED'?
2756 | INT2FIX(GPGME_ATTR_KEY_REVOKED));
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2756:20: note: in expansion of macro 'INT2FIX'
2756 | INT2FIX(GPGME_ATTR_KEY_REVOKED));
| ^~~~~~~
gpgme_n.c:2758:28: error: 'GPGME_ATTR_KEY_INVALID' undeclared (first use in this function); did you mean 'GPGME_DATA_TYPE_INVALID'?
2758 | INT2FIX(GPGME_ATTR_KEY_INVALID));
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2758:20: note: in expansion of macro 'INT2FIX'
2758 | INT2FIX(GPGME_ATTR_KEY_INVALID));
| ^~~~~~~
gpgme_n.c:2760:28: error: 'GPGME_ATTR_UID_REVOKED' undeclared (first use in this function)
2760 | INT2FIX(GPGME_ATTR_UID_REVOKED));
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2760:20: note: in expansion of macro 'INT2FIX'
2760 | INT2FIX(GPGME_ATTR_UID_REVOKED));
| ^~~~~~~
gpgme_n.c:2762:28: error: 'GPGME_ATTR_UID_INVALID' undeclared (first use in this function); did you mean 'GPGME_DATA_TYPE_INVALID'?
2762 | INT2FIX(GPGME_ATTR_UID_INVALID));
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2762:20: note: in expansion of macro 'INT2FIX'
2762 | INT2FIX(GPGME_ATTR_UID_INVALID));
| ^~~~~~~
gpgme_n.c:2764:28: error: 'GPGME_ATTR_KEY_CAPS' undeclared (first use in this function)
2764 | INT2FIX(GPGME_ATTR_KEY_CAPS));
| ^~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2764:20: note: in expansion of macro 'INT2FIX'
2764 | INT2FIX(GPGME_ATTR_KEY_CAPS));
| ^~~~~~~
gpgme_n.c:2766:28: error: 'GPGME_ATTR_CAN_ENCRYPT' undeclared (first use in this function)
2766 | INT2FIX(GPGME_ATTR_CAN_ENCRYPT));
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2766:20: note: in expansion of macro 'INT2FIX'
2766 | INT2FIX(GPGME_ATTR_CAN_ENCRYPT));
| ^~~~~~~
gpgme_n.c:2768:28: error: 'GPGME_ATTR_CAN_SIGN' undeclared (first use in this function); did you mean 'GPGME_CREATE_SIGN'?
2768 | INT2FIX(GPGME_ATTR_CAN_SIGN));
| ^~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2768:20: note: in expansion of macro 'INT2FIX'
2768 | INT2FIX(GPGME_ATTR_CAN_SIGN));
| ^~~~~~~
gpgme_n.c:2770:28: error: 'GPGME_ATTR_CAN_CERTIFY' undeclared (first use in this function)
2770 | INT2FIX(GPGME_ATTR_CAN_CERTIFY));
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2770:20: note: in expansion of macro 'INT2FIX'
2770 | INT2FIX(GPGME_ATTR_CAN_CERTIFY));
| ^~~~~~~
gpgme_n.c:2772:28: error: 'GPGME_ATTR_KEY_EXPIRED' undeclared (first use in this function); did you mean 'GPGME_STATUS_KEYEXPIRED'?
2772 | INT2FIX(GPGME_ATTR_KEY_EXPIRED));
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2772:20: note: in expansion of macro 'INT2FIX'
2772 | INT2FIX(GPGME_ATTR_KEY_EXPIRED));
| ^~~~~~~
gpgme_n.c:2774:28: error: 'GPGME_ATTR_KEY_DISABLED' undeclared (first use in this function); did you mean 'GPG_ERR_KEY_DISABLED'?
2774 | INT2FIX(GPGME_ATTR_KEY_DISABLED));
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2774:20: note: in expansion of macro 'INT2FIX'
2774 | INT2FIX(GPGME_ATTR_KEY_DISABLED));
| ^~~~~~~
gpgme_n.c:2776:28: error: 'GPGME_ATTR_SERIAL' undeclared (first use in this function); did you mean 'GPGRT_ATTR_SENTINEL'?
2776 | INT2FIX(GPGME_ATTR_SERIAL));
| ^~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2776:20: note: in expansion of macro 'INT2FIX'
2776 | INT2FIX(GPGME_ATTR_SERIAL));
| ^~~~~~~
gpgme_n.c:2778:28: error: 'GPGME_ATTR_ISSUER' undeclared (first use in this function); did you mean 'GPGRT_ATTR_PURE'?
2778 | INT2FIX(GPGME_ATTR_ISSUER));
| ^~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2778:20: note: in expansion of macro 'INT2FIX'
2778 | INT2FIX(GPGME_ATTR_ISSUER));
| ^~~~~~~
gpgme_n.c:2780:28: error: 'GPGME_ATTR_CHAINID' undeclared (first use in this function)
2780 | INT2FIX(GPGME_ATTR_CHAINID));
| ^~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2780:20: note: in expansion of macro 'INT2FIX'
2780 | INT2FIX(GPGME_ATTR_CHAINID));
| ^~~~~~~
gpgme_n.c:2782:28: error: 'GPGME_ATTR_SIG_STATUS' undeclared (first use in this function)
2782 | INT2FIX(GPGME_ATTR_SIG_STATUS));
| ^~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2782:20: note: in expansion of macro 'INT2FIX'
2782 | INT2FIX(GPGME_ATTR_SIG_STATUS));
| ^~~~~~~
gpgme_n.c:2784:28: error: 'GPGME_ATTR_ERRTOK' undeclared (first use in this function); did you mean 'GPGME_STATUS_ERROR'?
2784 | INT2FIX(GPGME_ATTR_ERRTOK));
| ^~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2784:20: note: in expansion of macro 'INT2FIX'
2784 | INT2FIX(GPGME_ATTR_ERRTOK));
| ^~~~~~~
gpgme_n.c:2786:28: error: 'GPGME_ATTR_SIG_SUMMARY' undeclared (first use in this function)
2786 | INT2FIX(GPGME_ATTR_SIG_SUMMARY));
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:350:30: note: in definition of macro 'INT2FIX'
350 | __builtin_constant_p(i), \
| ^
/usr/include/ruby-3.3.0/ruby/internal/arithmetic/long.h:349:5: error: first argument to '__builtin_choose_expr' not a constant
349 | __builtin_choose_expr( \
| ^~~~~~~~~~~~~~~~~~~~~
gpgme_n.c:2786:20: note: in expansion of macro 'INT2FIX'
2786 | INT2FIX(GPGME_ATTR_SIG_SUMMARY));
| ^~~~~~~
make[1]: *** [Makefile:248: gpgme_n.o] Error 1
make[1]: Leaving directory '/home/ametzler/GPGME/ruby-gpgme-2.0.23/ext/gpgme'
~~~~~~~~~~~~~~~~~~~~~ ↓ mkmf.log ~~~~~~~~~~~~~~~~~~~~~
More information about the Pkg-ruby-extras-maintainers
mailing list