On Mon, 15 Oct 2007 15:32:41 +0200, Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 11 Oct 2007 17:32:52 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
I got this error compiling 0.12 pre:
Making all in po make[2]: Entrando no diretório `/var/tmp/geany-0.12pre/po' file=`echo be | sed 's,.*/,,'`.gmo \ && rm -f $file && -o $file be.po /bin/sh: -o: not found make[2]: ** [be.gmo] Erro 127 make[2]: Saindo do diretório `/var/tmp/geany-0.12pre/po'
It seems to be from these lines in po/Makefile.in.in:
.po.gmo: file=`echo $* | sed 's,.*/,,'`.gmo \ && rm -f $$file && $(GMSGFMT) -o $$file $<
Perhaps we should add a ./configure test to prevent this, it does seem a confusing error message. But what would we check for? I couldn't work out what $(GMSGFMT) should be.
I'm not sure. ./configure itself checks for msgfmt and in my generated
I was wrong, it does not. The above happens when msgfmt isn't found on the system. IMO, the macro AM_GLIB_GNU_GETTEXT from GLib we use in configure.in to initialize all gettext support should explicitly check for msgfmt and fail if it is missing. But it doesn't so I opened a bug report against GLib.
http://bugzilla.gnome.org/show_bug.cgi?id=488235
As a workaround, I will add a configure check especially for msgfmt.
Regards, Enrico