LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
256 stars 77 forks source link

autoconf fails OSX #268

Closed stereo3d closed 3 years ago

stereo3d commented 3 years ago

MacMini M1, OSX 11.2.3

trying to run ./autoconf.sh produces the error:

automake: error: autoconf failed with exit status: 1

I downloaded master branch as well as stable branch. reinstalled all dependencies with homebrew

the command produces the following output. Any help and tips greatly appreciated.

ltfs % ./autogen.sh 
configure.ac:43: error: AC_CONFIG_MACRO_DIR can only be used once
./lib/autoconf/general.m4:1970: AC_CONFIG_MACRO_DIR is expanded from...
configure.ac:43: the top level
autom4te: error: /opt/homebrew/opt/m4/bin/m4 failed with exit status: 1
aclocal: error: autom4te failed with exit status: 1
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
glibtoolize: linking file 'build-aux/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: linking file 'm4/libtool.m4'
glibtoolize: linking file 'm4/ltoptions.m4'
glibtoolize: linking file 'm4/ltsugar.m4'
glibtoolize: linking file 'm4/ltversion.m4'
glibtoolize: linking file 'm4/lt~obsolete.m4'
configure.ac:43: error: AC_CONFIG_MACRO_DIR can only be used once
./lib/autoconf/general.m4:1970: AC_CONFIG_MACRO_DIR is expanded from...
configure.ac:43: the top level
autom4te: error: /opt/homebrew/opt/m4/bin/m4 failed with exit status: 1
configure.ac:43: error: AC_CONFIG_MACRO_DIR can only be used once
./lib/autoconf/general.m4:1970: AC_CONFIG_MACRO_DIR is expanded from...
configure.ac:43: the top level
autom4te: error: /opt/homebrew/opt/m4/bin/m4 failed with exit status: 1
autoheader: error: '/opt/homebrew/Cellar/autoconf/2.71/bin/autom4te' failed with exit status: 1
configure.ac:43: error: AC_CONFIG_MACRO_DIR can only be used once
./lib/autoconf/general.m4:1970: AC_CONFIG_MACRO_DIR is expanded from...
configure.ac:43: the top level
autom4te: error: /opt/homebrew/opt/m4/bin/m4 failed with exit status: 1
automake: error: autoconf failed with exit status: 1
piste-jp commented 3 years ago

It's a known problem because of newer autoconf.

See the comment in #262.

piste-jp commented 3 years ago

Dup of #262