ASF subversion and git services commented on PROTON-949:

Commit e17c4abf20db1a50620973821022561f6dfb44f9 in qpid-proton's branch 
refs/heads/0.11.x from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=e17c4ab ]

PROTON-949: fix proton build with ccache swig

Moved macro calls and preprocessor directives out of %inline sections, seems to 
fix the problem.

NOTE: According to ccache-swig man page: "Known problems are using
preprocessor directives within %inline blocks and the use of ’#pragma SWIG’."
This includes using any macros in an %inline section.

> 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.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

Reply via email to