cannot compile guake: possibly undefined macro: AM_GCONF_SOURCE_2

Asked by attila123

I have trouble compiling guake (e.g. 0.5.2) in (a fully updated) Xubuntu 14.04.2.

I tried to follow the README.rst file.

'sudo apt-get build-dep guake' installed 67 new packages, but looks like gnome-common is missing:

$ ./autogen.sh
You need to install gnome-common from GNOME SVN and make
sure the gnome-autogen.sh script is in your $PATH.

I installed it with 'sudo apt-get install gnome-common' (not from gnome SVN). It installed 4 new packages.

After that, autogen.sh still fails:

$ ./autogen.sh
/usr/bin/gnome-autogen.sh
checking for autoreconf >= 2.53...
  testing autoreconf... found 2.69
checking for glib-gettext >= 2.2.0...
  testing glib-gettextize... found 2.40.2
checking for intltool >= 0.25...
  testing intltoolize... found 0.50.2
checking for pkg-config >= 0.14.0...
  testing pkg-config... found 0.26
Checking for required M4 macros...
Checking for forbidden M4 macros...
**Warning**: I am going to run `configure' with no arguments.
If you wish to pass any to it, please specify them on the
`./autogen.sh' command line.

Processing ./configure.ac
Running glib-gettextize... Ignore non-fatal messages.
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Running intltoolize...
Running autoreconf...
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=no-portability
configure.ac:79: warning: macro 'AM_GCONF_SOURCE_2' not found in library
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:79: warning: macro 'AM_GCONF_SOURCE_2' not found in library
autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability
configure.ac:79: error: possibly undefined macro: AM_GCONF_SOURCE_2
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

I am not familiar with Autoconf, so can someone tell me how to fix it?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu guake Edit question
Assignee:
No assignee Edit question
Solved by:
attila123
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Guake is in the repositories. Why are you compiling it?

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

The first hit when googling for "macro 'AM_GCONF_SOURCE_2' not found in library" is http://www.linuxquestions.org/questions/debian-26/failed-building-gnome-shell-on-squeeze-871246/ containing the hint

install the libgconf2-dev package (debian/ubuntu) that will fix any AM_GCONF_SOURCE_2 macro errors as it contains the definitions for the missing macro.

Have you tried that?

Revision history for this message
attila123 (vangel-attila) said :
#3

actionparsnip (andrew-woodhead666):
I wanted to try an up-to date version.

Manfred Hampl (m-hampl):
Thanks for the hint, I somehow missed it, maybe because I searched in connection with guake.
By installing libgconf2-dev it finally compiled.
I would expect 'sudo apt-get build-dep guake' to install both gnome-common and libgconf2-dev as well, because they are also needed to compile quake. Do you agree?
BTW, I checked the README.rst file, and it mentions installing libgconf2-dev, but only for Ubuntu 13.10. But I skipped that section, because right before that it mentions that 'sudo apt-get build-dep guake' 'should install all the build dependencies' (quoting from README.rst). (And also because I had newer Ubuntu.)
So maybe some improvements regarding 'sudo apt-get build-dep guake' and also README.rst would be nice to have.

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

Maybe there is an explanation for the missing libgconf2-dev build dependency:
It seems to me that quake 0.4.* does not need libgconf2-dev for building, only quake 0.5.* does.
When you issue 'sudo apt-get build-dep guake' on trusty, it will install the dependencies needed for building quake 0.4.4-1ubuntu1, and these apparently differ from the requirements for the 0.5.* package that you downloaded from some other source.
(Maybe this is true also for gnome-common, I have not looked into that at all.)