trunk build bustage



Trunk fails to build in this way:
make[4]: Entering directory `/src/jhbuild/checkout/glib/gio'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I.. -I../glib -I../gmodule -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/src/build/jhbuild/lib64/gio/modules\"  -DG_DISABLE_SINGLE_INCLUDES -pthread  -ggdb -O0 -Wall -MT gfilemonitor.lo -MD -MP -MF .deps/gfilemonitor.Tpo -c -o gfilemonitor.lo gfilemonitor.c
 gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"GLib-GIO\" -I.. -I.. -I../glib -I../gmodule -DG_ENABLE_DEBUG -DG_DISABLE_DEPRECATED -DGIO_COMPILATION -DGIO_MODULE_DIR=\"/src/build/jhbuild/lib64/gio/modules\" -DG_DISABLE_SINGLE_INCLUDES -pthread -ggdb -O0 -Wall -MT gfilemonitor.lo -MD -MP -MF .deps/gfilemonitor.Tpo -c gfilemonitor.c  -fPIC -DPIC -o .libs/gfilemonitor.o
gfilemonitor.c: In function 'g_file_monitor_finalize':
gfilemonitor.c:161: error: 'g_file_monitor_parent_class' undeclared (first use in this function)
gfilemonitor.c:161: error: (Each undeclared identifier is reported only once
gfilemonitor.c:161: error: for each function it appears in.)
gfilemonitor.c: In function 'g_file_monitor_dispose':
gfilemonitor.c:174: error: 'g_file_monitor_parent_class' undeclared (first use in this function)

It turns out this is a bit of a mess because there is a global function in gfile.c called "g_file_monitor".  The alias definition machinery then #define's g_file_monitor, which breaks the G_DEFINE_ABSTRACT_TYPE (GFileMonitor, g_file_monitor, G_TYPE_OBJECT); call.

I think it might work to unravel this particular G_DEFINE_ABSTRACT_TYPE macro into regular C code.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]