Fixing aclocal-1.4 error

I was trying to compile portfwd-0.29 but was getting this error message:

$ make
cd . && /comum/workspace/portfwd-0.29/config/missing aclocal-1.4
WARNING: `aclocal-1.4' is needed, and you do not seem to have it handy on your
         system.  You might have modified some files without having the
         proper tools for further handling them.  Check the `README' file,
         it often tells you about the needed prerequirements for installing
         this package.  You may also peek at any GNU archive site, in case
         some other package would contain this missing `aclocal-1.4' program.
Makefile:104: recipe for target 'aclocal.m4' failed
make: *** [aclocal.m4] Error 1

Then I fixed it using autoreconf command:

$ autoreconf -f -i
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:5: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.in:5: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.in:8: installing 'config/compile'
Makefile.am: installing './INSTALL'
Makefile.am: error: required file './NEWS' not found
Makefile.am: error: required file './AUTHORS' not found
Makefile.am: error: required file './ChangeLog' not found
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
getopt/Makefile.am: installing 'config/depcomp'
src/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am:1: warning: 'CFLAGS' is a user variable, you should not override it;
src/Makefile.am:1: use 'AM_CFLAGS' instead
src/Makefile.am:2: warning: 'CXXFLAGS' is a user variable, you should not override it;
src/Makefile.am:2: use 'AM_CXXFLAGS' instead
tools/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
tools/Makefile.am:1: warning: 'CXXFLAGS' is a user variable, you should not override it;
tools/Makefile.am:1: use 'AM_CXXFLAGS' instead
autoreconf: automake failed with exit status: 1

Oops, the software author forgot to create the files NEWS, AUTHORS, ChangeLog, I will create empty files to satisfy autoreconf:

$ touch NEWS
$ touch AUTHORS
$ touch ChangeLog

Let me to try again:

$ autoreconf -f -i
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:5: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.in:5: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
src/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am:1: warning: 'CFLAGS' is a user variable, you should not override it;
src/Makefile.am:1: use 'AM_CFLAGS' instead
src/Makefile.am:2: warning: 'CXXFLAGS' is a user variable, you should not override it;
src/Makefile.am:2: use 'AM_CXXFLAGS' instead
tools/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
tools/Makefile.am:1: warning: 'CXXFLAGS' is a user variable, you should not override it;
tools/Makefile.am:1: use 'AM_CXXFLAGS' instead

Great, worked like a charm!

Advertisements

2 thoughts on “Fixing aclocal-1.4 error

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s