ziutek/glib

g_thread_init depreciated, cannot compile the module on the ubuntu nightly builds

ziahamza opened this issue · 0 comments

I normally run the Ubuntu nightly and I cannot get the glib module. go get github.com/ziutek/glib fails with the following (actually I only need this module for the gst module which as well is failing due to this):
type.go:74:1: error: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Werror=deprecated-declarations]
cc1: all warnings being treated as errors

A hack would be to change the cgo command and remove the -Werror flag (in go/src/cmd/cgo/gcc.go), any ideas for a better solution (the package I have installed for glib in ubuntu is libglib2.0-0)

P.S awesome work with the gst and other go modules, I am just getting started with go and these look really what I needed to start shifting my work.