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

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

Commit 1572226 from [~kgiusti] in branch 'proton/trunk'
[ https://svn.apache.org/r1572226 ]

PROTON-524: use old-style function pointers for compatibility with older SWIG 
tools

> [proton-c] C++ build fails on Centos6
> -------------------------------------
>
>                 Key: PROTON-524
>                 URL: https://issues.apache.org/jira/browse/PROTON-524
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.6
>         Environment: Centos 6
>            Reporter: Ken Giusti
>             Fix For: 0.7
>
>
> The code generated by SWIG (1.3.40) fails to compile as C++ 
> (-DBUILD_WITH_CXX=ON):
> [ 75%] Building CXX object 
> proton-c/bindings/python/CMakeFiles/_cproton.dir/pythonPYTHON_wrap.cxx.o
> /home/kgiusti/work/proton/build/proton-c/bindings/python/pythonPYTHON_wrap.cxx:
>  In function ‘PyObject* _wrap_pn_iterator_next_t(PyObject*, PyObject*)’:
> /home/kgiusti/work/proton/build/proton-c/bindings/python/pythonPYTHON_wrap.cxx:8125:
>  error: invalid cast to function type ‘void*(void*)’
> /home/kgiusti/work/proton/build/proton-c/bindings/python/pythonPYTHON_wrap.cxx:
>  In function ‘PyObject* _wrap_pn_tracer_t(PyObject*, PyObject*)’:
> /home/kgiusti/work/proton/build/proton-c/bindings/python/pythonPYTHON_wrap.cxx:8705:
>  error: functional cast expression list treated as compound expression
> /home/kgiusti/work/proton/build/proton-c/bindings/python/pythonPYTHON_wrap.cxx:8705:
>  error: invalid cast to function type ‘void(pn_transport_t*, const char*)’
> /home/kgiusti/work/proton/build/proton-c/bindings/python/pythonPYTHON_wrap.cxx:
>  In function ‘PyObject* _wrap_pn_transport_get_tracer(PyObject*, PyObject*)’:
> /home/kgiusti/work/proton/build/proton-c/bindings/python/pythonPYTHON_wrap.cxx:10328:
>  error: invalid static_cast from type ‘void (*)(pn_transport_t*, const 
> char*)’ to type ‘const void*’
> make[2]: *** 
> [proton-c/bindings/python/CMakeFiles/_cproton.dir/pythonPYTHON_wrap.cxx.o] 
> Error 1
> make[1]: *** [proton-c/bindings/python/CMakeFiles/_cproton.dir/all] Error 2



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to