#15207 closed defect (fixed)
gtk28 build failure on osx 10.5.2 - gtkiconfactory.c:2943: error: conflicting types for 'g_hash_table_get_keys'
Reported by: | pieter@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | gtk28 | Cc: | |
Port: |
Description
I get an error while building gtk28 on osx 10.5.2:
gtkiconfactory.c:2943: error: conflicting types for 'g_hash_table_get_keys'
---> Fetching gtk28 ---> Attempting to fetch gtk+-2.8.20.tar.bz2 from ftp://ftp.gtk.org/pub/gtk/v2.8 ---> Verifying checksum(s) for gtk28 ---> Extracting gtk28 ---> Configuring gtk28 ---> Building gtk28 with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtk28/work/gtk+-2.8.20" && make all CFLAGS+="-I/usr/X11R6/include" " returned error 2 Command output: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/opt/local/lib\" -DGTK_DATADIR=\"/opt/local/share\" -DGTK_DATA_PREFIX=\"/opt/local\" -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-apple-darwin9.2.2\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I/opt/local/include/atk-1.0 -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11/include -I/usr/X11R6/include -MT gtkhscrollbar.lo -MD -MP -MF .deps/gtkhscrollbar.Tpo -c gtkhscrollbar.c -fno-common -DPIC -o .libs/gtkhscrollbar.o if /bin/sh ../libtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/opt/local/lib\" -DGTK_DATADIR=\"/opt/local/share\" -DGTK_DATA_PREFIX=\"/opt/local\" -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-apple-darwin9.2.2\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I/opt/local/include/atk-1.0 -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11/include -I/usr/X11R6/include -MT gtkhseparator.lo -MD -MP -MF ".deps/gtkhseparator.Tpo" \ -c -o gtkhseparator.lo `test -f 'gtkhseparator.c' || echo './'`gtkhseparator.c; \ then mv -f ".deps/gtkhseparator.Tpo" ".deps/gtkhseparator.Plo"; \ else rm -f ".deps/gtkhseparator.Tpo"; exit 1; \ fi /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/opt/local/lib\" -DGTK_DATADIR=\"/opt/local/share\" -DGTK_DATA_PREFIX=\"/opt/local\" -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-apple-darwin9.2.2\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I/opt/local/include/atk-1.0 -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11/include -I/usr/X11R6/include -MT gtkhseparator.lo -MD -MP -MF .deps/gtkhseparator.Tpo -c gtkhseparator.c -fno-common -DPIC -o .libs/gtkhseparator.o if /bin/sh ../libtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/opt/local/lib\" -DGTK_DATADIR=\"/opt/local/share\" -DGTK_DATA_PREFIX=\"/opt/local\" -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-apple-darwin9.2.2\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I/opt/local/include/atk-1.0 -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11/include -I/usr/X11R6/include -MT gtkhsv.lo -MD -MP -MF ".deps/gtkhsv.Tpo" \ -c -o gtkhsv.lo `test -f 'gtkhsv.c' || echo './'`gtkhsv.c; \ then mv -f ".deps/gtkhsv.Tpo" ".deps/gtkhsv.Plo"; \ else rm -f ".deps/gtkhsv.Tpo"; exit 1; \ fi /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/opt/local/lib\" -DGTK_DATADIR=\"/opt/local/share\" -DGTK_DATA_PREFIX=\"/opt/local\" -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-apple-darwin9.2.2\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I/opt/local/include/atk-1.0 -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11/include -I/usr/X11R6/include -MT gtkhsv.lo -MD -MP -MF .deps/gtkhsv.Tpo -c gtkhsv.c -fno-common -DPIC -o .libs/gtkhsv.o gtkhsv.c: In function 'paint_ring': gtkhsv.c:1013: warning: pointer targets in passing argument 1 of 'cairo_image_surface_create_for_data' differ in signedness gtkhsv.c: In function 'paint_triangle': gtkhsv.c:1223: warning: pointer targets in passing argument 1 of 'cairo_image_surface_create_for_data' differ in signedness if /bin/sh ../libtool --mode=compile /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/opt/local/lib\" -DGTK_DATADIR=\"/opt/local/share\" -DGTK_DATA_PREFIX=\"/opt/local\" -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-apple-darwin9.2.2\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I/opt/local/include/atk-1.0 -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11/include -I/usr/X11R6/include -MT gtkiconfactory.lo -MD -MP -MF ".deps/gtkiconfactory.Tpo" \ -c -o gtkiconfactory.lo `test -f 'gtkiconfactory.c' || echo './'`gtkiconfactory.c; \ then mv -f ".deps/gtkiconfactory.Tpo" ".deps/gtkiconfactory.Plo"; \ else rm -f ".deps/gtkiconfactory.Tpo"; exit 1; \ fi /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/opt/local/lib\" -DGTK_DATADIR=\"/opt/local/share\" -DGTK_DATA_PREFIX=\"/opt/local\" -DGTK_SYSCONFDIR=\"/opt/local/etc\" -DGTK_VERSION=\"2.8.20\" -DGTK_BINARY_VERSION=\"2.4.0\" -DGTK_HOST=\"i686-apple-darwin9.2.2\" -DGTK_COMPILATION -I../gtk -I.. -I../gdk -I../gdk -I../gdk-pixbuf -I../gdk-pixbuf -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_FILE_SYSTEM_ENABLE_UNSUPPORTED -DG_DISABLE_CAST_CHECKS -D_REENTRANT -DXTHREADS -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/freetype2 -I/opt/local/include/libpng12 -I/usr/X11/include -I/opt/local/include/pixman-1 -I/opt/local/include/atk-1.0 -I/opt/local/include -no-cpp-precomp -DX_LOCALE -I/usr/X11/include -I/usr/X11R6/include -MT gtkiconfactory.lo -MD -MP -MF .deps/gtkiconfactory.Tpo -c gtkiconfactory.c -fno-common -DPIC -o .libs/gtkiconfactory.o gtkiconfactory.c:2943: error: conflicting types for 'g_hash_table_get_keys' /opt/local/include/glib-2.0/glib/ghash.h:94: error: previous declaration of 'g_hash_table_get_keys' was here make[4]: *** [gtkiconfactory.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Error: Status 1 encountered during processing.
Change History (7)
comment:1 Changed 17 years ago by jmroot (Joshua Root)
Milestone: | → Port Bugs |
---|
comment:2 Changed 16 years ago by rhwood@…
Is there a reason to use gtk28 and not gtk2, which is more current?
AFAIK gtk28 was split from gtk2 when there were some problems in gtk 2.10 for some users.
comment:3 follow-up: 4 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Owner: | changed from macports-tickets@… to jeremyhu@… |
---|
If you don't respond about your need for this port, I think we're just gonna nuke the port.
comment:6 Changed 16 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Probably needs to depend on a contemporaneous version of glib2 rather than the current one.