Ticket #1245 (closed defect: fixed)

Opened 2 years ago

Last modified 12 months 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:

Description

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

/usr/include/glib-2.0/glib/gthread.h:28:2:

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

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

Graphics/UI/Gtk/General/hsgthread.c:64:5:

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]

Graphics/UI/Gtk/General/hsgthread.c:66:5:

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 23 months 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 12 months ago by dmwit

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