[ https://issues.apache.org/jira/browse/PROTON-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Irina Boverman reassigned PROTON-2491: -------------------------------------- Assignee: Irina Boverman > Ruby Gem 0.36.0 boken > --------------------- > > Key: PROTON-2491 > URL: https://issues.apache.org/jira/browse/PROTON-2491 > Project: Qpid Proton > Issue Type: Bug > Reporter: poelzi > Assignee: Irina Boverman > Priority: Major > > > {code:java} > [vagrant@centos8-katello-devel katello]$ gem install qpid_proton -v '0.36.0' > --source 'https://rubygems.org/' > Building native extensions. This could take a while... > ERROR: Error installing qpid_proton: > ERROR: Failed to build gem native extension. > current directory: > /home/vagrant/.gem/ruby/gems/qpid_proton-0.36.0/ext/cproton > /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20220202-70814-t77l5w.rb > extconf.rb > checking for -lqpid-proton... yes > checking for proton/engine.h... yes > checking for proton/message.h... yes > checking for proton/sasl.h... yes > checking for proton/messenger.h... yes > creating Makefile > current directory: /home/vagrant/.gem/ruby/gems/qpid_proton-0.36.0/ext/cproton > make "DESTDIR=" clean > rm -f > rm -f cproton.so *.o *.bak mkmf.log .*.time > current directory: /home/vagrant/.gem/ruby/gems/qpid_proton-0.36.0/ext/cproton > make "DESTDIR=" > gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. > -DHAVE_PROTON_ENGINE_H -DHAVE_PROTON_MESSAGE_H -DHAVE_PROTON_SASL_H > -DHAVE_PROTON_MESSENGER_H -fPIC -O2 -g -pipe -Wall -Werror=format-sec > urity -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions > -fstack-protector-strong -grecord-gcc-switches > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m > tune=generic -fasynchronous-unwind-tables -fstack-clash-protection > -fcf-protection -fPIC -DRUBY27 -m64 -o cproton.o -c cproton.c > cproton.c: In function ‘SWIG_Ruby_define_class’: > cproton.c:1482:9: warning: variable ‘klass’ set but not used > [-Wunused-but-set-variable] > VALUE klass; > ^~~~~ > cproton.c: In function ‘pni_ruby_add_to_registry’: > cproton.c:2375:11: warning: unused variable ‘result’ [-Wunused-variable] > VALUE result = rb_funcall(pni_ruby_get_proton_module(), > rb_intern("add_to_registry"), 2, key, value); > ^~~~~~ > cproton.c: In function ‘SWIG_AUX_NUM2DBL’: > cproton.c:2498:9: warning: unused variable ‘type’ [-Wunused-variable] > VALUE type = TYPE(obj); > ^~~~ > cproton.c: In function ‘_wrap_pn_message_get_id’: > cproton.c:13648:3: error: unknown type name ‘pn_msgid_t’; did you mean > ‘pn_uuid_t’? > pn_msgid_t result; > ^~~~~~~~~~ > pn_uuid_t > cproton.c:13661:10: error: incompatible types when assigning to type ‘int’ > from type ‘pn_atom_t’ {aka ‘struct <anonymous>’} > result = pn_message_get_id(arg1); > ^ > cproton.c:13663:21: error: request for member ‘type’ in something not a > structure or union > switch((&result)->type) > ^~ > cproton.c:13670:26: error: request for member ‘u’ in something not a > structure or union > vresult = (&result)->u.as_bool ? Qtrue : Qfalse; > ^~ > In file included from /usr/include/ruby.h:33, > from cproton.c:821: > cproton.c:13674:34: error: request for member ‘u’ in something not a > structure or union > vresult = INT2NUM((&result)->u.as_byte); > ^~ > cproton.c:13678:35: error: request for member ‘u’ in something not a > structure or union > vresult = UINT2NUM((&result)->u.as_ubyte); > ^~ > cproton.c:13682:34: error: request for member ‘u’ in something not a > structure or union > vresult = INT2NUM((&result)->u.as_short); > ^~ > cproton.c:13686:35: error: request for member ‘u’ in something not a > structure or union > vresult = UINT2NUM((&result)->u.as_ushort); > ^~ > cproton.c:13690:34: error: request for member ‘u’ in something not a > structure or union > vresult = INT2NUM((&result)->u.as_int); > ^~ > cproton.c:13694:35: error: request for member ‘u’ in something not a > structure or union > vresult = UINT2NUM((&result)->u.as_uint); > ^~ > cproton.c:13698:33: error: request for member ‘u’ in something not a > structure or union > vresult = LL2NUM((&result)->u.as_long); > ^~ > cproton.c:13702:34: error: request for member ‘u’ in something not a > structure or union > vresult = ULL2NUM((&result)->u.as_ulong); > ^~ > cproton.c:13706:39: error: request for member ‘u’ in something not a > structure or union > vresult = rb_float_new((&result)->u.as_float); > ^~ > cproton.c:13710:39: error: request for member ‘u’ in something not a > structure or union > vresult = rb_float_new((&result)->u.as_double); > ^~ > In file included from /usr/include/ruby/ruby.h:29, > from /usr/include/ruby.h:33, > from cproton.c:821: > cproton.c:13714:37: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:13714:66: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:13714:37: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:13714:66: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:13714:37: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:13714:66: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c: In function ‘_wrap_pn_message_set_id’: > cproton.c:13730:3: error: unknown type name ‘pn_msgid_t’; did you mean > ‘pn_uuid_t’? > pn_msgid_t arg2 ; > ^~~~~~~~~~ > pn_uuid_t > cproton.c:13747:14: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_NULL; > ^~ > cproton.c:13754:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_BOOL; > ^~ > cproton.c:13755:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bool = true; > ^~ > cproton.c:13759:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_BOOL; > ^~ > cproton.c:13760:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bool = false; > ^~ > cproton.c:13764:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_FLOAT; > ^~ > cproton.c:13765:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_float = NUM2DBL(argv[1]); > ^~ > cproton.c:13769:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_STRING; > ^~ > cproton.c:13770:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bytes.start = RSTRING_PTR(argv[1]); > ^~ > cproton.c:13771:20: error: request for member ‘u’ in something not a > structure or union > if ((&arg2)->u.as_bytes.start) > ^~ > cproton.c:13773:18: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bytes.size = RSTRING_LEN(argv[1]); > ^~ > cproton.c:13777:18: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bytes.size = 0; > ^~ > cproton.c:13782:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_INT; > ^~ > cproton.c:13783:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_int = FIX2LONG(argv[1]); > ^~ > cproton.c:13787:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_LONG; > ^~ > cproton.c:13788:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_long = NUM2LL(argv[1]); > ^~ > cproton.c:13794:40: error: incompatible type for argument 2 of > ‘pn_message_set_id’ > result = (int)pn_message_set_id(arg1,arg2); > ^~~~ > In file included from cproton.c:1880: > /usr/include/proton/message.h:302:89: note: expected ‘pn_atom_t’ {aka ‘struct > <anonymous>’} but argument is of type ‘int’ > PN_EXTERN int pn_message_set_id (pn_message_t > *msg, pn_atom_t id); > > ~~~~~~~~~~^~ > cproton.c: In function ‘_wrap_pn_message_get_correlation_id’: > cproton.c:14087:3: error: unknown type name ‘pn_msgid_t’; did you mean > ‘pn_uuid_t’? > pn_msgid_t result; > ^~~~~~~~~~ > pn_uuid_t > cproton.c:14100:10: error: incompatible types when assigning to type ‘int’ > from type ‘pn_atom_t’ {aka ‘struct <anonymous>’} > result = pn_message_get_correlation_id(arg1); > ^ > cproton.c:14102:21: error: request for member ‘type’ in something not a > structure or union > switch((&result)->type) > ^~ > cproton.c:14109:26: error: request for member ‘u’ in something not a > structure or union > vresult = (&result)->u.as_bool ? Qtrue : Qfalse; > ^~ > In file included from /usr/include/ruby.h:33, > from cproton.c:821: > cproton.c:14113:34: error: request for member ‘u’ in something not a > structure or union > vresult = INT2NUM((&result)->u.as_byte); > ^~ > cproton.c:14117:35: error: request for member ‘u’ in something not a > structure or union > vresult = UINT2NUM((&result)->u.as_ubyte); > ^~ > cproton.c:14121:34: error: request for member ‘u’ in something not a > structure or union > vresult = INT2NUM((&result)->u.as_short); > ^~ > cproton.c:14125:35: error: request for member ‘u’ in something not a > structure or union > vresult = UINT2NUM((&result)->u.as_ushort); > ^~ > cproton.c:14129:34: error: request for member ‘u’ in something not a > structure or union > vresult = INT2NUM((&result)->u.as_int); > ^~ > cproton.c:14133:35: error: request for member ‘u’ in something not a > structure or union > vresult = UINT2NUM((&result)->u.as_uint); > ^~ > cproton.c:14137:33: error: request for member ‘u’ in something not a > structure or union > vresult = LL2NUM((&result)->u.as_long); > ^~ > cproton.c:14141:34: error: request for member ‘u’ in something not a > structure or union > vresult = ULL2NUM((&result)->u.as_ulong); > ^~ > cproton.c:14145:39: error: request for member ‘u’ in something not a > structure or union > vresult = rb_float_new((&result)->u.as_float); > ^~ > cproton.c:14149:39: error: request for member ‘u’ in something not a > structure or union > vresult = rb_float_new((&result)->u.as_double); > ^~ > In file included from /usr/include/ruby/ruby.h:29, > from /usr/include/ruby.h:33, > from cproton.c:821: > cproton.c:14153:37: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:14153:66: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:14153:37: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:14153:66: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:14153:37: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c:14153:66: error: request for member ‘u’ in something not a > structure or union > vresult = rb_str_new((&result)->u.as_bytes.start, > (&result)->u.as_bytes.size); > ^~ > cproton.c: In function ‘_wrap_pn_message_set_correlation_id’: > cproton.c:14169:3: error: unknown type name ‘pn_msgid_t’; did you mean > ‘pn_uuid_t’? > pn_msgid_t arg2 ; > ^~~~~~~~~~ > pn_uuid_t > cproton.c:14186:14: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_NULL; > ^~ > cproton.c:14193:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_BOOL; > ^~ > cproton.c:14194:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bool = true; > ^~ > cproton.c:14198:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_BOOL; > ^~ > cproton.c:14199:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bool = false; > ^~ > cproton.c:14203:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_FLOAT; > ^~ > cproton.c:14204:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_float = NUM2DBL(argv[1]); > ^~ > cproton.c:14208:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_STRING; > ^~ > cproton.c:14209:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bytes.start = RSTRING_PTR(argv[1]); > ^~ > cproton.c:14210:20: error: request for member ‘u’ in something not a > structure or union > if ((&arg2)->u.as_bytes.start) > ^~ > cproton.c:14212:18: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bytes.size = RSTRING_LEN(argv[1]); > ^~ > cproton.c:14216:18: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_bytes.size = 0; > ^~ > cproton.c:14221:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_INT; > ^~ > cproton.c:14222:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_int = FIX2LONG(argv[1]); > ^~ > cproton.c:14226:16: error: request for member ‘type’ in something not a > structure or union > (&arg2)->type = PN_LONG; > ^~ > cproton.c:14227:16: error: request for member ‘u’ in something not a > structure or union > (&arg2)->u.as_long = NUM2LL(argv[1]); > ^~ > cproton.c:14233:52: error: incompatible type for argument 2 of > ‘pn_message_set_correlation_id’ > result = (int)pn_message_set_correlation_id(arg1,arg2); > ^~~~ > In file included from cproton.c:1880: > /usr/include/proton/message.h:459:89: note: expected ‘pn_atom_t’ {aka ‘struct > <anonymous>’} but argument is of type ‘int’ > PN_EXTERN int pn_message_set_correlation_id (pn_message_t > *msg, pn_atom_t id); > > ~~~~~~~~~~^~ > At top level: > cproton.c:6630:12: warning: ‘check_trace’ defined but not used > [-Wunused-function] > static int check_trace(int x) { > ^~~~~~~~~~~ > cproton.c:6619:12: warning: ‘check_disposition’ defined but not used > [-Wunused-function] > static int check_disposition(int x) { > ^~~~~~~~~~~~~~~~~ > cproton.c:6608:12: warning: ‘check_state’ defined but not used > [-Wunused-function] > static int check_state(int x) { > ^~~~~~~~~~~ > make: *** [Makefile:245: cproton.o] Error 1 > make failed, exit code 2 > Gem files will remain installed in > /home/vagrant/.gem/ruby/gems/qpid_proton-0.36.0 for inspection. > Results logged to > /home/vagrant/.gem/ruby/extensions/x86_64-linux/2.7.0/qpid_proton-0.36.0/gem_make.out > [vagrant@centos8-katello-devel katello]$ > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org