Installing gtk 1.2 (package name gtk1) with macports chokes on the final make, in libintl.h line 440.
extern locale_t libintl_newlocale (junk, stuff, stuff)
The compiler can't find locale_t, and I'm not doing any better.
The file imports locale.h, which doesn't exist, and xlocale.h, which doesn't define this type.
Where should locale_t be defined? This might be as easy as a missed dependency, but I don't know what is missing.
By request, here is xlocale.h, minus the copyright, which is the Open Group's.
#include <X11/Xfuncproto.h>
#include <X11/Xosdefs.h>
#ifndef X_LOCALE
#include <locale.h>
#else
#define LC_ALL 0
#define LC_COLLATE 1
#define LC_CTYPE 2
#define LC_MONETARY 3
#define LC_NUMERIC 4
#define LC_TIME 5
_XFUNCPROTOBEGIN
extern char *_Xsetlocale(
int /* category */,
_Xconst char* /* name */
);
_XFUNCPROTOEND
#define setlocale _Xsetlocale
#include <stddef.h>
#endif /* X_LOCALE */