[jira] [Resolved] (PROTON-2765) [go] Go compilation fails with go 1.21

2023-09-14 Thread Andrew Stitcher (Jira)


 [ 
https://issues.apache.org/jira/browse/PROTON-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher resolved PROTON-2765.
-
Fix Version/s: proton-c-0.40.0
   Resolution: Fixed

> [go] Go compilation fails with go 1.21
> --
>
> Key: PROTON-2765
> URL: https://issues.apache.org/jira/browse/PROTON-2765
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: go-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
> Fix For: proton-c-0.40.0
>
>
> Error message is:
> {noformat}
> # github.com/apache/qpid-proton/go/pkg/amqp
> Error: go/pkg/amqp/types.go:32:9: cannot define new methods on non-local type 
> C.pn_type_t
> Error: go/pkg/amqp/unmarshal.go:729:13: cannot define new methods on 
> non-local type *C.pn_data_t
> Error: go/pkg/amqp/unmarshal.go:730:13: cannot define new methods on 
> non-local type *C.pn_data_t
> Error: go/pkg/amqp/unmarshal.go:731:13: cannot define new methods on 
> non-local type *C.pn_data_t
> make[2]: *** [go/CMakeFiles/go-build] Error 1
> make[1]: *** [go/CMakeFiles/go-build.dir/all] Error 2
> make: *** [all] Error 2
> {noformat}



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



[jira] [Commented] (PROTON-2765) [go] Go compilation fails with go 1.21

2023-09-14 Thread ASF subversion and git services (Jira)


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

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

Commit 8142e3cecd9f668992e76a5448afc09fd7b1030a in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=8142e3cec ]

PROTON-2765: [Go] Don't define methods on C types

This seems to be a long standing bug in the code that go now detects and
no longer accepts as of go 1.21.


> [go] Go compilation fails with go 1.21
> --
>
> Key: PROTON-2765
> URL: https://issues.apache.org/jira/browse/PROTON-2765
> Project: Qpid Proton
>  Issue Type: Bug
>  Components: go-binding
>Reporter: Andrew Stitcher
>Assignee: Andrew Stitcher
>Priority: Major
>
> Error message is:
> {noformat}
> # github.com/apache/qpid-proton/go/pkg/amqp
> Error: go/pkg/amqp/types.go:32:9: cannot define new methods on non-local type 
> C.pn_type_t
> Error: go/pkg/amqp/unmarshal.go:729:13: cannot define new methods on 
> non-local type *C.pn_data_t
> Error: go/pkg/amqp/unmarshal.go:730:13: cannot define new methods on 
> non-local type *C.pn_data_t
> Error: go/pkg/amqp/unmarshal.go:731:13: cannot define new methods on 
> non-local type *C.pn_data_t
> make[2]: *** [go/CMakeFiles/go-build] Error 1
> make[1]: *** [go/CMakeFiles/go-build.dir/all] Error 2
> make: *** [all] Error 2
> {noformat}



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



[jira] [Created] (PROTON-2765) [go] Go compilation fails with go 1.21

2023-09-14 Thread Andrew Stitcher (Jira)
Andrew Stitcher created PROTON-2765:
---

 Summary: [go] Go compilation fails with go 1.21
 Key: PROTON-2765
 URL: https://issues.apache.org/jira/browse/PROTON-2765
 Project: Qpid Proton
  Issue Type: Bug
  Components: go-binding
Reporter: Andrew Stitcher
Assignee: Andrew Stitcher


Error message is:
{noformat}
# github.com/apache/qpid-proton/go/pkg/amqp
Error: go/pkg/amqp/types.go:32:9: cannot define new methods on non-local type 
C.pn_type_t
Error: go/pkg/amqp/unmarshal.go:729:13: cannot define new methods on non-local 
type *C.pn_data_t
Error: go/pkg/amqp/unmarshal.go:730:13: cannot define new methods on non-local 
type *C.pn_data_t
Error: go/pkg/amqp/unmarshal.go:731:13: cannot define new methods on non-local 
type *C.pn_data_t
make[2]: *** [go/CMakeFiles/go-build] Error 1
make[1]: *** [go/CMakeFiles/go-build.dir/all] Error 2
make: *** [all] Error 2
{noformat}




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