[libvirt-users] [Building Error] cannot stat `t-af.gmo': No such file or directory

Hi, everyone I'm building the newest libvirt from git repository, of version 782afa98e4a5fa9a0927a9e32f9cf36082a2e8e7 and failed complaining as the following. make[3]: Entering directory `/home/harvey/open-projects/libvirt-build/po' cd ../../libvirt/po && : --update af.po libvirt.pot cd ../../libvirt/po && rm -f af.gmo && : -c --statistics -o af.gmo af.po mv: cannot stat `t-af.gmo': No such file or directory make[3]: *** [../../libvirt/po/af.gmo] Error 1 make[3]: Leaving directory `/home/harvey/open-projects/libvirt-build/po' make[2]: *** [stamp-po] Error 2 make[2]: Leaving directory `/home/harvey/open-projects/libvirt-build/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/harvey/open-projects/libvirt-build' make: *** [all] Error 2 My building steps are cd <build-dir> <src-dir>/autogen.sh --help ./configure --prefix=xxx make

On 04/03/2012 08:18 AM, Zhihua Che wrote:
Hi, everyone
I'm building the newest libvirt from git repository, of version 782afa98e4a5fa9a0927a9e32f9cf36082a2e8e7 and failed complaining as the following.
make[3]: Entering directory `/home/harvey/open-projects/libvirt-build/po' cd ../../libvirt/po && : --update af.po libvirt.pot
Why is the ':' there? Usually, this would be a call to one of the gettext tools (msgmerge, in particular).
cd ../../libvirt/po && rm -f af.gmo && : -c --statistics -o af.gmo af.po mv: cannot stat `t-af.gmo': No such file or directory
So maybe this is fallout from not having all of the gettext developer tools installed? -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

在 2012年4月3日 下午11:02,Eric Blake <eblake@redhat.com> 写道:
On 04/03/2012 08:18 AM, Zhihua Che wrote:
Hi, everyone
I'm building the newest libvirt from git repository, of version 782afa98e4a5fa9a0927a9e32f9cf36082a2e8e7 and failed complaining as the following.
make[3]: Entering directory `/home/harvey/open-projects/libvirt-build/po' cd ../../libvirt/po && : --update af.po libvirt.pot
Why is the ':' there? Usually, this would be a call to one of the gettext tools (msgmerge, in particular).
cd ../../libvirt/po && rm -f af.gmo && : -c --statistics -o af.gmo af.po mv: cannot stat `t-af.gmo': No such file or directory
So maybe this is fallout from not having all of the gettext developer tools installed?
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
I guess you're right, after I install gettext, building succeeds. I wonder if it's better that configure would fail when some packages wasn't ready. I didn't know I missed some packages because configure didn't output errors and any obvious warnings.

On 04/03/2012 09:40 AM, Zhihua Che wrote:
在 2012年4月3日 下午11:02,Eric Blake <eblake@redhat.com> 写道:
On 04/03/2012 08:18 AM, Zhihua Che wrote:
Hi, everyone
I'm building the newest libvirt from git repository, of version 782afa98e4a5fa9a0927a9e32f9cf36082a2e8e7 and failed complaining as the following.
make[3]: Entering directory `/home/harvey/open-projects/libvirt-build/po' cd ../../libvirt/po && : --update af.po libvirt.pot
Why is the ':' there? Usually, this would be a call to one of the gettext tools (msgmerge, in particular).
I guess you're right, after I install gettext, building succeeds.
I wonder if it's better that configure would fail when some packages wasn't ready. I didn't know I missed some packages because configure didn't output errors and any obvious warnings.
Running ./autogen.sh should already be requiring minimum tools; look at how bootstrap.conf has the $buildreq variable that includes gettext 0.17 as a prereq. Maybe the problem is that you can have a system with gettext but not msgmerge? What distro are you using, and what package(s) did you install to get things working? How are the binaries divided between packages? Do we need to add a line to $buildreq? -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

在 2012年4月3日 下午11:44,Eric Blake <eblake@redhat.com> 写道:
On 04/03/2012 09:40 AM, Zhihua Che wrote:
在 2012年4月3日 下午11:02,Eric Blake <eblake@redhat.com> 写道:
On 04/03/2012 08:18 AM, Zhihua Che wrote:
Hi, everyone
I'm building the newest libvirt from git repository, of version 782afa98e4a5fa9a0927a9e32f9cf36082a2e8e7 and failed complaining as the following.
make[3]: Entering directory `/home/harvey/open-projects/libvirt-build/po' cd ../../libvirt/po && : --update af.po libvirt.pot
Why is the ':' there? Usually, this would be a call to one of the gettext tools (msgmerge, in particular).
I guess you're right, after I install gettext, building succeeds.
I wonder if it's better that configure would fail when some packages wasn't ready. I didn't know I missed some packages because configure didn't output errors and any obvious warnings.
Running ./autogen.sh should already be requiring minimum tools; look at how bootstrap.conf has the $buildreq variable that includes gettext 0.17 as a prereq. Maybe the problem is that you can have a system with gettext but not msgmerge? What distro are you using, and what package(s) did you install to get things working? How are the binaries divided between packages? Do we need to add a line to $buildreq?
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
I use ubuntu-11.10. I just issued "sudo apt-get install gettext" and things worked. What do you mean by "How are the binaries divided between packages?" ? I'd say in my system packages installed by apt-get are all installed in default directories, such as /usr/local

On 04/03/2012 10:13 AM, Zhihua Che wrote:
Running ./autogen.sh should already be requiring minimum tools; look at how bootstrap.conf has the $buildreq variable that includes gettext 0.17 as a prereq. Maybe the problem is that you can have a system with gettext but not msgmerge? What distro are you using, and what package(s) did you install to get things working? How are the binaries divided between packages? Do we need to add a line to $buildreq?
I use ubuntu-11.10.
I just issued "sudo apt-get install gettext" and things worked.
What do you mean by "How are the binaries divided between packages?" ? I'd say in my system packages installed by apt-get are all installed in default directories, such as /usr/local
On Fedora, 'autopoint' is part of gettext-devel-0.18.1.1-8.fc16.x86_64, but 'gettext' and 'msgmerge' are parts of gettext-0.18.1.1-8.fc16.x86_64. Thus, checking for either the 'gettext' or the 'gettext-devel' package in isolation is wrong; a bootstrap of libvirt needs both packages on Fedora (then again, gettext-devel depends on gettext, so depending on the right one package pulls in both). What I'm trying to ask, then, is why your run of ./autogen.sh didn't pick up that 'gettext' was missing, and why installing the 'gettext' package also installed the 'msgmerge' binary needed later on in the build. -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

在 2012年4月4日 上午12:44,Eric Blake <eblake@redhat.com> 写道:
On 04/03/2012 10:13 AM, Zhihua Che wrote:
Running ./autogen.sh should already be requiring minimum tools; look at how bootstrap.conf has the $buildreq variable that includes gettext 0.17 as a prereq. Maybe the problem is that you can have a system with gettext but not msgmerge? What distro are you using, and what package(s) did you install to get things working? How are the binaries divided between packages? Do we need to add a line to $buildreq?
I use ubuntu-11.10.
I just issued "sudo apt-get install gettext" and things worked.
What do you mean by "How are the binaries divided between packages?" ? I'd say in my system packages installed by apt-get are all installed in default directories, such as /usr/local
On Fedora, 'autopoint' is part of gettext-devel-0.18.1.1-8.fc16.x86_64, but 'gettext' and 'msgmerge' are parts of gettext-0.18.1.1-8.fc16.x86_64. Thus, checking for either the 'gettext' or the 'gettext-devel' package in isolation is wrong; a bootstrap of libvirt needs both packages on Fedora (then again, gettext-devel depends on gettext, so depending on the right one package pulls in both).
What I'm trying to ask, then, is why your run of ./autogen.sh didn't pick up that 'gettext' was missing, and why installing the 'gettext' package also installed the 'msgmerge' binary needed later on in the build.
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
The following is dependencies involving gettext on ubuntu. I wish it help you. $ apt-cache depends gettext gettext Depends: libc6 Depends: libcroco3 Depends: libglib2.0-0 Depends: libgomp1 Depends: libncurses5 Depends: libunistring0 Depends: libxml2 Depends: gettext-base |Depends: dpkg dpkg:i386 Depends: install-info Suggests: gettext-doc |Recommends: curl |Recommends: wget wget:i386 Recommends: lynx-cur Conflicts: autopoint Conflicts: <autopoint:i386> Conflicts: gettext:i386 $ apt-cache rdepends gettext gettext Reverse Depends: gettext:i386 monodevelop lokalize spellcast system-config-lvm smarty-gettext scenic publican poker-web poedit monodevelop libwxgtk2.8-dev libwxgtk2.6-dev libwxbase2.8-dev libwxbase2.6-dev libvips-dev libgettext-ruby1.9.1 libgettext-ruby1.8 libebox kernel-package jhbuild istanbul ikiwiki horde3 gramadoir gosa gnunet-tools gnunet-server gnunet-client gnulib emdebian-tdeb drizzle-plugin-dev checkinstall translate-toolkit quilt po4a po-debconf lokalize lintian intltool-debian intltool gnome-common gettext-el autopoint autoconf autoconf
participants (2)
-
Eric Blake
-
Zhihua Che