irino / softflowd

softflowd: A flow-based network traffic analyser capable of Cisco NetFlow data export software.
https://github.com/irino/softflowd
Other
162 stars 29 forks source link

autoreconf and aclocal fails #21

Closed Thermi closed 4 years ago

Thermi commented 4 years ago

When running autoreconf (version 2.6.9), it prints the following and fails:

configure.ac:20: error: required file './compile' not found
configure.ac:20:   'automake --add-missing' can install 'compile'
configure.ac:17: error: required file './missing' not found
configure.ac:17:   'automake --add-missing' can install 'missing'
Makefile.am: error: required file './depcomp' not found
Makefile.am:   'automake --add-missing' can install 'depcomp'
autoreconf: automake failed with exit status: 1

The problem can be solved by running automake --add-missing. However, after doing that the next problem occurs:

configure.ac:17: error: version mismatch.  This is Automake 1.16.1,
configure.ac:17: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:17: comes from Automake 1.15.1.  You should recreate
configure.ac:17: aclocal.m4 with aclocal and run automake again.
configure.ac:20: installing './compile'
configure.ac:17: installing './missing'
Makefile.am: installing './depcomp'

Removing aclocal.m4 and running aclocal the commands yields the following:

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:4: error: ENABLE_LEGACY does not appear in AM_CONDITIONAL
Makefile.am:7: error: ENABLE_NTOPNG does not appear in AM_CONDITIONAL
Makefile.am: installing './depcomp'
/usr/share/automake-1.16/am/depend2.am: error: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.16/am/depend2.am:   The usual way to define 'am__fastdepCC' is to add 'AC_PROG_CC'
/usr/share/automake-1.16/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again
/usr/share/automake-1.16/am/depend2.am: error: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.16/am/depend2.am:   The usual way to define 'AMDEP' is to add one of the compiler tests
/usr/share/automake-1.16/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC, AC_PROG_OBJCXX,
/usr/share/automake-1.16/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.16/am/depend2.am:   to 'configure.ac' and run 'aclocal' and 'autoconf' again

The same problem occurs with automake-1.16 and aclocal-1.16 respectively.

PS: Oh, and also config.h.in is missing and needs to be created in order to run the automake tools. That could all be a lot smoother.

Thermi commented 4 years ago

Works by using autoreconf -if instead for all invocations.