[ 
https://issues.apache.org/jira/browse/PROTON-949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15053564#comment-15053564
 ] 

Philippe Le Rohellec commented on PROTON-949:
---------------------------------------------

The change in 2a1e1e7a03 proton-c/bindings/ruby/ruby.i that moves 
PN_CLASSDEF(Pn_rbkey) out of %inline breaks the ruby bindings on Pn_rbkey_new.

This is what I get when running the simple_recv.rb example in 
qpid-proton/examples/ruby/reactor:

$ ./simple_recv.rb -a <amqp url> -m 1
/usr/local/rvm/gems/ruby-1.9.3-p484-railsexpress/gems/qpid_proton-0.3/lib/util/wrapper.rb:72:in
 `store_instance': undefined method `Pn_rbkey_new' for Cproton:Module 
(NoMethodError)
        from 
/usr/local/rvm/gems/ruby-1.9.3-p484-railsexpress/gems/qpid_proton-0.3/lib/reactor/reactor.rb:63:in
 `initialize'
        from 
/usr/local/rvm/gems/ruby-1.9.3-p484-railsexpress/gems/qpid_proton-0.3/lib/reactor/container.rb:59:in
 `initialize'
        from ./simple_recv.rb:58:in `new'
        from ./simple_recv.rb:58:in `<main>'


> proton doesn't build with ccache swig
> -------------------------------------
>
>                 Key: PROTON-949
>                 URL: https://issues.apache.org/jira/browse/PROTON-949
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>            Reporter: michael goulish
>            Assignee: Alan Conway
>             Fix For: 0.11, 0.12.0
>
>
> Thanks to aconway for finding this and saving me a day of madness and horror.
> On freshly-downloaded proton tree, if I use this swig:
>    /usr/lib64/ccache/swig
> the build fails this way:
>   qpid-proton/build/proton-c/bindings/python/cprotonPYTHON_wrap.c:4993:25: 
> error: 'PN_HANDLE' undeclared (first use in this function)
> PNI_PYTRACER = *((PN_HANDLE *)(argp));
> ----------
> but if I delete that swig executable, and use the one in  /bin/swig ,
> then everything works.
> yikes.
> aconway believes the bug is in ccache-swig, not in proton, but I want to put 
> this here in case this bites someone else in Proton Land.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to