Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2194

Resolve warnings when building with autoconf 2.70+

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.17.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Running phpize for PHP 8.1 with autoconf 2.71 (included with Ubuntu 22.04) produces various warnings (see below).

      Some of these are no doubt due to PHP itself and beyond our control (e.g. https://github.com/php/php-src/pull/8321); however, we should address anything originating from our own scripts.

      For portability with older autoconf versions, we may be able to utilize version checking logic as was done in https://github.com/php/php-src/pull/10383.

      $ phpize
      Configuring for:
      PHP Api Version:         20210902
      Zend Module Api No:      20210902
      Zend Extension Api No:   420210902
      configure.ac:18: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
      build/php.m4:2111: PHP_CONFIG_NICE is expanded from...
      configure.ac:18: the top level
      config.m4:9: warning: AC_PROG_CC_C99 is obsolete; use AC_PROG_CC
      config.m4:12: warning: ac_ext=c
      config.m4:12: ac_cpp='$CPP $CPPFLAGS'
      config.m4:12: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
      config.m4:12: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
      config.m4:12: ac_compiler_gnu=$ac_cv_c_compiler_gnu
      config.m4:12: if test -n "$ac_tool_prefix"; then
      config.m4:12:   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
      config.m4:12: set dummy ${ac_tool_prefix}gcc; ac_word=$2
      config.m4:12: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
      config.m4:12: printf %s "checking for $ac_word... " >&6; }
      config.m4:12: if test ${ac_cv_prog_CC+y}
      config.m4:12: then :
      config.m4:12:   printf %s "(cached) " >&6
      config.m4:12: else $as_nop
      config.m4:12:   if test -n "$CC"; then
      config.m4:12:   ac_cv_prog_CC="$CC" # Let the user override the test.
      config.m4:12: else
      config.m4:12: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
      config.m4:12: for as_dir in $PATH
      config.m4:12: do
      config.m4:12:   IFS=$as_save_IFS
      config.m4:12:   case $as_dir in #(((
      config.m4:12:     '' is m4_require'd but not m4_defun'd
      lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
      lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
      ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
      ./lib/autoconf/programs.m4:41: _AC_CHECK_PROG is expanded from...
      ./lib/autoconf/programs.m4:101: AC_CHECK_PROG is expanded from...
      ./lib/autoconf/programs.m4:221: AC_CHECK_TOOL is expanded from...
      ./lib/autoconf/c.m4:452: AC_PROG_CC is expanded from...
      config.m4:12: the top level
      scripts/autotools/CheckCompiler.m4:16: warning: The macro `AC_PROG_CC_C99' is obsolete.
      scripts/autotools/CheckCompiler.m4:16: You should run autoupdate.
      ./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
      scripts/autotools/CheckCompiler.m4:16: the top level
      scripts/autotools/CheckCompiler.m4:67: warning: The macro `AC_TRY_COMPILE' is obsolete.
      scripts/autotools/CheckCompiler.m4:67: You should run autoupdate.
      ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:120: AX_PROTOTYPE is expanded from...
      scripts/autotools/CheckCompiler.m4:67: the top level
      scripts/autotools/CheckCompiler.m4:67: warning: The macro `AC_TRY_COMPILE' is obsolete.
      scripts/autotools/CheckCompiler.m4:67: You should run autoupdate.
      ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:120: AX_PROTOTYPE is expanded from...
      scripts/autotools/CheckCompiler.m4:67: the top level
      scripts/autotools/CheckCompiler.m4:67: warning: The macro `AC_TRY_COMPILE' is obsolete.
      scripts/autotools/CheckCompiler.m4:67: You should run autoupdate.
      ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:120: AX_PROTOTYPE is expanded from...
      scripts/autotools/CheckCompiler.m4:67: the top level
      scripts/autotools/CheckCompiler.m4:67: warning: The macro `AC_TRY_COMPILE' is obsolete.
      scripts/autotools/CheckCompiler.m4:67: You should run autoupdate.
      ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:120: AX_PROTOTYPE is expanded from...
      scripts/autotools/CheckCompiler.m4:67: the top level
      scripts/autotools/CheckCompiler.m4:67: warning: The macro `AC_TRY_COMPILE' is obsolete.
      scripts/autotools/CheckCompiler.m4:67: You should run autoupdate.
      ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:120: AX_PROTOTYPE is expanded from...
      scripts/autotools/CheckCompiler.m4:67: the top level
      scripts/autotools/CheckCompiler.m4:67: warning: The macro `AC_TRY_COMPILE' is obsolete.
      scripts/autotools/CheckCompiler.m4:67: You should run autoupdate.
      ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:190: AX_PROTOTYPE_EACH is expanded from...
      scripts/autotools/m4/ax_prototype.m4:208: AX_PROTOTYPE_LOOP is expanded from...
      scripts/autotools/m4/ax_prototype.m4:120: AX_PROTOTYPE is expanded from...
      scripts/autotools/CheckCompiler.m4:67: the top level
      configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
      configure.ac:161: You should run autoupdate.
      ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
      build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
      build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: The macro `AC_LANG_C' is obsolete.
      configure.ac:161: You should run autoupdate.
      ./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
      lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
      lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
      ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
      ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
      build/libtool.m4:561: _LT_AC_LOCK is expanded from...
      build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
      build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
      build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: The macro `AC_TRY_LINK' is obsolete.
      configure.ac:161: You should run autoupdate.
      ./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
      lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
      lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
      ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
      ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
      build/libtool.m4:561: _LT_AC_LOCK is expanded from...
      build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
      build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
      build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
      build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
      build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
      build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
      build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
      build/libtool.m4:2739: _LT_AC_LANG_C_CONFIG is expanded from...
      build/libtool.m4:2738: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
      configure.ac:161: You should run autoupdate.
      ./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
      build/libtool.m4:2821: _LT_AC_LANG_CXX_CONFIG is expanded from...
      build/libtool.m4:2820: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
      build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
      build/libtool.m4:2821: _LT_AC_LANG_CXX_CONFIG is expanded from...
      build/libtool.m4:2820: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      configure.ac:161: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
      build/libtool.m4:1185: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
      build/libtool.m4:2821: _LT_AC_LANG_CXX_CONFIG is expanded from...
      build/libtool.m4:2820: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
      build/libtool.m4:1929: _LT_AC_TAGCONFIG is expanded from...
      build/libtool.m4:70: AC_LIBTOOL_SETUP is expanded from...
      build/libtool.m4:52: _AC_PROG_LIBTOOL is expanded from...
      build/libtool.m4:39: AC_PROG_LIBTOOL is expanded from...
      configure.ac:161: the top level
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: