dotwaffle / rancid-git

DEPRECATED -- Strongly consider using the upstream, the version here is very out of date and a poor place to start from!
http://www.shrubbery.net/rancid/
Other
218 stars 92 forks source link

error: no proper invocation of AM_INIT_AUTOMAKE was found. #43

Closed AXVill closed 9 years ago

AXVill commented 9 years ago

$ automake --add-missing configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found. configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE, configure.ac: that aclocal.m4 is present in the top-level directory, configure.ac: and that aclocal.m4 was recently regenerated (using aclocal) Makefile.am:41: error: MK_LCLSTATEDIR does not appear in AM_CONDITIONAL /usr/share/automake-1.14/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL /usr/share/automake-1.14/am/depend2.am: The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC' /usr/share/automake-1.14/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again /usr/share/automake-1.14/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.14/am/depend2.am: The usual way to define 'AMDEP' is to add one of the compiler tests /usr/share/automake-1.14/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX, /usr/share/automake-1.14/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC /usr/share/automake-1.14/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again etc/Makefile.am:56: error: CONF_INSTALL does not appear in AM_CONDITIONAL

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.10 Release: 14.10 Codename: utopic

dotwaffle commented 9 years ago

Why are you running automake? Can you list the output of autoconf etc as well?

I build with "autoreconf -fmi" -- does that give the same issues?

I'm not an autotools expert, sorry. If you would like to submit a patch I'd be happy to review and include it. On 9 Jan 2015 19:01, "AXVill" notifications@github.com wrote:

$ automake --add-missing configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found. configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE, configure.ac: that aclocal.m4 is present in the top-level directory, configure.ac: and that aclocal.m4 was recently regenerated (using aclocal) Makefile.am:41: error: MK_LCLSTATEDIR does not appear in AM_CONDITIONAL /usr/share/automake-1.14/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL /usr/share/automake-1.14/am/depend2.am: The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC' /usr/share/automake-1.14/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again /usr/share/automake-1.14/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.14/am/depend2.am: The usual way to define 'AMDEP' is to add one of the compiler tests /usr/share/automake-1.14/am/depend2.am: AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX, /usr/share/automake-1.14/am/depend2.am: AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC /usr/share/automake-1.14/am/depend2.am: to 'configure.ac' and run 'aclocal' and 'autoconf' again etc/Makefile.am:56: error: CONF_INSTALL does not appear in AM_CONDITIONAL

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.10 Release: 14.10 Codename: utopic

— Reply to this email directly or view it on GitHub https://github.com/dotwaffle/rancid-git/issues/43.

AXVill commented 9 years ago

I follow this man-page https://github.com/dotwaffle/rancid-git/blob/master/INSTALL When I try $ autoreconf -fmi: configure.ac:15: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.ac:15: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation

$ autoconf -v autoconf: running /usr/bin/autom4te -v --language=autoconf --output=configure configure.ac autom4te: formatting traces for /tmp/am4tCLidYS/dependencies': include, m4_include autom4te: up_to_date (autom4te.cache/traces.2): up to date autom4te: the trace request object is: autom4te: $VAR1 = bless( [ autom4te: '2', autom4te: 1, autom4te: [ autom4te: '/usr/share/autoconf' autom4te: ], autom4te: [ autom4te: '/usr/share/autoconf/autoconf/autoconf.m4f', autom4te: 'aclocal.m4', autom4te: 'configure.ac' autom4te: ], autom4te: { autom4te: 'AM_PROG_AR' => 1, autom4te: 'AM_ENABLE_MULTILIB' => 1, autom4te: 'AM_XGETTEXT_OPTION' => 1, autom4te: 'AC_CONFIG_AUX_DIR' => 1, autom4te: 'AC_CONFIG_SUBDIRS' => 1, autom4te: '_LT_AC_TAGCONFIG' => 1, autom4te: 'AC_DEFINE_TRACE_LITERAL' => 1, autom4te: '_AM_SUBST_NOTMAKE' => 1, autom4te: 'AC_CONFIG_FILES' => 1, autom4te: 'AC_FC_PP_DEFINE' => 1, autom4te: 'LT_INIT' => 1, autom4te: 'AM_MAKEFILE_INCLUDE' => 1, autom4te: 'm4_pattern_allow' => 1, autom4te: 'AM_PATH_GUILE' => 1, autom4te: 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, autom4te: 'AM_INIT_AUTOMAKE' => 1, autom4te: '_AM_COND_IF' => 1, autom4te: 'AM_PROG_FC_C_O' => 1, autom4te: 'LT_CONFIG_LTDL_DIR' => 1, autom4te: 'AM_PROG_MKDIR_P' => 1, autom4te: 'AC_CONFIG_LIBOBJ_DIR' => 1, autom4te: 'AM_PROG_CC_C_O' => 1, autom4te: 'AC_CANONICAL_HOST' => 1, autom4te: 'AM_SILENT_RULES' => 1, autom4te: 'AM_PROG_MOC' => 1, autom4te: 'AC_PROG_LIBTOOL' => 1, autom4te: 'AC_INIT' => 1, autom4te: 'AC_FC_PP_SRCEXT' => 1, autom4te: 'include' => 1, autom4te: 'sinclude' => 1, autom4te: 'AM_AUTOMAKE_VERSION' => 1, autom4te: 'AC_CANONICAL_SYSTEM' => 1, autom4te: 'AC_SUBST' => 1, autom4te: 'AC_FC_SRCEXT' => 1, autom4te: '_AM_COND_ELSE' => 1, autom4te: 'AC_CONFIG_HEADERS' => 1, autom4te: 'AC_CONFIG_LINKS' => 1, autom4te: 'AM_EXTRA_RECURSIVE_TARGETS' => 1, autom4te: 'm4_include' => 1, autom4te: 'm4_pattern_forbid' => 1, autom4te: 'AC_CANONICAL_TARGET' => 1, autom4te: 'AC_REQUIRE_AUX_FILE' => 1, autom4te: 'm4_sinclude' => 1, autom4te: 'AM_POT_TOOLS' => 1, autom4te: 'AH_OUTPUT' => 1, autom4te: 'LT_SUPPORTED_TAG' => 1, autom4te: 'AM_PROG_F77_C_O' => 1, autom4te: 'AC_SUBST_TRACE' => 1, autom4te: 'AM_GNU_GETTEXT' => 1, autom4te: 'AM_PROG_LIBTOOL' => 1, autom4te: '_AM_MAKEFILE_INCLUDE' => 1, autom4te: 'AM_CONDITIONAL' => 1, autom4te: 'AC_FC_FREEFORM' => 1, autom4te: 'AC_CANONICAL_BUILD' => 1, autom4te: 'AM_PROG_CXX_C_O' => 1, autom4te: 'AC_LIBSOURCE' => 1, autom4te: 'AM_MAINTAINER_MODE' => 1, autom4te: '_m4_warn' => 1, autom4te: '_AM_COND_ENDIF' => 1, autom4te: 'AM_NLS' => 1 autom4te: } autom4te: ], 'Autom4te::Request' ); autom4te: formatting traces for/tmp/am4tCLidYS/warnings': _m4_warn autom4te: reading /tmp/am4tCLidYS/warnings

dotwaffle commented 9 years ago

It's fine, it is only a warning not an error :)

Just do ./configure && make

All is good! On 9 Jan 2015 19:23, "AXVill" notifications@github.com wrote:

I follow this man-page https://github.com/dotwaffle/rancid-git/blob/master/INSTALL When I try $ autoreconf -fmi: configure.ac:15: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.ac:15: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation

Autoconf has no output.

— Reply to this email directly or view it on GitHub https://github.com/dotwaffle/rancid-git/issues/43#issuecomment-69322667.

AXVill commented 9 years ago

It's works. Sorry I disturbed you.

dotwaffle commented 9 years ago

Not a problem. Hope you manage to get something good out of it -- don't be afraid to ask for help :)

M On 9 Jan 2015 21:15, "AXVill" notifications@github.com wrote:

It's works. Sorry I disturbed you.

— Reply to this email directly or view it on GitHub https://github.com/dotwaffle/rancid-git/issues/43#issuecomment-69332525.