Skip to content

go-webkit2 wont compile with go 1.3 #12

@mdimec4

Description

@mdimec4

Hi
I have problem compiling go-webkit2 with new Go 1.3 compiler.
Go 1.3 has corrected a cgo bug that some C code binding libs seam to depend on.
http://golang.org/doc/go1.3#cgo

I belive that two libs that go-webkit2 depends on have this problem. One of them also "github.com/sqs/gojs".

If this turns out to be a big problem I am prepared to help you correcting this bug.
Best
Miha

Compiler output:

miha@miha-work:~/Koala_intro/koala2 (develop)$ go version
go version go1.3 linux/amd64
miha@miha-work:~/Koala_intro/koala2 (develop)$ go build -tags gtk_3_10 github.com/visionect/go-webkit2/webkit2
# github.com/visionect/gotk3/glib
src/github.com/visionect/gotk3/glib/glib.go:359: cannot use idleSrc (type *C.GSource) as type *C.struct__GSource in argument to sourceAttach
src/github.com/visionect/gotk3/glib/glib.go:382: cannot use timeoutSrc (type *C.GSource) as type *C.struct__GSource in argument to sourceAttach
src/github.com/visionect/gotk3/glib/glib.go:393: cannot use src (type *C.struct__GSource) as type *C.GSource in argument to _Cfunc_g_source_destroy
src/github.com/visionect/gotk3/glib/glib.go:419: cannot use src (type *C.struct__GSource) as type *C.GSource in argument to _Cfunc_g_source_destroy
src/github.com/visionect/gotk3/glib/glib.go:426: cannot use src (type *C.struct__GSource) as type *C.GSource in argument to _Cfunc_g_source_set_closure
src/github.com/visionect/gotk3/glib/glib.go:430: cannot use src (type *C.struct__GSource) as type *C.GSource in argument to _Cfunc_g_source_attach
src/github.com/visionect/gotk3/glib/glib.go:756: cannot use glist (type *C.struct__GList) as type *C.GList in argument to _Cfunc_g_list_append
src/github.com/visionect/gotk3/glib/glib.go:756: cannot use _Cfunc_g_list_append(glist, C.gpointer(data)) (type *C.GList) as type *C.struct__GList in assignment
src/github.com/visionect/gotk3/glib/glib.go:763: cannot use glist (type *C.struct__GList) as type *C.GList in argument to _Cfunc_g_list_prepend
src/github.com/visionect/gotk3/glib/glib.go:763: cannot use _Cfunc_g_list_prepend(glist, C.gpointer(data)) (type *C.GList) as type *C.struct__GList in assignment
src/github.com/visionect/gotk3/glib/glib.go:763: too many errors
# github.com/sqs/gojs
src/github.com/sqs/gojs/context.go:13: cannot use (*[0]uint8)(c_nil) (type *[0]uint8) as type *C.struct_OpaqueJSClass in argument to _Cfunc_JSGlobalContextCreate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions