Marco Sinhoreli wrote:
Hello all, I have a problem to compile the virt-manager in a Debian etch (64 bit version). I got the virt-manager source from mercurial repository. Bellow the output autogen.sh command: ./autogen.sh libtoolize: `config.guess' exists: use `--force' to overwrite libtoolize: `config.sub' exists: use `--force' to overwrite libtoolize: `ltmain.sh' exists: use `--force' to overwrite configure.ac:7: required file `./config.rpath' not found man/Makefile.am:6: `%'-style pattern rules are a GNU make extension
Ah the joys of automake ... You can get rid of the above warnings (at the miniscule cost of requiring GNU make) with the first attached patch.
src/Makefile.am:26: variable `schema_SOURCES' is defined but no program or src/Makefile.am:26: library has `schema' as canonic name (possible typo) src/Makefile.am:11: variable `libexec_SOURCES' is defined but no program or src/Makefile.am:11: library has `libexec' as canonic name (possible typo) src/Makefile.am:4: variable `bin_SOURCES' is defined but no program or src/Makefile.am:4: library has `bin' as canonic name (possible typo) src/Makefile.am:18: variable `desktop_SOURCES' is defined but no program or src/Makefile.am:18: library has `desktop' as canonic name (possible typo) src/Makefile.am:8: variable `python_SOURCES' is defined but no program or src/Makefile.am:8: library has `python' as canonic name (possible typo) src/Makefile.am:22: variable `dbus_SOURCES' is defined but no program or src/Makefile.am:22: library has `dbus' as canonic name (possible typo)
These are actual error messages. For example: schemadir = $(sysconfdir)/gconf/schemas schema_SOURCES = $(PACKAGE).schemas.in schema_DATA = $(PACKAGE).schemas %.schemas: $(srcdir)/%.schemas.in sed -e "s,::PACKAGE::,$(PACKAGE)," < $< > $@What appears to be meant here is that virt-manager.schemas.in should be distributed in the tarball, that virt-manager.schemas should be installed in /etc/gconf/schemas, and that virt-manager.schemas is generated from virt-manager.schemas.in. It seems however that the version of automake shipped with Debian doesn't like you using _SOURCES when you are not building a binary or library (instead just list the files to be distributed in EXTRA_DIST).
Patch for that attached.I always wonder what problem exactly automake is supposed to solve, and I never use it in my own programs.
The final error is:
configure.ac:7: required file `./config.rpath' not found
To get this file the first time after you clone the repository, do: autoreconf -f -i -Wno-portabilityIn fact, we should really just use autoreconf instead of the home-brew autogen script. (That's what I recommend people do for virt-top et al.)
Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903
diff -r 58c46220f2df autogen.sh --- a/autogen.sh Wed Oct 17 14:25:45 2007 -0400 +++ b/autogen.sh Thu Oct 18 09:11:54 2007 +0100 @@ -9,7 +9,7 @@ perl -i -p -e 's,^GETTEXT_PACKAGE.*$,GET perl -i -p -e 's,^GETTEXT_PACKAGE.*$,GETTEXT_PACKAGE = virt-manager,' po/Makefile.in.in aclocal -I m4 libtoolize -automake -a +automake -a -Wno-portability autoconf # Hack around autoconf wierdness. Need to figure out what's really wrong touch config.rpath
diff -r 58c46220f2df src/Makefile.am --- a/src/Makefile.am Wed Oct 17 14:25:45 2007 -0400 +++ b/src/Makefile.am Thu Oct 18 09:35:34 2007 +0100 @@ -1,34 +1,28 @@ SUBDIRS = graphWidgets virtManager -bin_SOURCES = virt-manager.in bin_SCRIPTS = virt-manager pythondir = $(pkgdatadir) -python_SOURCES = $(PACKAGE).py.in python_DATA = $(PACKAGE).py -libexec_SOURCES = $(PACKAGE)-launch.in libexec_SCRIPTS = $(PACKAGE)-launch gladedir = $(pkgdatadir) glade_DATA = $(wildcard $(srcdir)/*.glade) desktopdir = $(datadir)/applications -desktop_SOURCES = $(PACKAGE).desktop.in.in desktop_DATA = $(PACKAGE).desktop dbusdir = $(datadir)/dbus-1/services -dbus_SOURCES = $(PACKAGE).service.in dbus_DATA = $(PACKAGE).service schemadir = $(sysconfdir)/gconf/schemas -schema_SOURCES = $(PACKAGE).schemas.in schema_DATA = $(PACKAGE).schemas CLEANFILES = $(bin_SCRIPTS) $(desktop_DATA) $(dbus_DATA) $(python_DATA) $(libexec_SCRIPTS) $(schema_DATA) $(PACKAGE).desktop.in -EXTRA_DIST = $(bin_SOURCES) $(desktop_SOURCES) $(dbus_SOURCES) $(python_SOURCES) $(glade_DATA) $(libexec_SOURCES) $(schema_SOURCES) +EXTRA_DIST = virt-manager.in $(PACKAGE).desktop.in.in $(PACKAGE).service.in $(PACKAGE).py.in $(glade_DATA) $(PACKAGE)-launch.in $(PACKAGE).schemas.in @INTLTOOL_DESKTOP_RULE@
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools