Automake fails

Bug #1042442 reported by Raghavendra D Prabhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysbench
Status tracked in Trunk
0.4
Fix Committed
Undecided
Alexey Kopytov
Trunk
Fix Committed
Undecided
Alexey Kopytov

Bug Description

./autogen.sh
./autogen.sh: running `aclocal -I m4'
./autogen.sh: running `libtoolize --copy --force'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/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'
./autogen.sh: running `autoheader'
./autogen.sh: running `automake -c --foreign --add-missing'
automake: warnings are treated as errors
/usr/share/automake-1.12/am/library.am: warning: 'libsbdrizzle.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/drivers/drizzle/Makefile.am:17: while processing library 'libsbdrizzle.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsbmysql.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/drivers/mysql/Makefile.am:17: while processing library 'libsbmysql.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsboracle.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/drivers/oracle/Makefile.am:17: while processing library 'libsboracle.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsbpgsql.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/drivers/pgsql/Makefile.am:17: while processing library 'libsbpgsql.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsbscript.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/scripting/Makefile.am:23: while processing library 'libsbscript.a'
/usr/share/automake-1.12/am/library.am: warning: 'liblua.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/scripting/lua/src/Makefile.am:17: while processing library 'liblua.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsbcpu.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/cpu/Makefile.am:17: while processing library 'libsbcpu.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsbfileio.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/fileio/Makefile.am:17: while processing library 'libsbfileio.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsbmemory.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/memory/Makefile.am:17: while processing library 'libsbmemory.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsbmutex.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/mutex/Makefile.am:17: while processing library 'libsbmutex.a'
/usr/share/automake-1.12/am/library.am: warning: 'libsbthreads.a': linking libraries using a non-POSIX
/usr/share/automake-1.12/am/library.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
sysbench/tests/threads/Makefile.am:17: while processing library 'libsbthreads.a'
Can't execute automake

===============
automake --version
automake (GNU automake) 1.12.3
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Tom Tromey <email address hidden>
       and Alexandre Duret-Lutz <email address hidden>.

================

Fix:

--- configure.ac 2012-03-11 07:49:42 +0000
+++ configure.ac 2012-08-20 04:30:17 +0000
@@ -22,6 +22,8 @@
 AC_PROG_CPP
 AM_PROG_CC_C_O

+m4_pattern_allow([AM_PROG_AR])
+AM_PROG_AR
 ACX_USE_SYSTEM_EXTENSIONS

 AC_PROG_LIBTOOL

=======

The fix may not work with older versions of automake (needs to be tested).

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

seems to be a better fix based on https://github.com/keithw/mosh/commit/1b86532a9910fbb70b673e9e733a9afd3bcdeb31

Also, teste with it.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Fixed in Launchpad branches for 0.4 and 0.5.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.