Bug 39019 - autogen.sh failure in git/master:
Summary: autogen.sh failure in git/master:
Status: RESOLVED MOVED
Alias: None
Product: XCB
Classification: Unclassified
Component: Utils (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: xcb mailing list dummy
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 19:29 UTC by David Ronis
Modified: 2019-02-16 19:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description David Ronis 2011-07-06 19:29:46 UTC
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
Comment 1 Josh Triplett 2011-07-06 22:24:54 UTC
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?
Comment 2 David Ronis 2011-07-07 08:36:00 UTC
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.
Comment 3 William Swanson 2012-11-21 22:44:10 UTC
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.
Comment 4 Bart Massey 2013-08-21 18:33:58 UTC
Same bug here, with util-image. Hopefully some autotools guru will save us.
Comment 5 Uli Schlachter 2013-08-21 19:17:19 UTC
Does "git submodule update --init" help with this?
Comment 6 Bart Massey 2013-08-21 19:23:17 UTC
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
Comment 7 Uli Schlachter 2013-08-21 19:43:21 UTC
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.
Comment 8 Bart Massey 2013-08-21 20:18:05 UTC
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.
Comment 9 GitLab Migration User 2019-02-16 19:44:26 UTC
-- 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.