GNOME Bugzilla – Bug 51823
gettext fixes
Last modified: 2009-08-15 18:40:50 UTC
The attached patch fixes: 1. If --with-included-gettext is specified, need to -I$(top_srcdir)/intl 2. Fix for AM_WITH_NLS on Solaris (upgrade to latest serial #108)
Created attachment 374 [details] [review] PATCH
Re-assigning all Gimp bugs to default component owner (Gimp bugs list)
I think that something similar to your "-I$(top_srcdir)/intl" patch has already been applied to the 1.2.2 branch, but I am not sure. I use Solaris 2.6, but I have GNU gettext installed so I do not use the "--with-included-gettext" option. Someone else should test this...
please try with gimp-1.2.2-pre2
I just updated from CVS and tried a build on HP-UX 11.00 which does *not* have <libintl.h>. ENABLE_NLS is defined in config.h and I get: gmake[3]: Entering directory `/opt/build/gimp-1.2.2/plug-ins/dbbrowser' cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/opt/TWWfsw/gtk+12/include/gtk-1.2 -I/opt/TWWfsw/glib12/include/glib-1.2 -I/opt/TWWfsw/glib12/lib/glib/include -I/usr/contrib/X11R6/include -I/usr/include/X11R6 -I/opt/TWWfsw/gimp12/include -DLOCALEDIR=\""/opt/TWWfsw/gimp12/share/locale"\" -I/opt/TWWfsw/jpeg/include -I/opt/TWWfsw/libpng10/include -I/opt/TWWfsw/libtiff35/include -I/opt/TWWfsw/xpm/include -I/opt/TWWfsw/zlib11/include -DGTK_DISABLE_COMPAT_H +O2 -Ae -z +ESlit +Onofltacc +DAportable +Oentrysched +Odataprefetch -c dbbrowser.c cpp: "../../libgimp/gimpintl.h", line 41: error 4036: Can't open include file 'libintl.h'. gmake[3]: *** [dbbrowser.o] Error 1 I looked at plug-ins/dbbrowser/Makefile.am and don't see how the toplevel intl/ directory gets added to INCLUDES so don't see how --with-included-gettext will work unless <libintl.h> exists on the system (as is the case with Solaris). I still think plug-ins/*/Makefile.am needs -I$(top_srcdir)/intl added to INCLUDES. Note that my gettext is 0.10.38 but I don't think this matters.
OK, we finally went ahead and added -I$(top_srcdir)/intl to all Makefiles. Please do test this as soon as possible and report back. 2001-07-02 Sven Neumann <sven@gimp.org> * plug-ins/*/Makefile.am * plug-ins/common/mkgen.pl: added -I$(top_srcdir)/intl to INCLUDES. This will hopefully fix #51823 without breaking it for other platforms.
gimp-1.2.2-pre3 is out which should have this problem solved. Please reopen if not.