You are not logged in.

#1 2013-01-15 16:50:25

andyras
Member
Registered: 2012-04-11
Posts: 9

[SOLVED] lib32-gstreamer0.10-base will not build: automake issue?

I am trying to build scrivener from the AUR, which has a host of multilib dependencies.  Most build fine, but for lib32-gstreamer0.10-base I get the following error:

configure.ac:27: error: 'AM_CONFIG_HEADER': this macro is obsolete.
    You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
configure.ac:27: the top level

I tried adding this line to the PKGBUILD (after line 25):

sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac

which let the build get past the first error, but then I get this:

configure.ac:181: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:181: the top level
configure.ac:366: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
common/m4/gst-feature.m4:226: AG_GST_CHECK_GST_DEBUG_DISABLED is expanded from...
configure.ac:366: the top level
configure.ac:811: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:811: the top level
configure.ac:181: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:181: the top level
configure.ac:366: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
common/m4/gst-feature.m4:226: AG_GST_CHECK_GST_DEBUG_DISABLED is expanded from...
configure.ac:366: the top level
configure.ac:811: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:811: the top level
configure.ac:181: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:181: the top level
configure.ac:366: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
common/m4/gst-feature.m4:226: AG_GST_CHECK_GST_DEBUG_DISABLED is expanded from...
configure.ac:366: the top level
configure.ac:811: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:811: the top level
configure.ac:181: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:181: the top level
configure.ac:366: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
common/m4/gst-feature.m4:226: AG_GST_CHECK_GST_DEBUG_DISABLED is expanded from...
configure.ac:366: the top level
configure.ac:811: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:811: the top level
configure.ac:181: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:181: the top level
configure.ac:366: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
common/m4/gst-feature.m4:226: AG_GST_CHECK_GST_DEBUG_DISABLED is expanded from...
configure.ac:366: the top level
configure.ac:811: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2590: _AC_COMPILE_IFELSE is expanded from...
../../lib/autoconf/general.m4:2606: AC_COMPILE_IFELSE is expanded from...
configure.ac:811: the top level
configure.ac:76: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and will soon be removed.
configure.ac:76: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:76: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.
parallel-tests: error: required file './test-driver' not found
parallel-tests:   'automake --add-missing' can install 'test-driver'
autoreconf: automake failed with exit status: 1

line 76 in

configure.ac

is

AM_GNU_GETTEXT([external])

This looks like something to do with the recent automake update, but I haven't found anyone else having the same problem.  There are a couple of posts:

http://trac.macports.org/ticket/37549
http://sourceforge.net/tracker/index.ph … tid=110706

but for those people making the substitution I did seems to have fixed the problem.

Is there a way around this (other than maybe downgrading automake)?  I don't have any experience debugging trouble with .ac files.

Last edited by andyras (2013-01-15 22:21:03)

Offline

#2 2013-01-15 17:09:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [SOLVED] lib32-gstreamer0.10-base will not build: automake issue?

On the first error, yes, AM_CONFIG_HEADER was depreciated in 2002 and removed from automake 1.3. The sed command you used should be fine. It should be done upstream as well.

On the second error, the only lines that matter are the last three, the rest are just warnings. A quick google search suggests adding -i to the autoreconf command in the PKGBUILD.

Online

#3 2013-01-15 22:20:42

andyras
Member
Registered: 2012-04-11
Posts: 9

Re: [SOLVED] lib32-gstreamer0.10-base will not build: automake issue?

Thanks, that seems to have fixed it, though I had to add the

--force

flag to autoreconf as well.

In summary, I added/changed these lines in the PKGBUILD

sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.ac
autoreconf - --force

Now the library compiles after spewing a few warnings from automake at the beginning.

Offline

Board footer

Powered by FluxBB