autogen.sh fails
@aleb
Submitted by Alex Băluț Assigned to Alex Băluț @aleb
Description
Apparently the 7 years old common submodule is to blame:
$ ./autogen.sh
+ check for build tools
checking for autoconf >= 2.52 ... found 2.69, ok.
checking for automake >= 1.6 ... Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
found 1.15, ok.
checking for pkg-config >= 0.8.0 ... found 0.29.1, ok.
checking for libtoolize >= 2.2.6 ... found 2.4.6, ok.
+ checking for autogen.sh options
This autogen script will automatically run ./configure as:
./configure
To pass any additional options, please specify them on the ./autogen.sh
command line.
+ running libtoolize --copy --force...
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, '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'
+ running aclocal -I common/m4 -I m4 ...
common/m4/glib-gettext.m4:39: error: m4_copy: won't overwrite defined macro: glib_DEFUN
common/m4/glib-gettext.m4:39: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
aclocal failed
Updating the common submodule to what GStreamer 1.8.0 uses results in other errors:
$ git submodule update
Submodule path 'common': checked out '6f2d2093e84cc0eb99b634fa281822ebb9507285'
$ ./autogen.sh
+ check for build tools
./autogen.sh: line 32: version_check: command not found
./autogen.sh: line 34: version_check: command not found
./autogen.sh: line 36: version_check: command not found
./autogen.sh: line 38: version_check: command not found
./autogen.sh: line 41: die_check: command not found
./autogen.sh: line 43: autoconf_2_52d_check: command not found
./autogen.sh: line 44: aclocal_check: command not found
./autogen.sh: line 45: autoheader_check: command not found
./autogen.sh: line 47: die_check: command not found
+ checking for autogen.sh options
This autogen script will automatically run ./configure as:
./configure
To pass any additional options, please specify them on the ./autogen.sh
command line.
+ running --copy --force...
common/gst-autogen.sh: line 108: --copy: command not found
failed
We should get rid of the common submodule if possible.