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

Jiri Daněk commented on PROTON-2782:
------------------------------------

This is already fixed on main. There isn't yet a release containing the fixed 
code. That will be PROTON-2710

> golang binding build fails
> --------------------------
>
>                 Key: PROTON-2782
>                 URL: https://issues.apache.org/jira/browse/PROTON-2782
>             Project: Qpid Proton
>          Issue Type: Bug
>            Reporter: Martin
>            Priority: Major
>
>  
> Build of the golang binding fails with Go 1.21 with "cannot define new 
> methods on non-local type C.pn_type_t".
> {code:java}
> [root@tripleo-standalone qpid-proton-0.39.0]# cmake -B ./BLD -S $PWD
> -- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)
> -- Could NOT find CyrusSASL (missing: CyrusSASL_LIBRARY CyrusSASL_INCLUDE_DIR)
> -- Build type is "RelWithDebInfo" (has debug symbols)
> -- PN_VERSION: 0.39.0 ()
> -- Building the epoll proactor
> -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
> CMake Warning at c/tests/CMakeLists.txt:142 (message):
>   No C++ compiler, some C library tests were not built
> -- Found Go: /usr/bin/go (go version go1.21.3 linux/amd64) (1.21).
> -- Configuring done (0.4s)
> -- Generating done (0.0s)
> -- Build files have been written to: 
> /root/golang-qpid-apache/qpid-proton-0.39.0/BLD
> [root@tripleo-standalone qpid-proton-0.39.0]# cd BLD/
> [root@tripleo-standalone BLD]# make go-build
> [  0%] Built target go-mod-link
> [  9%] Built target generated_c_files
> [ 97%] Built target qpid-proton-core-objects
> [100%] Built target qpid-proton-core
> [100%] Built target go-pkg-link
> # github.com/apache/qpid-proton/go/pkg/amqp
> go/pkg/amqp/types.go:32:9: cannot define new methods on non-local type 
> C.pn_type_t
> go/pkg/amqp/unmarshal.go:729:13: cannot define new methods on non-local type 
> *C.pn_data_t
> go/pkg/amqp/unmarshal.go:730:13: cannot define new methods on non-local type 
> *C.pn_data_t
> go/pkg/amqp/unmarshal.go:731:13: cannot define new methods on non-local type 
> *C.pn_data_t
> make[3]: *** [go/CMakeFiles/go-build.dir/build.make:70: 
> go/CMakeFiles/go-build] Error 1
> make[2]: *** [CMakeFiles/Makefile2:1634: go/CMakeFiles/go-build.dir/all] 
> Error 2
> make[1]: *** [CMakeFiles/Makefile2:1641: go/CMakeFiles/go-build.dir/rule] 
> Error 2
> make: *** [Makefile:842: go-build] Error 2
> [root@tripleo-standalone BLD]# {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to