← Back to team overview

dx-packages team mailing list archive

[Bug 2025210] [NEW] make failed with new version glib

 

Public bug reported:

$ make
/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
Making all in libindicator
( cd . && /opt/homebrew/bin/glib-mkenums --template /Users/daobingli/workspace/foss/libindicator-12.10.1/libindicator/indicator-object-enum-types.c.template						\
		indicator.h indicator-desktop-shortcuts.h indicator-image-helper.h indicator-object.h indicator-service.h indicator-service-manager.h ) > tmp-indicator-object-enum-types.c		\
	&& (cmp -s tmp-indicator-object-enum-types.c indicator-object-enum-types.c || cp tmp-indicator-object-enum-types.c indicator-object-enum-types.c )	\
	&& rm -f tmp-indicator-object-enum-types.c
/Library/Developer/CommandLineTools/usr/bin/make  all-am
  CC     libindicator3_la-indicator-object.lo
indicator-object.c:129:2: error: 'g_type_class_add_private' is deprecated [-Werror,-Wdeprecated-declarations]
        g_type_class_add_private (klass, sizeof (IndicatorObjectPrivate));
        ^
/opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gtype.h:1382:1: note: 'g_type_class_add_private' has been explicitly marked deprecated here
GOBJECT_DEPRECATED_IN_2_58
^
/opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gobject-visibility.h:581:36: note: expanded from macro 'GOBJECT_DEPRECATED_IN_2_58'
#define GOBJECT_DEPRECATED_IN_2_58 GOBJECT_DEPRECATED
                                   ^
/opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gobject-visibility.h:30:28: note: expanded from macro 'GOBJECT_DEPRECATED'
#define GOBJECT_DEPRECATED G_DEPRECATED _GOBJECT_EXTERN
                           ^
/opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/glib/gmacros.h:1262:37: note: expanded from macro 'G_DEPRECATED'
#define G_DEPRECATED __attribute__((__deprecated__))
                                    ^
indicator-object.c:305:34: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" [-W#pragma-messages]
        IndicatorObjectPrivate * priv = G_TYPE_INSTANCE_GET_PRIVATE (self, INDICATOR_OBJECT_TYPE, IndicatorObjectPrivate);
                                        ^
/opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gtype.h:686:145: note: expanded from macro 'G_TYPE_INSTANCE_GET_PRIVATE'
#define G_TYPE_INSTANCE_GET_PRIVATE(instance, g_type, c_type)   ((c_type*) g_type_instance_get_private ((GTypeInstance*) (instance), (g_type))) GOBJECT_DEPRECATED_MACRO_IN_2_58_FOR(G_ADD_PRIVATE)
                                                                                                                                                ^
/opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gobject-visibility.h:584:49: note: expanded from macro 'GOBJECT_DEPRECATED_MACRO_IN_2_58_FOR'
#define GOBJECT_DEPRECATED_MACRO_IN_2_58_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
                                                ^
/opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/glib/gmacros.h:1299:3: note: expanded from macro 'GLIB_DEPRECATED_MACRO_FOR'
  _GLIB_GNUC_DO_PRAGMA(GCC warning G_STRINGIFY (Deprecated pre-processor symbol: replace with #f))
  ^
/opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/glib/gmacros.h:1296:33: note: expanded from macro '_GLIB_GNUC_DO_PRAGMA'
#define _GLIB_GNUC_DO_PRAGMA(x) _Pragma(G_STRINGIFY (x))
                                ^
<scratch space>:17:6: note: expanded from here
 GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\""
     ^
1 warning and 1 error generated.
make[3]: *** [libindicator3_la-indicator-object.lo] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

** Affects: libindicator (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to libindicator in Ubuntu.
https://bugs.launchpad.net/bugs/2025210

Title:
  make failed with new version glib

Status in libindicator package in Ubuntu:
  New

Bug description:
  $ make
  /Library/Developer/CommandLineTools/usr/bin/make  all-recursive
  Making all in libindicator
  ( cd . && /opt/homebrew/bin/glib-mkenums --template /Users/daobingli/workspace/foss/libindicator-12.10.1/libindicator/indicator-object-enum-types.c.template						\
  		indicator.h indicator-desktop-shortcuts.h indicator-image-helper.h indicator-object.h indicator-service.h indicator-service-manager.h ) > tmp-indicator-object-enum-types.c		\
  	&& (cmp -s tmp-indicator-object-enum-types.c indicator-object-enum-types.c || cp tmp-indicator-object-enum-types.c indicator-object-enum-types.c )	\
  	&& rm -f tmp-indicator-object-enum-types.c
  /Library/Developer/CommandLineTools/usr/bin/make  all-am
    CC     libindicator3_la-indicator-object.lo
  indicator-object.c:129:2: error: 'g_type_class_add_private' is deprecated [-Werror,-Wdeprecated-declarations]
          g_type_class_add_private (klass, sizeof (IndicatorObjectPrivate));
          ^
  /opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gtype.h:1382:1: note: 'g_type_class_add_private' has been explicitly marked deprecated here
  GOBJECT_DEPRECATED_IN_2_58
  ^
  /opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gobject-visibility.h:581:36: note: expanded from macro 'GOBJECT_DEPRECATED_IN_2_58'
  #define GOBJECT_DEPRECATED_IN_2_58 GOBJECT_DEPRECATED
                                     ^
  /opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gobject-visibility.h:30:28: note: expanded from macro 'GOBJECT_DEPRECATED'
  #define GOBJECT_DEPRECATED G_DEPRECATED _GOBJECT_EXTERN
                             ^
  /opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/glib/gmacros.h:1262:37: note: expanded from macro 'G_DEPRECATED'
  #define G_DEPRECATED __attribute__((__deprecated__))
                                      ^
  indicator-object.c:305:34: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE" [-W#pragma-messages]
          IndicatorObjectPrivate * priv = G_TYPE_INSTANCE_GET_PRIVATE (self, INDICATOR_OBJECT_TYPE, IndicatorObjectPrivate);
                                          ^
  /opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gtype.h:686:145: note: expanded from macro 'G_TYPE_INSTANCE_GET_PRIVATE'
  #define G_TYPE_INSTANCE_GET_PRIVATE(instance, g_type, c_type)   ((c_type*) g_type_instance_get_private ((GTypeInstance*) (instance), (g_type))) GOBJECT_DEPRECATED_MACRO_IN_2_58_FOR(G_ADD_PRIVATE)
                                                                                                                                                  ^
  /opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/gobject/gobject-visibility.h:584:49: note: expanded from macro 'GOBJECT_DEPRECATED_MACRO_IN_2_58_FOR'
  #define GOBJECT_DEPRECATED_MACRO_IN_2_58_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
                                                  ^
  /opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/glib/gmacros.h:1299:3: note: expanded from macro 'GLIB_DEPRECATED_MACRO_FOR'
    _GLIB_GNUC_DO_PRAGMA(GCC warning G_STRINGIFY (Deprecated pre-processor symbol: replace with #f))
    ^
  /opt/homebrew/Cellar/glib/2.76.3/include/glib-2.0/glib/gmacros.h:1296:33: note: expanded from macro '_GLIB_GNUC_DO_PRAGMA'
  #define _GLIB_GNUC_DO_PRAGMA(x) _Pragma(G_STRINGIFY (x))
                                  ^
  <scratch space>:17:6: note: expanded from here
   GCC warning "Deprecated pre-processor symbol: replace with \"G_ADD_PRIVATE\""
       ^
  1 warning and 1 error generated.
  make[3]: *** [libindicator3_la-indicator-object.lo] Error 1
  make[2]: *** [all] Error 2
  make[1]: *** [all-recursive] Error 1
  make: *** [all] Error 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libindicator/+bug/2025210/+subscriptions