Opened 7 years ago

Closed 7 years ago

#54901 closed defect (fixed)

glade @3.20.0: error: static declaration of 'g_ptr_array_find' follows non-static declaration

Reported by: jaitony Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: glade

Description (last modified by ryandesign (Ryan Carsten Schmidt))

:info:build glade-signal-model.c:68:1: error: static declaration of 'g_ptr_array_find' follows non-static declaration
:info:build g_ptr_array_find (GPtrArray *array, gpointer data)
:info:build ^
:info:build /opt/local/include/glib-2.0/glib/garray.h:186:12: note: previous declaration is here
:info:build gboolean   g_ptr_array_find               (GPtrArray        *haystack,
:info:build            ^
:info:build glade-signal-model.c:527:61: error: too few arguments to function call, expected 3, have 2
:info:build                   gint handler_index = g_ptr_array_find (handlers, handler);
:info:build                                        ~~~~~~~~~~~~~~~~                   ^
:info:build /opt/local/include/glib-2.0/glib/garray.h:185:1: note: 'g_ptr_array_find' declared here
:info:build GLIB_AVAILABLE_IN_2_54
:info:build ^
:info:build /opt/local/include/glib-2.0/glib/gversionmacros.h:486:49: note: expanded from macro 'GLIB_AVAILABLE_IN_2_54'
:info:build # define GLIB_AVAILABLE_IN_2_54                 _GLIB_EXTERN
:info:build                                                 ^
:info:build /opt/local/include/glib-2.0/glib/gmacros.h:408:22: note: expanded from macro '_GLIB_EXTERN'
:info:build #define _GLIB_EXTERN extern
:info:build                      ^
:info:build glade-signal-model.c:585:80: error: too few arguments to function call, expected 3, have 2
:info:build           if (!handlers || !handlers->len || g_ptr_array_find (handlers, signal) == 0)
:info:build                                              ~~~~~~~~~~~~~~~~                  ^
:info:build /opt/local/include/glib-2.0/glib/garray.h:185:1: note: 'g_ptr_array_find' declared here
:info:build GLIB_AVAILABLE_IN_2_54
:info:build ^
:info:build /opt/local/include/glib-2.0/glib/gversionmacros.h:486:49: note: expanded from macro 'GLIB_AVAILABLE_IN_2_54'
:info:build # define GLIB_AVAILABLE_IN_2_54                 _GLIB_EXTERN
:info:build                                                 ^
:info:build /opt/local/include/glib-2.0/glib/gmacros.h:408:22: note: expanded from macro '_GLIB_EXTERN'
:info:build #define _GLIB_EXTERN extern
:info:build                      ^
:info:build 1 warning generated.
:info:build mv -f .deps/libgladeui_2_la-glade-signal-editor.Tpo .deps/libgladeui_2_la-glade-signal-editor.Plo
:info:build /bin/sh ../libtool  --tag=CC   --mode=compile /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I..  -DG_LOG_DOMAIN=\"GladeUI\" -DGLADE_CATALOGSDIR="\"/opt/local/share/glade/catalogs\"" -DGLADE_MODULESDIR="\"/opt/local/lib/glade/modules\"" -DGLADE_PIXMAPSDIR="\"/opt/local/share/glade/pixmaps\"" -DGLADE_LOCALEDIR="\"/opt/local/share/locale\"" -DGLADE_BINDIR="\"/opt/local/bin\"" -DGLADE_LIBDIR="\"/opt/local/lib\"" -I.. -I.. -D_REENTRANT -I/opt/local/include/gtk-3.0 -I/opt/local/include/at-spi2-atk/2.0 -I/opt/local/include/at-spi-2.0 -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include -I/opt/local/include/gtk-3.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include/cairo -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng16 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/libxml2   -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs -Werror=return-type  -DGLADE_ENABLE_DEBUG  -I/opt/local/include  -pipe -O0 -Wno-format-nonliteral -arch x86_64 -g -O0 -MT libgladeui_2_la-glade-widget-action.lo -MD -MP -MF .deps/libgladeui_2_la-glade-widget-action.Tpo -c -o libgladeui_2_la-glade-widget-action.lo `test -f 'glade-widget-action.c' || echo './'`glade-widget-action.c
:info:build glade-signal-model.c:721:56: error: too few arguments to function call, expected 3, have 2
:info:build           gint new_index = g_ptr_array_find (handlers, handler) + 1;
:info:build                            ~~~~~~~~~~~~~~~~                   ^
:info:build /opt/local/include/glib-2.0/glib/garray.h:185:1: note: 'g_ptr_array_find' declared here
:info:build GLIB_AVAILABLE_IN_2_54
:info:build ^
:info:build /opt/local/include/glib-2.0/glib/gversionmacros.h:486:49: note: expanded from macro 'GLIB_AVAILABLE_IN_2_54'
:info:build # define GLIB_AVAILABLE_IN_2_54                 _GLIB_EXTERN
:info:build                                                 ^
:info:build /opt/local/include/glib-2.0/glib/gmacros.h:408:22: note: expanded from macro '_GLIB_EXTERN'
:info:build #define _GLIB_EXTERN extern
:info:build                      ^
:info:build 4 errors generated.

Attachments (1)

main.log (230.6 KB) - added by jaitony 7 years ago.
glade main.log

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by jaitony

Attachment: main.log added

glade main.log

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to dbevans
Port: glade added
Status: newassigned
Summary: glade 10.10.5glade @10.10.5: error: static declaration of 'g_ptr_array_find' follows non-static declaration

comment:2 Changed 7 years ago by dbevans (David B. Evans)

Status: assignedaccepted
Summary: glade @10.10.5: error: static declaration of 'g_ptr_array_find' follows non-static declarationglade @3.20.0: error: static declaration of 'g_ptr_array_find' follows non-static declaration
Version: 2.4.1

comment:3 Changed 7 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: acceptedclosed

In 7560f15de0c437bd433285ec3603b36a7b136bbd/macports-ports:

glade: patch for compatibility with glib 2.54

Closes #54901

Note: See TracTickets for help on using tickets.