Opened 11 years ago

Closed 11 years ago

#37742 closed defect (fixed)

libast: error: 'AM_CONFIG_HEADER': this macro is obsolete

Reported by: rosskhan@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: libast

Description (last modified by mf2k (Frank Schima))

The Library of Assorted Spiffy Things (libast) fails to complie with an AM_CONFIG_HEADER(S) issue in autoconf:

---

:info:configure autoreconf: Entering directory `.'
:info:configure autoreconf: configure.in: not using Gettext
:info:configure autoreconf: running: aclocal -I /opt/local/share/aclocal -I . --force 
:info:configure aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
:info:configure configure.in:24: error: 'AM_CONFIG_HEADER': this macro is obsolete.
:info:configure     You should use the 'AC_CONFIG_HEADERS' macro instead.
:info:configure /opt/local/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
:info:configure configure.in:24: the top level
:info:configure autom4te: /opt/local/bin/gm4 failed with exit status: 1
:info:configure aclocal: error: echo failed with exit status: 1
:info:configure autoreconf: aclocal failed with exit status: 1
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libast/libast/work/libast-0.7" && autoreconf --install -fv 
:info:configure Exit code: 1
:error:configure org.macports.configure for port libast returned: autoreconf failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: autoreconf failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for libast: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Please see the log file for port libast for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libast/libast/main.log

---

copying configure.in to configure.ac and modifying AM_CONFIG_HEADER -> AM_CONFIG_HEADERS results in:

:info:configure autoreconf: 'configure.ac' and 'configure.in' both present.
:info:configure autoreconf: proceeding with 'configure.ac'
:info:configure autoreconf: Entering directory `.'
:info:configure autoreconf: configure.ac: not using Gettext
:info:configure autoreconf: running: aclocal -I /opt/local/share/aclocal -I . --force 
:info:configure aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
:info:configure aclocal: warning: 'configure.ac' and 'configure.in' both present.
:info:configure aclocal: proceeding with 'configure.ac'
:info:configure configure.ac:24: warning: macro 'AM_CONFIG_HEADERS' not found in library
:info:configure configure.ac:50: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
:info:configure ../../lib/autoconf/general.m4:1833: AC_CANONICAL_TARGET is expanded from...
:info:configure configure.ac:50: the top level
:info:configure autoreconf: configure.ac: tracing
:info:configure autoconf: warning: both `configure.ac' and `configure.in' are present.
:info:configure autoconf: warning: proceeding with `configure.ac'.
:info:configure configure.ac:50: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
:info:configure ../../lib/autoconf/general.m4:1833: AC_CANONICAL_TARGET is expanded from...
:info:configure configure.ac:50: the top level
:info:configure autoreconf: running: glibtoolize --copy --force
:info:configure glibtoolize: putting auxiliary files in `.'.
:info:configure glibtoolize: copying file `./ltmain.sh'
:info:configure glibtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
:info:configure glibtoolize: rerunning glibtoolize, to keep the correct libtool macros in-tree.
:info:configure glibtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
:info:configure aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
:info:configure aclocal: warning: 'configure.ac' and 'configure.in' both present.
:info:configure aclocal: proceeding with 'configure.ac'
:info:configure configure.ac:24: warning: macro 'AM_CONFIG_HEADERS' not found in library
:info:configure configure.ac:50: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
:info:configure ../../lib/autoconf/general.m4:1833: AC_CANONICAL_TARGET is expanded from...
:info:configure configure.ac:50: the top level
:info:configure autoreconf: running: /opt/local/bin/autoconf --force
:info:configure autoconf: warning: both `configure.ac' and `configure.in' are present.
:info:configure autoconf: warning: proceeding with `configure.ac'.
:info:configure configure.ac:50: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
:info:configure ../../lib/autoconf/general.m4:1833: AC_CANONICAL_TARGET is expanded from...
:info:configure configure.ac:50: the top level
:info:configure configure.ac:24: error: possibly undefined macro: AM_CONFIG_HEADERS
:info:configure       If this token and others are legitimate, please use m4_pattern_allow.
:info:configure       See the Autoconf documentation.
:info:configure autoreconf: /opt/local/bin/autoconf failed with exit status: 1
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libast/libast/work/libast-0.7" && autoreconf --install -fv 
:info:configure Exit code: 1
:error:configure org.macports.configure for port libast returned: autoreconf failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: autoreconf failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for libast: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Please see the log file for port libast for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libast/libast/main.log

Change History (4)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: libast AM_CONFIG_HEADER removed

comment:2 Changed 11 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:3 in reply to:  description Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: Fail to compile libastlibast: error: 'AM_CONFIG_HEADER': this macro is obsolete

Replying to rosskhan@…:

:info:configure configure.in:24: error: 'AM_CONFIG_HEADER': this macro is obsolete.
:info:configure     You should use the 'AC_CONFIG_HEADERS' macro instead.

The usual automake 1.13/1.13.1 incompatibility.

It will no longer be a problem in automake 1.13.2.

copying configure.in to configure.ac and modifying AM_CONFIG_HEADER -> AM_CONFIG_HEADERS results in:

AC_CONFIG_HEADERS, not AM_CONFIG_HEADERS.

comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.