I am trying to install putty, and the process includes installing a bunch of MacPorts packages, including GTK+
The GTK build is failing as follows:
:info:build /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_DISABLE_COMPAT_H -DGTK_LIBDIR=\"/opt/local/var/macports/software/glib1/1.2.10_6/lib\" -DGTK_DATA_PREFIX=\"/opt/local/var/macports/software/glib1/1.2.10_6\" -DGTK_SYSCONFDIR=\"/opt/local/var/macports/software/glib1/1.2.10_6/etc\" -DGTK_LOCALEDIR=\"/opt/local/var/macports/software/glib1/1.2.10_6/lib/locale\" -I.. -DGTK_NO_CHECK_CASTS -DUSE_XIM -DX_LOCALE -I/opt/local/include/glib-1.2 -I/opt/local/lib/glib/include -D_REENTRANT -g -O2 -Wall -c gtkmenubar.c -fno-common -DPIC -o .libs/gtkmenubar.lo :info:build In file included from gtkintl.h:7, :info:build from gtkmain.c:56: :info:build /opt/local/include/libintl.h:440: error: syntax error before 'libintl_newlocale' :info:build /opt/local/include/libintl.h:440: error: syntax error before 'locale_t' :info:build /opt/local/include/libintl.h:440: warning: type defaults to 'int' in declaration of 'libintl_newlocale' :info:build /opt/local/include/libintl.h:440: warning: data definition has no type or storage class :info:build make: *** [gtkmain.lo] Error 1
The appropriate section of libintl.h:
#if 1 #undef newlocale #define newlocale libintl_newlocale extern locale_t newlocale (int, const char *, locale_t); #endif
The only thing that I can see is that the GTK site speaks of dependencies that aren't reflected in port. Then again, we're not talking about the same version...
Any ideas why this is happening?