Changes between Version 3 and Version 4 of Ticket #39752, comment 6


Ignore:
Timestamp:
Mar 8, 2014, 8:12:14 PM (10 years ago)
Author:
cooljeanius (Eric Gallager)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39752, comment 6

    v3 v4  
    44>
    55> In what way are the macros in tcl.m4 out of date?
    6 Try running `autoreconf` with the `-Wall` flag in a project that contains the standard tcl.m4 file in it, and uses all the macros from it. It will print a bunch of warnings about obsolete macros, as shown in this reduced test case I made using the tcl.m4 file from MacPorts base:
     6Try running `autoreconf` with the `-Wall` flag in a project that contains the standard tcl.m4 file in it, and uses all the macros from it. It will print a bunch of warnings about obsolete macros (which can even turn into errors when using `autoheader`), as shown in this reduced test case I made using the tcl.m4 file from MacPorts base:
    77{{{
    8 Local-Admins-MacBook-Pro:MacPorts-fork ericgallager$ cd /Users/ericgallager/autoconf_bug_reports_dir
    9 Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ mkdir m4
    10 Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ ls -al
    11 total 24
    12 drwxr-xr-x    5 ericgallager  staff   170 Mar  8 12:59 .
    13 drwxr-xr-x+ 161 ericgallager  staff  5474 Mar  8 12:38 ..
    14 -rw-r--r--@   1 ericgallager  staff  6148 Mar  8 12:59 .DS_Store
    15 -rw-r--r--@   1 ericgallager  staff    57 Mar  8 12:48 configure.ac
    16 drwxr-xr-x    3 ericgallager  staff   102 Mar  8 12:59 m4
    178Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ ls -alR
    18 total 24
    19 drwxr-xr-x    5 ericgallager  staff   170 Mar  8 12:59 .
    20 drwxr-xr-x+ 161 ericgallager  staff  5474 Mar  8 12:38 ..
    21 -rw-r--r--@   1 ericgallager  staff  6148 Mar  8 12:59 .DS_Store
    22 -rw-r--r--@   1 ericgallager  staff    57 Mar  8 12:48 configure.ac
    23 drwxr-xr-x    3 ericgallager  staff   102 Mar  8 12:59 m4
     9total 464
     10drwxr-xr-x    7 ericgallager  staff     238 Mar  8 15:09 .
     11drwxr-xr-x+ 161 ericgallager  staff    5474 Mar  8 12:38 ..
     12-rw-r--r--@   1 ericgallager  staff    6148 Mar  8 15:09 .DS_Store
     13-rw-r--r--    1 ericgallager  staff     690 Mar  8 13:03 aclocal.m4
     14-rwxr-xr-x    1 ericgallager  staff  219064 Mar  8 13:03 configure
     15-rw-r--r--@   1 ericgallager  staff     463 Mar  8 15:09 configure.ac
     16drwxr-xr-x    3 ericgallager  staff     102 Mar  8 12:59 m4
    2417
    2518./m4:
    2619total 160
    2720drwxr-xr-x  3 ericgallager  staff    102 Mar  8 12:59 .
    28 drwxr-xr-x  5 ericgallager  staff    170 Mar  8 12:59 ..
     21drwxr-xr-x  7 ericgallager  staff    238 Mar  8 15:09 ..
    2922-rw-r--r--@ 1 ericgallager  staff  77897 Jan 10  2013 tcl.m4
    3023Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ cat configure.ac
    3124AC_INIT([testcase])
    3225AC_CONFIG_MACRO_DIR([m4])
     26AC_CONFIG_HEADERS([config.h])
     27
    3328SC_PATH_TCLCONFIG
    3429SC_PATH_TKCONFIG
     
    6257m4/tcl.m4:67:   or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
    6358autoreconf: configure.ac: tracing
    64 configure.ac:11: warning: The macro `AC_TRY_COMPILE' is obsolete.
    65 configure.ac:11: You should run autoupdate.
    66 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
    67 m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from...
    68 configure.ac:11: the top level
    69 configure.ac:13: warning: The macro `AC_TRY_LINK' is obsolete.
    70 configure.ac:13: You should run autoupdate.
    71 ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
    72 m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
    73 configure.ac:13: the top level
    7459configure.ac:13: warning: The macro `AC_TRY_COMPILE' is obsolete.
    7560configure.ac:13: You should run autoupdate.
    7661../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
    77 m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
     62m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from...
    7863configure.ac:13: the top level
    79 configure.ac:14: warning: The macro `AC_TRY_RUN' is obsolete.
    80 configure.ac:14: You should run autoupdate.
     64configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete.
     65configure.ac:15: You should run autoupdate.
     66../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
     67m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
     68configure.ac:15: the top level
     69configure.ac:15: warning: The macro `AC_TRY_COMPILE' is obsolete.
     70configure.ac:15: You should run autoupdate.
     71../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     72m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
     73configure.ac:15: the top level
     74configure.ac:16: warning: The macro `AC_TRY_RUN' is obsolete.
     75configure.ac:16: You should run autoupdate.
    8176../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
    8277../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
    8378../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
    8479m4/tcl.m4:1834: SC_SERIAL_PORT is expanded from...
    85 configure.ac:14: the top level
    86 configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete.
    87 configure.ac:15: You should run autoupdate.
    88 ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
    89 m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
    90 configure.ac:15: the top level
    91 configure.ac:15: warning: The macro `AC_HAVE_HEADERS' is obsolete.
    92 configure.ac:15: You should run autoupdate.
     80configure.ac:16: the top level
     81configure.ac:17: warning: The macro `AC_TRY_LINK' is obsolete.
     82configure.ac:17: You should run autoupdate.
     83../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
     84m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
     85configure.ac:17: the top level
     86configure.ac:17: warning: The macro `AC_HAVE_HEADERS' is obsolete.
     87configure.ac:17: You should run autoupdate.
    9388../../lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from...
    9489m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
    95 configure.ac:15: the top level
    96 configure.ac:16: warning: The macro `AC_TRY_CPP' is obsolete.
    97 configure.ac:16: You should run autoupdate.
     90configure.ac:17: the top level
     91configure.ac:18: warning: The macro `AC_TRY_CPP' is obsolete.
     92configure.ac:18: You should run autoupdate.
    9893../../lib/autoconf/general.m4:2529: AC_TRY_CPP is expanded from...
    9994m4/tcl.m4:2043: SC_PATH_X is expanded from...
    100 configure.ac:16: the top level
    101 configure.ac:19: warning: The macro `AC_TRY_RUN' is obsolete.
    102 configure.ac:19: You should run autoupdate.
     95configure.ac:18: the top level
     96configure.ac:21: warning: The macro `AC_TRY_RUN' is obsolete.
     97configure.ac:21: You should run autoupdate.
    10398../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
    10499../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
    105100../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
    106101m4/tcl.m4:2270: SC_BUGGY_STRTOD is expanded from...
    107 configure.ac:19: the top level
    108 configure.ac:21: warning: The macro `AC_TRY_COMPILE' is obsolete.
    109 configure.ac:21: You should run autoupdate.
     102configure.ac:21: the top level
     103configure.ac:23: warning: The macro `AC_TRY_COMPILE' is obsolete.
     104configure.ac:23: You should run autoupdate.
    110105../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
    111106m4/tcl.m4:2408: SC_TCL_EARLY_FLAG is expanded from...
    112107m4/tcl.m4:2420: SC_TCL_EARLY_FLAGS is expanded from...
    113 configure.ac:21: the top level
    114 configure.ac:22: warning: The macro `AC_TRY_COMPILE' is obsolete.
    115 configure.ac:22: You should run autoupdate.
     108configure.ac:23: the top level
     109configure.ac:24: warning: The macro `AC_TRY_COMPILE' is obsolete.
     110configure.ac:24: You should run autoupdate.
    116111../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
    117112../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
    118113../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
    119114m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from...
    120 configure.ac:22: the top level
    121 configure.ac:22: warning: The macro `AC_TRY_RUN' is obsolete.
    122 configure.ac:22: You should run autoupdate.
     115configure.ac:24: the top level
     116configure.ac:24: warning: The macro `AC_TRY_RUN' is obsolete.
     117configure.ac:24: You should run autoupdate.
    123118../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
    124119../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
    125120../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
    126121m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from...
    127 configure.ac:22: the top level
     122configure.ac:24: the top level
    128123autoreconf: configure.ac: not using Libtool
    129124autoreconf: running: /opt/local/bin/autoconf --force --warnings=all
    130 configure.ac:11: warning: The macro `AC_TRY_COMPILE' is obsolete.
    131 configure.ac:11: You should run autoupdate.
    132 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
    133 m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from...
    134 configure.ac:11: the top level
    135 configure.ac:13: warning: The macro `AC_TRY_LINK' is obsolete.
    136 configure.ac:13: You should run autoupdate.
    137 ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
    138 m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
    139 configure.ac:13: the top level
    140125configure.ac:13: warning: The macro `AC_TRY_COMPILE' is obsolete.
    141126configure.ac:13: You should run autoupdate.
     127../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     128m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from...
     129configure.ac:13: the top level
     130configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete.
     131configure.ac:15: You should run autoupdate.
     132../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
     133m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
     134configure.ac:15: the top level
     135configure.ac:15: warning: The macro `AC_TRY_COMPILE' is obsolete.
     136configure.ac:15: You should run autoupdate.
     137../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     138m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from...
     139configure.ac:15: the top level
     140configure.ac:16: warning: The macro `AC_TRY_RUN' is obsolete.
     141configure.ac:16: You should run autoupdate.
    142142../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
    143143../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
    144144../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
    145145m4/tcl.m4:1834: SC_SERIAL_PORT is expanded from...
    146 configure.ac:14: the top level
    147 configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete.
    148 configure.ac:15: You should run autoupdate.
    149 ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
    150 m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
    151 configure.ac:15: the top level
    152 configure.ac:15: warning: The macro `AC_HAVE_HEADERS' is obsolete.
    153 configure.ac:15: You should run autoupdate.
     146configure.ac:16: the top level
     147configure.ac:17: warning: The macro `AC_TRY_LINK' is obsolete.
     148configure.ac:17: You should run autoupdate.
     149../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from...
     150m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
     151configure.ac:17: the top level
     152configure.ac:17: warning: The macro `AC_HAVE_HEADERS' is obsolete.
     153configure.ac:17: You should run autoupdate.
    154154../../lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from...
    155155m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from...
    156 configure.ac:15: the top level
    157 configure.ac:16: warning: The macro `AC_TRY_CPP' is obsolete.
    158 configure.ac:16: You should run autoupdate.
     156configure.ac:17: the top level
     157configure.ac:18: warning: The macro `AC_TRY_CPP' is obsolete.
     158configure.ac:18: You should run autoupdate.
    159159../../lib/autoconf/general.m4:2529: AC_TRY_CPP is expanded from...
    160160m4/tcl.m4:2043: SC_PATH_X is expanded from...
    161 configure.ac:16: the top level
    162 configure.ac:19: warning: The macro `AC_TRY_RUN' is obsolete.
    163 configure.ac:19: You should run autoupdate.
     161configure.ac:18: the top level
     162configure.ac:21: warning: The macro `AC_TRY_RUN' is obsolete.
     163configure.ac:21: You should run autoupdate.
    164164../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
    165165../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
    166166../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
    167167m4/tcl.m4:2270: SC_BUGGY_STRTOD is expanded from...
    168 configure.ac:19: the top level
    169 configure.ac:21: warning: The macro `AC_TRY_COMPILE' is obsolete.
    170 configure.ac:21: You should run autoupdate.
     168configure.ac:21: the top level
     169configure.ac:23: warning: The macro `AC_TRY_COMPILE' is obsolete.
     170configure.ac:23: You should run autoupdate.
    171171../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
    172172m4/tcl.m4:2408: SC_TCL_EARLY_FLAG is expanded from...
    173173m4/tcl.m4:2420: SC_TCL_EARLY_FLAGS is expanded from...
    174 configure.ac:21: the top level
    175 configure.ac:22: warning: The macro `AC_TRY_COMPILE' is obsolete.
    176 configure.ac:22: You should run autoupdate.
    177 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from...
     174configure.ac:23: the top level
     175configure.ac:24: warning: The macro `AC_TRY_COMPILE' is obsolete.
     176configure.ac:24: the top level
     177configure.ac:24: warning: The macro `AC_TRY_RUN' is obsolete.
     178configure.ac:24: You should run autoupdate.
     179../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
    178180../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
    179181../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
    180182m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from...
    181 configure.ac:22: the top level
    182 configure.ac:22: warning: The macro `AC_TRY_RUN' is obsolete.
    183 configure.ac:22: You should run autoupdate.
    184 ../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from...
    185 ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
    186 ../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
    187 m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from...
    188 configure.ac:22: the top level
    189 autoreconf: configure.ac: not using Autoheader
    190 autoreconf: configure.ac: not using Automake
    191 autoreconf: Leaving directory `.'
     183configure.ac:24: the top level
     184autoreconf: running: /opt/local/bin/autoheader --force --warnings=all
     185autoheader: warning: missing template: HAVE_LANGINFO
     186autoheader: Use AC_DEFINE([HAVE_LANGINFO], [], [Description])
     187autoheader: warning: missing template: HAVE_NET_ERRNO_H
     188autoheader: warning: missing template: HAVE_STRUCT_DIRENT64
     189autoheader: warning: missing template: HAVE_STRUCT_STAT64
     190autoheader: warning: missing template: HAVE_TYPE_OFF64_T
     191autoheader: warning: missing template: NO_DIRENT_H
     192autoheader: warning: missing template: NO_DLFCN_H
     193autoheader: warning: missing template: NO_ERRNO_H
     194autoheader: warning: missing template: NO_FLOAT_H
     195autoheader: warning: missing template: NO_LIMITS_H
     196autoheader: warning: missing template: NO_STDLIB_H
     197autoheader: warning: missing template: NO_STRING_H
     198autoheader: warning: missing template: NO_SYS_WAIT_H
     199autoheader: warning: missing template: NO_VALUES_H
     200autoheader: warning: missing template: PEEK_XCLOSEIM
     201autoheader: warning: missing template: TCL_COMPILE_DEBUG
     202autoheader: warning: missing template: TCL_COMPILE_STATS
     203autoheader: warning: missing template: TCL_MEM_DEBUG
     204autoheader: warning: missing template: TCL_THREADS
     205autoheader: warning: missing template: TCL_WIDE_INT_IS_LONG
     206autoheader: warning: missing template: TCL_WIDE_INT_TYPE
     207autoheader: warning: missing template: USE_A_OUT_H
     208autoheader: warning: missing template: USE_DELTA_FOR_TZ
     209autoheader: warning: missing template: USE_FIONBIO
     210autoheader: warning: missing template: USE_SGTTY
     211autoheader: warning: missing template: USE_SYS_EXEC_AOUT_H
     212autoheader: warning: missing template: USE_SYS_EXEC_H
     213autoheader: warning: missing template: USE_TERMIO
     214autoheader: warning: missing template: USE_TERMIOS
     215autoheader: warning: missing template: USE_THREAD_ALLOC
     216autoheader: warning: missing template: _ISOC99_SOURCE
     217autoheader: warning: missing template: _LARGEFILE64_SOURCE
     218autoheader: warning: missing template: _OE_SOCKETS
     219autoheader: warning: missing template: _POSIX_PTHREAD_SEMANTICS
     220autoheader: warning: missing template: _REENTRANT
     221autoheader: warning: missing template: _THREAD_SAFE
     222autoheader: warning: missing template: _XOPEN_SOURCE
     223autoheader: warning: missing template: _XOPEN_SOURCE_EXTENDED
     224autoheader: warning: missing template: strtod
     225autoreconf: /opt/local/bin/autoheader failed with exit status: 1
    192226}}}
    193227You can run `autoupdate` on it, but doing that leaves behind some artifacts that have to be fixed manually. I will attach some diffs to illustrate in a bit.