GMSGFMT variable not defined

Jeremy Messenger mezz7 at cox.net
Thu Jul 12 18:19:47 UTC 2007


On Thu, 12 Jul 2007 13:13:59 -0500, Jeremy Messenger <mezz7 at cox.net> wrote:

> On Thu, 12 Jul 2007 12:37:54 -0500, Marcin Simonides  
> <marcin at studio4plus.com> wrote:
>
>> Jeremy Messenger wrote:
>>> On Thu, 12 Jul 2007 11:26:23 -0500, Marcin Simonides
>> [...]
>>>>
>>>> I've checked with the program's aclocal.m4, it contains a line:
>>>>
>>>> AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
>>>>
>>>> which looks right to me - GMSGFMT should be set to $MSGFMT if the  
>>>> program is not found. msgfmt is being recognised by configure *but*  
>>>> both MSFGMT and GMSGFMT are set to "nothing" in the program's  
>>>> po/Makefile.
>>>>
>>>> There is a check for msgfmt (successful) in the configure's output,  
>>>> but none for gmsgfmt (the configure.am.
>>>  Can you show us the configure output?
>>
>> Certainly:
>>
>> ===>  Configuring for gnome-subtitles-0.6
>> checking for pkg-config... /usr/local/bin/pkg-config
>> checking pkg-config is at least version 0.9.0... yes
>> checking for a BSD-compatible install... /usr/bin/install -c -o root -g  
>> wheel
>> checking whether build environment is sane... yes
>> checking for gawk... gawk
>> checking whether gmake sets $(MAKE)... yes
>> checking whether to enable maintainer-specific portions of Makefiles...  
>> no
>> checking for style of include used by gmake... GNU
>> checking for gcc... cc
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... yes
>> checking whether we are cross compiling... no
>> checking for suffix of executables...
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether cc accepts -g... yes
>> checking for cc option to accept ISO C89... none needed
>> checking dependency style of cc... none
>> checking for intltool >= 0.35.0... 0.35.5 found
>> checking for perl... /usr/bin/perl
>> checking for XML::Parser... ok
>> checking for iconv... /usr/local/bin/iconv
>> checking for msgfmt... /usr/local/bin/msgfmt
>> checking for msgmerge... /usr/local/bin/msgmerge
>> checking for xgettext... /usr/local/bin/xgettext
>> checking for a BSD-compatible install... /usr/bin/install -c -o root -g  
>> wheel
>> checking how to run the C preprocessor... cc -E
>> checking for grep that handles long lines and -e... /usr/bin/grep
>> checking for egrep... /usr/bin/grep -E
>> checking for ANSI C header files... yes
>> checking for sys/types.h... yes
>> checking for sys/stat.h... yes
>> checking for stdlib.h... yes
>> checking for string.h... yes
>> checking for memory.h... yes
>> checking for strings.h... yes
>> checking for inttypes.h... yes
>> checking for stdint.h... yes
>> checking for unistd.h... yes
>> checking build system type... i386-portbld-freebsd6.2
>> checking host system type... i386-portbld-freebsd6.2
>> checking locale.h usability... yes
>> checking locale.h presence... yes
>> checking for locale.h... yes
>> checking for LC_MESSAGES... yes
>> checking libintl.h usability... no
>> checking libintl.h presence... no
>> checking for libintl.h... no
> <snip>
>
> Here, this is problem. Have you tried to add this below in your Makefile  
> yet?
>
> =====================================
> CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
> 		LDFLAGS="-L${LOCALBASE}/lib"
> =====================================

In case if you don't know why this is need. It is because of the test in
the configure doesn't add -I/usr/local/include and -L/usr/local/lib when
trying to compile test with gettext. It should show failure results in
config.log for can't find header and library, which wasn't search in
/usr/local.

Cheers,
Mezz

> After you add, you should see the change from 'no' to 'yes' and extra  
> details of lines related with this. An example of before and after on  
> editors/gedit:
>
> =====================================
> --- before      Thu Jul 12 13:07:27 2007
> +++ after       Thu Jul 12 13:07:55 2007
> @@ -166,9 +166,19 @@
>   checking locale.h presence... yes
>   checking for locale.h... yes
>   checking for LC_MESSAGES... yes
> -checking libintl.h usability... no
> -checking libintl.h presence... no
> -checking for libintl.h... no
> +checking libintl.h usability... yes
> +checking libintl.h presence... yes
> +checking for libintl.h... yes
> +checking for ngettext in libc... no
> +checking for bindtextdomain in -lintl... yes
> +checking for ngettext in -lintl... yes
> +checking for dgettext in -lintl... yes
> +checking for bind_textdomain_codeset... yes
> +checking for msgfmt... /usr/local/bin/msgfmt
> +checking for dcgettext... yes
> +checking if msgfmt accepts -c... yes
> +checking for gmsgfmt... /usr/local/bin/msgfmt
> +checking for xgettext... /usr/local/bin/xgettext
>   checking for ENCHANT... yes
>   checking whether iso-codes has iso-639 and iso-3166 domains... yes
>   checking for attr_copy_fd in -lattr... no
> =====================================
>
> Cheers,
> Mezz


-- 
mezz7 at cox.net  -  mezz at FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome at FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia at FreeBSD.org


More information about the freebsd-ports mailing list