Changes between Version 3 and Version 4 of Ticket #39752, comment 6
- Timestamp:
- Mar 8, 2014, 8:12:14 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #39752, comment 6
v3 v4 4 4 > 5 5 > 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: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 (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: 7 7 {{{ 8 Local-Admins-MacBook-Pro:MacPorts-fork ericgallager$ cd /Users/ericgallager/autoconf_bug_reports_dir9 Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ mkdir m410 Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ ls -al11 total 2412 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_Store15 -rw-r--r--@ 1 ericgallager staff 57 Mar 8 12:48 configure.ac16 drwxr-xr-x 3 ericgallager staff 102 Mar 8 12:59 m417 8 Local-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 9 total 464 10 drwxr-xr-x 7 ericgallager staff 238 Mar 8 15:09 . 11 drwxr-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 16 drwxr-xr-x 3 ericgallager staff 102 Mar 8 12:59 m4 24 17 25 18 ./m4: 26 19 total 160 27 20 drwxr-xr-x 3 ericgallager staff 102 Mar 8 12:59 . 28 drwxr-xr-x 5 ericgallager staff 170 Mar 8 12:59 ..21 drwxr-xr-x 7 ericgallager staff 238 Mar 8 15:09 .. 29 22 -rw-r--r--@ 1 ericgallager staff 77897 Jan 10 2013 tcl.m4 30 23 Local-Admins-MacBook-Pro:autoconf_bug_reports_dir ericgallager$ cat configure.ac 31 24 AC_INIT([testcase]) 32 25 AC_CONFIG_MACRO_DIR([m4]) 26 AC_CONFIG_HEADERS([config.h]) 27 33 28 SC_PATH_TCLCONFIG 34 29 SC_PATH_TKCONFIG … … 62 57 m4/tcl.m4:67: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal 63 58 autoreconf: 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 level69 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 level74 59 configure.ac:13: warning: The macro `AC_TRY_COMPILE' is obsolete. 75 60 configure.ac:13: You should run autoupdate. 76 61 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... 77 m4/tcl.m4: 769: SC_CONFIG_CFLAGSis expanded from...62 m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from... 78 63 configure.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. 64 configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete. 65 configure.ac:15: You should run autoupdate. 66 ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... 67 m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from... 68 configure.ac:15: the top level 69 configure.ac:15: warning: The macro `AC_TRY_COMPILE' is obsolete. 70 configure.ac:15: You should run autoupdate. 71 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... 72 m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from... 73 configure.ac:15: the top level 74 configure.ac:16: warning: The macro `AC_TRY_RUN' is obsolete. 75 configure.ac:16: You should run autoupdate. 81 76 ../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from... 82 77 ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... 83 78 ../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from... 84 79 m4/tcl.m4:1834: SC_SERIAL_PORT is expanded from... 85 configure.ac:1 4: the top level86 configure.ac:1 5: warning: The macro `AC_TRY_LINK' is obsolete.87 configure.ac:1 5: 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:1 5: the top level91 configure.ac:1 5: warning: The macro `AC_HAVE_HEADERS' is obsolete.92 configure.ac:1 5: You should run autoupdate.80 configure.ac:16: the top level 81 configure.ac:17: warning: The macro `AC_TRY_LINK' is obsolete. 82 configure.ac:17: You should run autoupdate. 83 ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... 84 m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from... 85 configure.ac:17: the top level 86 configure.ac:17: warning: The macro `AC_HAVE_HEADERS' is obsolete. 87 configure.ac:17: You should run autoupdate. 93 88 ../../lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from... 94 89 m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from... 95 configure.ac:1 5: the top level96 configure.ac:1 6: warning: The macro `AC_TRY_CPP' is obsolete.97 configure.ac:1 6: You should run autoupdate.90 configure.ac:17: the top level 91 configure.ac:18: warning: The macro `AC_TRY_CPP' is obsolete. 92 configure.ac:18: You should run autoupdate. 98 93 ../../lib/autoconf/general.m4:2529: AC_TRY_CPP is expanded from... 99 94 m4/tcl.m4:2043: SC_PATH_X is expanded from... 100 configure.ac:1 6: the top level101 configure.ac: 19: warning: The macro `AC_TRY_RUN' is obsolete.102 configure.ac: 19: You should run autoupdate.95 configure.ac:18: the top level 96 configure.ac:21: warning: The macro `AC_TRY_RUN' is obsolete. 97 configure.ac:21: You should run autoupdate. 103 98 ../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from... 104 99 ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... 105 100 ../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from... 106 101 m4/tcl.m4:2270: SC_BUGGY_STRTOD is expanded from... 107 configure.ac: 19: the top level108 configure.ac:2 1: warning: The macro `AC_TRY_COMPILE' is obsolete.109 configure.ac:2 1: You should run autoupdate.102 configure.ac:21: the top level 103 configure.ac:23: warning: The macro `AC_TRY_COMPILE' is obsolete. 104 configure.ac:23: You should run autoupdate. 110 105 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... 111 106 m4/tcl.m4:2408: SC_TCL_EARLY_FLAG is expanded from... 112 107 m4/tcl.m4:2420: SC_TCL_EARLY_FLAGS is expanded from... 113 configure.ac:2 1: the top level114 configure.ac:2 2: warning: The macro `AC_TRY_COMPILE' is obsolete.115 configure.ac:2 2: You should run autoupdate.108 configure.ac:23: the top level 109 configure.ac:24: warning: The macro `AC_TRY_COMPILE' is obsolete. 110 configure.ac:24: You should run autoupdate. 116 111 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... 117 112 ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... 118 113 ../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from... 119 114 m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from... 120 configure.ac:2 2: the top level121 configure.ac:2 2: warning: The macro `AC_TRY_RUN' is obsolete.122 configure.ac:2 2: You should run autoupdate.115 configure.ac:24: the top level 116 configure.ac:24: warning: The macro `AC_TRY_RUN' is obsolete. 117 configure.ac:24: You should run autoupdate. 123 118 ../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from... 124 119 ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... 125 120 ../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from... 126 121 m4/tcl.m4:2452: SC_TCL_64BIT_FLAGS is expanded from... 127 configure.ac:2 2: the top level122 configure.ac:24: the top level 128 123 autoreconf: configure.ac: not using Libtool 129 124 autoreconf: 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 level135 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 level140 125 configure.ac:13: warning: The macro `AC_TRY_COMPILE' is obsolete. 141 126 configure.ac:13: You should run autoupdate. 127 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... 128 m4/tcl.m4:605: SC_ENABLE_LANGINFO is expanded from... 129 configure.ac:13: the top level 130 configure.ac:15: warning: The macro `AC_TRY_LINK' is obsolete. 131 configure.ac:15: You should run autoupdate. 132 ../../lib/autoconf/general.m4:2687: AC_TRY_LINK is expanded from... 133 m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from... 134 configure.ac:15: the top level 135 configure.ac:15: warning: The macro `AC_TRY_COMPILE' is obsolete. 136 configure.ac:15: You should run autoupdate. 137 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... 138 m4/tcl.m4:769: SC_CONFIG_CFLAGS is expanded from... 139 configure.ac:15: the top level 140 configure.ac:16: warning: The macro `AC_TRY_RUN' is obsolete. 141 configure.ac:16: You should run autoupdate. 142 142 ../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from... 143 143 ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... 144 144 ../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from... 145 145 m4/tcl.m4:1834: SC_SERIAL_PORT is expanded from... 146 configure.ac:1 4: the top level147 configure.ac:1 5: warning: The macro `AC_TRY_LINK' is obsolete.148 configure.ac:1 5: 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:1 5: the top level152 configure.ac:1 5: warning: The macro `AC_HAVE_HEADERS' is obsolete.153 configure.ac:1 5: You should run autoupdate.146 configure.ac:16: the top level 147 configure.ac:17: warning: The macro `AC_TRY_LINK' is obsolete. 148 configure.ac:17: 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:17: the top level 152 configure.ac:17: warning: The macro `AC_HAVE_HEADERS' is obsolete. 153 configure.ac:17: You should run autoupdate. 154 154 ../../lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from... 155 155 m4/tcl.m4:1963: SC_MISSING_POSIX_HEADERS is expanded from... 156 configure.ac:1 5: the top level157 configure.ac:1 6: warning: The macro `AC_TRY_CPP' is obsolete.158 configure.ac:1 6: You should run autoupdate.156 configure.ac:17: the top level 157 configure.ac:18: warning: The macro `AC_TRY_CPP' is obsolete. 158 configure.ac:18: You should run autoupdate. 159 159 ../../lib/autoconf/general.m4:2529: AC_TRY_CPP is expanded from... 160 160 m4/tcl.m4:2043: SC_PATH_X is expanded from... 161 configure.ac:1 6: the top level162 configure.ac: 19: warning: The macro `AC_TRY_RUN' is obsolete.163 configure.ac: 19: You should run autoupdate.161 configure.ac:18: the top level 162 configure.ac:21: warning: The macro `AC_TRY_RUN' is obsolete. 163 configure.ac:21: You should run autoupdate. 164 164 ../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from... 165 165 ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... 166 166 ../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from... 167 167 m4/tcl.m4:2270: SC_BUGGY_STRTOD is expanded from... 168 configure.ac: 19: the top level169 configure.ac:2 1: warning: The macro `AC_TRY_COMPILE' is obsolete.170 configure.ac:2 1: You should run autoupdate.168 configure.ac:21: the top level 169 configure.ac:23: warning: The macro `AC_TRY_COMPILE' is obsolete. 170 configure.ac:23: You should run autoupdate. 171 171 ../../lib/autoconf/general.m4:2614: AC_TRY_COMPILE is expanded from... 172 172 m4/tcl.m4:2408: SC_TCL_EARLY_FLAG is expanded from... 173 173 m4/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... 174 configure.ac:23: the top level 175 configure.ac:24: warning: The macro `AC_TRY_COMPILE' is obsolete. 176 configure.ac:24: the top level 177 configure.ac:24: warning: The macro `AC_TRY_RUN' is obsolete. 178 configure.ac:24: You should run autoupdate. 179 ../../lib/autoconf/general.m4:2764: AC_TRY_RUN is expanded from... 178 180 ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from... 179 181 ../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from... 180 182 m4/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 `.' 183 configure.ac:24: the top level 184 autoreconf: running: /opt/local/bin/autoheader --force --warnings=all 185 autoheader: warning: missing template: HAVE_LANGINFO 186 autoheader: Use AC_DEFINE([HAVE_LANGINFO], [], [Description]) 187 autoheader: warning: missing template: HAVE_NET_ERRNO_H 188 autoheader: warning: missing template: HAVE_STRUCT_DIRENT64 189 autoheader: warning: missing template: HAVE_STRUCT_STAT64 190 autoheader: warning: missing template: HAVE_TYPE_OFF64_T 191 autoheader: warning: missing template: NO_DIRENT_H 192 autoheader: warning: missing template: NO_DLFCN_H 193 autoheader: warning: missing template: NO_ERRNO_H 194 autoheader: warning: missing template: NO_FLOAT_H 195 autoheader: warning: missing template: NO_LIMITS_H 196 autoheader: warning: missing template: NO_STDLIB_H 197 autoheader: warning: missing template: NO_STRING_H 198 autoheader: warning: missing template: NO_SYS_WAIT_H 199 autoheader: warning: missing template: NO_VALUES_H 200 autoheader: warning: missing template: PEEK_XCLOSEIM 201 autoheader: warning: missing template: TCL_COMPILE_DEBUG 202 autoheader: warning: missing template: TCL_COMPILE_STATS 203 autoheader: warning: missing template: TCL_MEM_DEBUG 204 autoheader: warning: missing template: TCL_THREADS 205 autoheader: warning: missing template: TCL_WIDE_INT_IS_LONG 206 autoheader: warning: missing template: TCL_WIDE_INT_TYPE 207 autoheader: warning: missing template: USE_A_OUT_H 208 autoheader: warning: missing template: USE_DELTA_FOR_TZ 209 autoheader: warning: missing template: USE_FIONBIO 210 autoheader: warning: missing template: USE_SGTTY 211 autoheader: warning: missing template: USE_SYS_EXEC_AOUT_H 212 autoheader: warning: missing template: USE_SYS_EXEC_H 213 autoheader: warning: missing template: USE_TERMIO 214 autoheader: warning: missing template: USE_TERMIOS 215 autoheader: warning: missing template: USE_THREAD_ALLOC 216 autoheader: warning: missing template: _ISOC99_SOURCE 217 autoheader: warning: missing template: _LARGEFILE64_SOURCE 218 autoheader: warning: missing template: _OE_SOCKETS 219 autoheader: warning: missing template: _POSIX_PTHREAD_SEMANTICS 220 autoheader: warning: missing template: _REENTRANT 221 autoheader: warning: missing template: _THREAD_SAFE 222 autoheader: warning: missing template: _XOPEN_SOURCE 223 autoheader: warning: missing template: _XOPEN_SOURCE_EXTENDED 224 autoheader: warning: missing template: strtod 225 autoreconf: /opt/local/bin/autoheader failed with exit status: 1 192 226 }}} 193 227 You 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.