You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/11/03 18:17:27 UTC

[jira] [Commented] (PROTON-949) proton doesn't build with ccache swig

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

ASF subversion and git services commented on PROTON-949:
--------------------------------------------------------

Commit 2a1e1e7a03d6e23dea83ade03446d983026d4476 in qpid-proton's branch refs/heads/master from [~aconway]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=2a1e1e7 ]

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