Ticket #1245 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

GTK fails to build

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.12.0
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: hsgthread.h hsgthread.c Cc:


In file included from Graphics/UI/Gtk/General/hsgthread.c:29:0:


Fehler: #error "Only <glib.h> can be included directly."

Graphics/UI/Gtk/General/hsgthread.c: In Funktion »gtk2hs_threads_initialise«:


Warnung: »g_static_mutex_init« ist veraltet (deklariert bei /usr/include/glib-2.0/glib/deprecated/gthread.h:145): Use 'g_mutex_init' instead [-Wdeprecated-declarations]


Warnung: »g_thread_init« ist veraltet (deklariert bei /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Wdeprecated-declarations]

cabal: Error: some packages failed to install: gtk-0.12.2 failed during the building phase. The exception was: ExitFailure? 1

Change History

Changed 5 years ago by guest

the problem seems to be that hsgthread.c includes <glib/gthread.h>, which (at least in my version of glib2, 2.32.3-1), is not meant to be included directly -- instead you are supposed to include everything via <glib.h>.

because hsgthread.c already includes <glib.h>, the include of <glib/gthread.h> there may simply be removed. after i did this, everything compiled and worked.

Changed 4 years ago by dmwit

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.