Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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[2]: *** [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?

-BVE

share|improve this question
    
GTK1.xx ? Use a new Putty. It uses GTK2. (Guess you can get it from macports or something like that.) –  Shiki Jul 20 '10 at 21:23
2  
I'm curious why anyone would install Putty on anything other than Windows. Why not just use the built in SSH (OpenSSH) that's already in Mac OS X? –  Spiff Jul 20 '10 at 21:38
    
@Shiki I believe you're mistaken. The official site PuTTY site, chiark.greenend.org.uk/~sgtatham/putty , lists 0.60 as the latest, which is what MacPorts has. The README for 0.60 says it requires GTK+1.2 and that GTK+2 is not supported. –  Spiff Jul 20 '10 at 21:47
    
@Spiff: No I'm not. aur.archlinux.org/packages.php?ID=18161 ; aur.archlinux.org/packages.php?ID=28329 >> both == gtk2.0+ –  Shiki Jul 21 '10 at 7:45
    
@Shiki, so when you said, "Use a new Putty", you actually meant, "Use some random person's unofficial fork of Putty"? –  Spiff Jul 21 '10 at 10:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.