Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 2015 22:25:06 +0000 (UTC)
From:      Christian Weisgerber <>
Subject:   FreeBSD 9: make: Error expanding embedded variable
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
The po/ file shipped with gettext 0.19 triggers a bug
in the old make(1) on FreeBSD 9 that causes this cryptic error:

Error expanding embedded variable.

A minimal Makefile to reproduce the problem is this:

BAR = $(FOO$(BAZ))
all: $(BAR)

The bug no longer exists in bmake.

If you google for the error message, you'll find the advice "use
gmake", which is not particularly appropriate in this case, since
po/ is portable and does not use any gmake features.

The po/ that ships with gettext is copied into a
zillion projects.  I ran into the problem when pkg-fallout sent me
a report about my recent archivers/gcpio update.  I expect the
problem to spread, as projects start using newer versions of this

Here's the fix I used:

--- po/	2015-09-12 10:51:46 UTC
+++ po/
@@ -80,6 +80,7 @@ CATALOGS = @CATALOGS@
 POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot
 DISTFILESDEPS_ = update-po
Christian "naddy" Weisgerber                

Want to link to this message? Use this URL: <>