I'm following X's git master and have libxcb built and installed. autogen.sh fails. Here's the error message: ./autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4 /usr/share/aclocal/imlib.m4:9: warning: underquoted definition of AM_PATH_IMLIB /usr/share/aclocal/imlib.m4:9: run info '(automake)Extending aclocal' /usr/share/aclocal/imlib.m4:9: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf autoreconf: configure.ac: not using Autoheader autoreconf: running: automake --add-missing --copy --no-force src/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/Makefile.am:1: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure src/Makefile.am:1: its definition is in aclocal's search path. src/Makefile.am:13: `xcbinclude_HEADERS' is used but `xcbincludedir' is undefined Makefile.am:6: `pkgconfig_DATA' is used but `pkgconfigdir' is undefined autoreconf: automake failed with exit status: 1
What versions of automake, autoconf, and libtool do you have installed? Have those changed recently? Since you said you track xcb git master, do you happen to know at what point this stopped working? Would you consider bisecting it?
1st the versions: automake (GNU automake) 1.11.1 autoconf (GNU Autoconf) 2.68 libtool (GNU libtool) 2.4 I also wasn't clear enough in my initial comment. When I said that I was following the X git master, that was for the xorg standard(?) files. As such, I had libxcb but not the util subdirectory of xcb checked out. I needed to build the util directory as it is a dependency for something else. This was my initial attempt at building it, with a fresh git clone. The other parts of xcb configure and install just fine.
I had this build failure on the util project as well. It only seems to affect a fresh git checkout; if you un-tar a release version on top of the git repository and then do a `git reset --hard`, everything builds again. I suspect the devs have forgotten to check in some important auto-fu file.
Same bug here, with util-image. Hopefully some autotools guru will save us.
Does "git submodule update --init" help with this?
Yes. I needed to remove the "m4" directory first, but yes it does. Thanks much! I had no idea the m4 was in a submodule (and it seems rather strange to me)? So it looks like the fix is: 1) Add LTINIT to configure.ac 2) Make autogen.sh do "rm -rf m4; git submodule update --init" Sound correct? --Bart
The way forward for this should be one of the following two patches: http://lists.freedesktop.org/archives/xcb/2013-August/008516.html http://lists.freedesktop.org/archives/xcb/2013-August/008483.html Only because of those patches did I remember that submodules could be the issue here.
We should definitely commit something like this. Wouldn't it be better to just purge (or move aside) the m4 directory and then just run "git submodule update --init" than to remind the user? I think we also want to make sure that configure.ac includes LT_INIT; it's not a fatal error, but it is a warning.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libxcb-cursor/issues/5.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.