gotk3: build "example_demo" error

I really don’t know how to fix it No matter which program I run, it will report an error

for example:

F:\Golang_study\src\github.com\gotk3\gotk3\_examples\boolprops>go build boolprops.go
# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function '_cgo_e48307fa3ad4_Cfunc_g_binding_get_source':
cgo-gcc-prolog:71:2: warning: 'g_binding_get_source' is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from E:/msys64/mingw64/include/glib-2.0/glib-object.h:22,
                 from E:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28,
                 from E:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28,
                 from E:/msys64/mingw64/include/glib-2.0/gio/gio.h:26,
                 from ..\..\glib\gbinding.go:3:
E:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:112:23: note: declared here
  112 | GObject *             g_binding_get_source          (GBinding *binding);
      |                       ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function '_cgo_e48307fa3ad4_Cfunc_g_binding_get_target':
cgo-gcc-prolog:107:2: warning: 'g_binding_get_target' is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
In file included from E:/msys64/mingw64/include/glib-2.0/glib-object.h:22,
                 from E:/msys64/mingw64/include/glib-2.0/gio/gioenums.h:28,
                 from E:/msys64/mingw64/include/glib-2.0/gio/giotypes.h:28,
                 from E:/msys64/mingw64/include/glib-2.0/gio/gio.h:26,
                 from ..\..\glib\gbinding.go:3:
E:/msys64/mingw64/include/glib-2.0/gobject/gbinding.h:116:23: note: declared here
  116 | GObject *             g_binding_get_target          (GBinding *binding);

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 1
  • Comments: 26 (10 by maintainers)

Most upvoted comments

same problem, i use manjaro and i have glib2-2.68.1-1

# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function ‘_cgo_1ed10d763314_Cfunc_g_binding_get_source’:
cgo-gcc-prolog:71:2: warning: ‘g_binding_get_source’ is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from ../../../../pkg/mod/github.com/gotk3/gotk3@v0.5.2/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:112:23: note: declared here
  112 | GObject *             g_binding_get_source          (GBinding *binding);
      |                       ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function ‘_cgo_1ed10d763314_Cfunc_g_binding_get_target’:
cgo-gcc-prolog:107:2: warning: ‘g_binding_get_target’ is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/glib-2.0/gio/gioenums.h:28,
                 from /usr/include/glib-2.0/gio/giotypes.h:28,
                 from /usr/include/glib-2.0/gio/gio.h:26,
                 from ../../../../pkg/mod/github.com/gotk3/gotk3@v0.5.2/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:116:23: note: declared here
  116 | GObject *             g_binding_get_target          (GBinding *binding);
      |

Perhaps could this issue be renamed to something like “glib 2.68 incompatibility” or something?

That means that it is 32-bit library meant to be used on 64-bit system (which I assume most people use) glib2-2.66.7-1-x86_64.pkg.tar.zst 64 bit lib meant for 64 bit system lib32-glib2-2.66.7-1-x86_64.pkg.tar.zst 32 bit lib meant for 64 bit system glib2-2.66.7-1-i686.pkg.tar.zst would be 32 bit library meant for 32 bit system (i686 based of course)

multilib contains 32-bit software and libraries that can be used to run and build 32-bit applications on 64-bit installs (e.g. wine, steam, etc).