[csw-maintainers] Missing definition of G_CONST_RETURN
Rafael Ostertag
raos at opencsw.org
Mon Apr 15 14:09:20 CEST 2013
Hi Dago
On Fri, Apr 12, 2013 at 10:53:18AM +0200, Dagobert Michelsen wrote:
> Hi,
>
> I am trying to compile a recent wireshark and get errors that G_CONST_RETURN is not defined.
> This should be the case during glib.h inclusion, so I figure this is a general problem that
> most likely someone has already seen and solved, right? ;-)
>
> > gmake[2]: Entering directory `/home/dam/mgar/pkg/wireshark/trunk/work/solaris10-sparc/build-isa-sparcv8plus/wireshark-1.8.6/ui/gtk'
> > source='about_dlg.c' object='libgtkui_a-about_dlg.o' libtool=no \
> > DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
> > /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../wiretap -I/opt/csw/include -I/opt/csw/include -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -D_U_="" -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include -I/opt/csw/include '-DPLUGIN_DIR="/opt/csw/lib/wireshark/plugins/1.8.6"' -xO3 -m32 -xarch=sparc -D_REENTRANT -D_PTHREADS -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API -I/opt/csw/include/gtk-2.0 -I/opt/csw/lib/gtk-2.0/include -I/opt/csw/include/atk-1.0 -I/opt/csw/include/cairo -I/opt/csw/include/gdk-pixbuf-2.0 -I/opt/csw/include/pango-1.0 -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/include -I/opt/csw/include -I/opt/csw/include/pixman-1 -I/opt/csw/include/freetype2 -I/opt/csw/include/libpng15 -c -o libgtkui_a-about_dlg.o `test -f 'about_dlg.c' || echo './'`about_dlg.c
> > "/opt/csw/include/glib-2.0/gobject/gparam.h", line 158: warning: integer overflow detected: op "<<"
> > "/opt/csw/include/pango-1.0/pango/pango-script.h", line 132: syntax error before or at: G_CONST_RETURN
> > "/opt/csw/include/pango-1.0/pango/pango-script.h", line 132: warning: undefined or missing type for: G_CONST_RETURN
G_CONST_RETURN was deprecated in glib version 2.30 [0] and since -DG_DISABLE_DEPRECATED is defined, G_CONST_RETURN
won't be defined [1].
If you could get rid -DG_DISABLE_DEPRECATED, you most likely get rid of the error.
cheers
rafi
[0] https://developer.gnome.org/glib/stable/glib-Standard-Macros.html#G-CONST-RETURN:CAPS
[1] /opt/csw/include/glib-2.0/glib/gmacros.h
More information about the maintainers
mailing list