Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoreconf -f -i exits with code 1 "error: possibly undefined macro" #64

Closed
maltris opened this issue May 9, 2020 · 3 comments
Closed

Comments

@maltris
Copy link

maltris commented May 9, 2020

autoreconf -f -i on Alpine 3.11 leads to:

/pam-MySQL # autoreconf -f -i
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, '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'
configure.ac:26: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:43: error: possibly undefined macro: AS_IF
autoreconf: /usr/bin/autoconf failed with exit status: 1

Where a run with autoreconf -i works fine:

/pam-MySQL # autoreconf -i
configure.ac:13: installing 'build-aux/compile'
configure.ac:13: installing 'build-aux/config.guess'
configure.ac:13: installing 'build-aux/config.sub'
configure.ac:6: installing 'build-aux/install-sh'
configure.ac:6: installing 'build-aux/missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing 'build-aux/depcomp'

Should the INSTALL instruction be updated?

maltris added a commit to maltris/pam-MySQL that referenced this issue May 9, 2020
@NigelCunningham
Copy link
Owner

Thanks for recording this. I haven't heard of anyone else requiring just -i. I'm working on learning the Meson build system and intend to change to it - hopefully it will address this issue.

Regards,

Nigel

@wferi
Copy link
Contributor

wferi commented Nov 16, 2020

Try installing pkg-config and/or autoconf-archive.
But you really shouldn't need to run autoreconf at all, simply extract the distribution tarball and run the shipped configure script.

@NigelCunningham
Copy link
Owner

Closing as we're now using Meson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants