Feb 1 19:53:47: Building stage1 make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building binutils PASS=1 make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building gcc PASS=1 make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building linux HEADERS=1 make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building glibc make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building libxcrypt make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building gcc PASS=L make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building zlib-ng make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building binutils PASS=2 make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building gcc PASS=2 make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building zstd make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building ccache make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building tcl make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'install'. make: Leaving directory '/home/loongarch/loongfire/lfs' Feb 1 19:53:47: Building expect make: Entering directory '/home/loongarch/loongfire/lfs' make: Nothing to be done for 'download'. make: Leaving directory '/home/loongarch/loongfire/lfs' make: Entering directory '/home/loongarch/loongfire/lfs' ====================================== Installing expect5.45.4 ... for i in $(find /home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4 -name config.guess -o -name config.sub); do cp -vf /usr/share/automake*/$(basename ${i}) ${i} || cp -vf /tools_loongarch64/share/automake*/$(basename ${i}) ${i}; done '/usr/share/automake-1.16/config.sub' -> '/home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4/tclconfig/config.sub' '/usr/share/automake-1.16/config.guess' -> '/home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4/tclconfig/config.guess' cd /home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4 && patch -Np1 < /home/loongarch/loongfire/build_loongarch64/usr/src/src/patches/expect-5.45.4-gcc15-1.patch patching file configure patching file exp_chan.c patching file exp_clib.c patching file exp_command.h patching file exp_log.c patching file exp_main_sub.c patching file exp_pty.c patching file exp_trap.c patching file exp_tty.c patching file exp_win.h patching file pty_termios.c cd /home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4 && ./configure --prefix=/tools_loongarch64 checking for correct TEA configuration... ok (TEA 3.9) configure: configuring expect 5.45.4 checking for Tcl configuration... found /tools_loongarch64/lib/tclConfig.sh checking for existence of /tools_loongarch64/lib/tclConfig.sh... loading configure: --exec-prefix defaulting to TCL_EXEC_PREFIX /tools_loongarch64 checking for a BSD-compatible install... /usr/bin/install -c checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking whether make sets $(MAKE)... yes checking for ranlib... ranlib checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking if the compiler understands -pipe... yes checking whether byte ordering is bigendian... no checking for sin... no checking for main in -lieee... no checking for main in -linet... no checking net/errno.h usability... no checking net/errno.h presence... no checking for net/errno.h... no checking for connect... yes checking for gethostbyname... yes checking dirent.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for Tcl public headers... /tools_loongarch64/include checking for Tcl private include files... private headers found with public headers checking for pthread_mutex_init in -lpthread... yes checking for building with threads... yes (default) configure: WARNING: --enable-threads requested, but building against a Tcl that is NOT thread-enabled. This is an OK configuration that will also run in a thread-enabled core. checking how to build libraries... shared checking if 64bit support is requested... no checking if 64bit Sparc VIS support is requested... no checking if compiler supports visibility "hidden"... yes checking if rpath support is requested... yes checking system version... Linux-6.19.0-rc5+ checking for ar... ar checking for required early compiler flags... _LARGEFILE64_SOURCE checking for 64-bit integer type... using long checking for build with symbols... no checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/sysmacros.h usability... yes checking sys/sysmacros.h presence... yes checking for sys/sysmacros.h... yes checking varargs.h usability... no checking varargs.h presence... no checking for varargs.h... no checking sys/stropts.h usability... no checking sys/stropts.h presence... no checking for sys/stropts.h... no checking sys/sysconfig.h usability... no checking sys/sysconfig.h presence... no checking for sys/sysconfig.h... no checking sys/fcntl.h usability... yes checking sys/fcntl.h presence... yes checking for sys/fcntl.h... yes checking sys/ptem.h usability... no checking sys/ptem.h presence... no checking for sys/ptem.h... no checking sys/strredir.h usability... no checking sys/strredir.h presence... no checking for sys/strredir.h... no checking sys/strpty.h usability... no checking sys/strpty.h presence... no checking for sys/strpty.h... no checking for sys/bsdtypes.h... no checking return type of signal handlers... void checking whether struct tm is in sys/time.h or time.h... time.h checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking whether time.h and sys/time.h may both be included... yes checking for struct tm.tm_zone... yes checking for gmtime_r... yes checking for localtime_r... yes checking tm_tzadj in struct tm... no checking tm_gmtoff in struct tm... yes checking long timezone variable... yes checking union wait... no checking for gethostname... yes checking for socket... yes checking for select... yes checking for getpseudotty... no checking for getpseudotty in -lseq... no checking for openpty... yes checking if running Sequent running SVR4... no checking build system type... loongarch64-unknown-linux-gnu checking host system type... loongarch64-unknown-linux-gnu checking target system type... loongarch64-unknown-linux-gnu checking for pid_t... yes checking if running Mach... no checking if running MachTen... no checking if on Pyramid... no checking if on Apollo... no checking if on Interactive... no checking stty to use... /bin/stty checking if stty reads stdout... no checking if running Solaris... no checking for memmove... yes checking for sysconf... yes checking for strftime... yes checking for strchr... yes checking for timezone... yes checking for siglongjmp... yes checking for memcpy... yes checking if WNOHANG requires _POSIX_SOURCE... no checking if any value exists for WNOHANG... yes checking mask type of select... none checking if signals need to be re-armed... no checking if on Convex... no checking if on HP... no checking sane default stty arguments... checking for HP style pty allocation... no checking for HP style pty trapping... no checking for AIX new-style pty allocation... no checking for SGI old-style pty allocation... no checking for SCO style pty allocation... no checking for SVR4 style pty allocation... no checking for OSF/1 style pty allocation... no checking for tcgetattr... yes checking for tcsetattr... yes checking for struct sgttyb... no checking for struct termio... yes checking for struct termios... yes checking if TCGETS or TCGETA in termios.h... no checking if TIOCGWINSZ in termios.h... no checking for Cray-style ptys... no checking for select... yes checking for poll... yes checking event handling... via select checking for _getpty... no checking for getpty... no checking whether setpgrp takes no argument... yes checking for SV-style timezone... yes checking for long file names... yes checking for tclsh... /tools_loongarch64/bin/tclsh9.0 configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting config.status: executing default commands chmod: cannot access './install-sh': No such file or directory === configuring in testsuite (/home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4/testsuite) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/tools_loongarch64' 'CFLAGS=-O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection' --cache-file=/dev/null --srcdir=. checking for correct TEA configuration... ok (TEA 3.9) configure: configuring exp_test 0.43 checking for Tcl configuration... found /tools_loongarch64/lib/tclConfig.sh checking for existence of /tools_loongarch64/lib/tclConfig.sh... loading checking for a BSD-compatible install... /usr/bin/install -c checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking whether make sets $(MAKE)... yes checking for ranlib... ranlib checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking if the compiler understands -pipe... yes checking whether byte ordering is bigendian... no checking for sin... no checking for main in -lieee... no checking for main in -linet... no checking net/errno.h usability... no checking net/errno.h presence... no checking for net/errno.h... no checking for connect... yes checking for gethostbyname... yes checking dirent.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes configure: creating ./config.status config.status: creating Makefile cd /home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4 && make -j8 make[1]: Entering directory '/home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4' gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_command.c` -o exp_command.o gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo expect.c` -o expect.o gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_inter.c` -o exp_inter.o gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_regexp.c` -o exp_regexp.o gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_tty.c` -o exp_tty.o gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_log.c` -o exp_log.o gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_main_sub.c` -o exp_main_sub.o gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_pty.c` -o exp_pty.o gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DNO_UNION_WAIT=1 -DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 -DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 -DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 -DHAVE_SV_TIMEZONE=1 -DHAVE_LONG_FILE_NAMES=1 -DTCL_DEBUGGER -DUSE_NON_CONST -DSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/tools_loongarch64/lib/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools_loongarch64/include" -O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_trap.c` -o exp_trap.o In file included from exp_pty.c:38: exp_int.h:24:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | void exp_console_set _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_int.h:25:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | void expDiagLogPtrSet _ANSI_ARGS_((void (*)_ANSI_ARGS_((char *)))); | ^~~~~~~~~~~ exp_int.h:26:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 26 | void expDiagLogPtr _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_int.h:27:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | void expDiagLogPtrX _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_int.h:28:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | void expDiagLogPtrStr _ANSI_ARGS_((char *,char *)); | ^~~~~~~~~~~ exp_int.h:29:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | void expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *)); | ^~~~~~~~~~~ exp_int.h:30:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | void expErrnoMsgSet _ANSI_ARGS_((char * (*) _ANSI_ARGS_((int)))); | ^~~~~~~~~~~ exp_int.h:31:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | char * expErrnoMsg _ANSI_ARGS_((int)); | ^~~~~~~~~~~ In file included from exp_pty.c:41: exp_pty.h:17:47: error: unknown type name 'CONST'; did you mean 'CONST86'? 17 | int exp_getptyslave(int ttycopy, int ttyinit, CONST char *stty_args); | ^~~~~ | CONST86 exp_pty.c: In function 'exp_pty_test': exp_pty.c:204:17: error: implicit declaration of function 'expDiagLogPtrStr' [-Wimplicit-function-declaration] 204 | expDiagLogPtrStr("pty master (%s) is locked...skipping\r\n",master_name); | ^~~~~~~~~~~~~~~~ exp_pty.c: At top level: exp_pty.c:305:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 305 | static void (*expDiagLogPtrVal) _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_pty.c: In function 'expDiagLogPtrSet': exp_pty.c:309:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 309 | void (*fn) _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_pty.c:308:1: error: type of 'fn' defaults to 'int' [-Wimplicit-int] 308 | expDiagLogPtrSet(fn) | ^~~~~~~~~~~~~~~~ exp_pty.c:311:3: error: 'expDiagLogPtrVal' undeclared (first use in this function); did you mean 'expDiagLogPtrSet'? 311 | expDiagLogPtrVal = fn; | ^~~~~~~~~~~~~~~~ | expDiagLogPtrSet exp_pty.c:311:3: note: each undeclared identifier is reported only once for each function it appears in exp_pty.c: In function 'expDiagLogPtr': exp_pty.c:318:5: error: 'expDiagLogPtrVal' undeclared (first use in this function); did you mean 'expDiagLogPtr'? 318 | (*expDiagLogPtrVal)(str); | ^~~~~~~~~~~~~~~~ | expDiagLogPtr exp_pty.c: In function 'expDiagLogPtrX': exp_pty.c:330:5: error: 'expDiagLogPtrVal' undeclared (first use in this function); did you mean 'expDiagLogPtrX'? 330 | (*expDiagLogPtrVal)(buf); | ^~~~~~~~~~~~~~~~ | expDiagLogPtrX exp_pty.c: At top level: exp_pty.c:335:1: warning: conflicting types for 'expDiagLogPtrStr'; have 'void()' 335 | expDiagLogPtrStr(fmt,str1) | ^~~~~~~~~~~~~~~~ exp_pty.c:204:17: note: previous implicit declaration of 'expDiagLogPtrStr' with type 'void()' 204 | expDiagLogPtrStr("pty master (%s) is locked...skipping\r\n",master_name); | ^~~~~~~~~~~~~~~~ exp_pty.c: In function 'expDiagLogPtrStr': exp_pty.c:341:5: error: 'expDiagLogPtrVal' undeclared (first use in this function); did you mean 'expDiagLogPtrStr'? 341 | (*expDiagLogPtrVal)(buf); | ^~~~~~~~~~~~~~~~ | expDiagLogPtrStr exp_pty.c: In function 'expDiagLogPtrStrStr': exp_pty.c:351:5: error: 'expDiagLogPtrVal' undeclared (first use in this function); did you mean 'expDiagLogPtrStr'? 351 | (*expDiagLogPtrVal)(buf); | ^~~~~~~~~~~~~~~~ | expDiagLogPtrStr exp_pty.c: At top level: exp_pty.c:354:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 354 | static char * (*expErrnoMsgVal) _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_pty.c: In function 'expErrnoMsg': exp_pty.c:360:12: error: 'expErrnoMsgVal' undeclared (first use in this function); did you mean 'expErrnoMsg'? 360 | return (*expErrnoMsgVal)(errorNo); | ^~~~~~~~~~~~~~ | expErrnoMsg exp_pty.c: In function 'expErrnoMsgSet': exp_pty.c:365:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 365 | char * (*fn) _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_pty.c:364:1: error: type of 'fn' defaults to 'int' [-Wimplicit-int] 364 | expErrnoMsgSet(fn) | ^~~~~~~~~~~~~~ exp_pty.c:367:3: error: 'expErrnoMsgVal' undeclared (first use in this function); did you mean 'expErrnoMsgSet'? 367 | expErrnoMsgVal = fn; | ^~~~~~~~~~~~~~ | expErrnoMsgSet exp_pty.c: In function 'expErrnoMsg': exp_pty.c:361:1: warning: control reaches end of non-void function [-Wreturn-type] 361 | } | ^ exp_pty.c: At top level: exp_pty.c:138:21: warning: 'oldHupHandler' defined but not used [-Wunused-variable] 138 | static RETSIGTYPE (*oldHupHandler)(int); | ^~~~~~~~~~~~~ make[1]: *** [Makefile:318: exp_pty.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from exp_prog.h:13, from exp_tty.c:34: expect_tcl.h:40:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Expect_Init _ANSI_ARGS_((Tcl_Interp *)); /* for Tcl_AppInit apps */ | ^~~~~~~~~~~ expect_tcl.h:41:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void exp_parse_argv _ANSI_ARGS_((Tcl_Interp *,int argc,char **argv)); | ^~~~~~~~~~~ expect_tcl.h:42:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int exp_interpreter _ANSI_ARGS_((Tcl_Interp *,Tcl_Obj *)); | ^~~~~~~~~~~ expect_tcl.h:43:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 43 | EXTERN int exp_interpret_cmdfile _ANSI_ARGS_((Tcl_Interp *,FILE *)); | ^~~~~~~~~~~ expect_tcl.h:44:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_interpret_cmdfilename _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ expect_tcl.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void exp_interpret_rcfiles _ANSI_ARGS_((Tcl_Interp *,int my_rc,int sys_rc)); | ^~~~~~~~~~~ expect_tcl.h:47:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN char * exp_cook _ANSI_ARGS_((char *s,int *len)); | ^~~~~~~~~~~ expect_tcl.h:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 49 | EXTERN void expCloseOnExec _ANSI_ARGS_((int)); | ^~~~~~~~~~~ expect_tcl.h:52:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN void (*exp_app_exit)_ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ expect_tcl.h:53:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 53 | EXTERN void exp_exit_handlers _ANSI_ARGS_((ClientData)); | ^~~~~~~~~~~ expect_tcl.h:55:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN void exp_error _ANSI_ARGS_(TCL_VARARGS(Tcl_Interp *,interp)); | ^~~~~~~~~~~ In file included from exp_prog.h:14: exp_int.h:24:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | void exp_console_set _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_int.h:25:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | void expDiagLogPtrSet _ANSI_ARGS_((void (*)_ANSI_ARGS_((char *)))); | ^~~~~~~~~~~ exp_int.h:26:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 26 | void expDiagLogPtr _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_int.h:27:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | void expDiagLogPtrX _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_int.h:28:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | void expDiagLogPtrStr _ANSI_ARGS_((char *,char *)); | ^~~~~~~~~~~ exp_int.h:29:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | void expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *)); | ^~~~~~~~~~~ exp_int.h:30:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | void expErrnoMsgSet _ANSI_ARGS_((char * (*) _ANSI_ARGS_((int)))); | ^~~~~~~~~~~ exp_int.h:31:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | char * expErrnoMsg _ANSI_ARGS_((int)); | ^~~~~~~~~~~ In file included from exp_tty.c:37: exp_command.h:30:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN char * exp_get_var _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:37:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN int exp_one_arg_braced _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_command.h:39:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN Tcl_Obj* exp_eval_with_one_arg _ANSI_ARGS_((ClientData, | ^~~~~~~~~~~ exp_command.h:42:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void exp_lowmemcpy _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:44:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_flageq_code _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:212:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 212 | EXTERN void expAdjust _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:213:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 213 | EXTERN int expWriteChars _ANSI_ARGS_((ExpState *,char *,int)); | ^~~~~~~~~~~ exp_command.h:214:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 214 | EXTERN int expWriteCharsUni _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_command.h:215:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 215 | EXTERN void exp_buffer_shuffle _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,char *,char *)); | ^~~~~~~~~~~ exp_command.h:216:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 216 | EXTERN int exp_close _ANSI_ARGS_((Tcl_Interp *,ExpState *)); | ^~~~~~~~~~~ exp_command.h:217:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 217 | EXTERN void exp_close_all _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:219:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 219 | _ANSI_ARGS_((Tcl_Interp *,int)); | ^~~~~~~~~~~ exp_command.h:220:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 220 | EXTERN void exp_trap_on _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:221:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 221 | EXTERN int exp_trap_off _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_command.h:234:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 234 | EXTERN void exp_init_pty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:235:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 235 | EXTERN void exp_pty_exit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:236:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 236 | EXTERN void exp_init_tty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:237:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 237 | EXTERN void exp_init_stdio _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:239:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 239 | EXTERN void exp_init_spawn_ids _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:240:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 240 | EXTERN void exp_init_spawn_id_vars _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:241:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 241 | EXTERN void exp_init_trap _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:242:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 242 | EXTERN void exp_init_send _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:243:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 243 | EXTERN void exp_init_unit_random _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:244:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 244 | EXTERN void exp_init_sig _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:245:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 245 | EXTERN void expChannelInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:246:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 246 | EXTERN int expChannelCountGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:247:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 247 | EXTERN int expChannelStillAlive _ANSI_ARGS_((ExpState *, char *)); | ^~~~~~~~~~~ exp_command.h:249:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 249 | EXTERN int exp_tcl2_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:250:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 250 | EXTERN int exp_2tcl_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:252:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 252 | EXTERN void exp_rearm_sigchld _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:253:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 253 | EXTERN int exp_string_to_signal _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:289:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 289 | EXTERN struct exp_i * exp_new_i_complex _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:291:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 291 | EXTERN struct exp_i * exp_new_i_simple _ANSI_ARGS_((ExpState *,int)); | ^~~~~~~~~~~ exp_command.h:292:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 292 | EXTERN struct exp_state_list *exp_new_state _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:293:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 293 | EXTERN void exp_free_i _ANSI_ARGS_((Tcl_Interp *,struct exp_i *, | ^~~~~~~~~~~ exp_command.h:295:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 295 | EXTERN void exp_free_state _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:296:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 296 | EXTERN void exp_free_state_single _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:297:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 297 | EXTERN int exp_i_update _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:317:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 317 | EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:319:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 319 | EXTERN void exp_init_main_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:320:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 320 | EXTERN void exp_init_expect_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:321:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 321 | EXTERN void exp_init_most_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:322:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 322 | EXTERN void exp_init_trap_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:323:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 323 | EXTERN void exp_init_interact_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:324:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 324 | EXTERN void exp_init_tty_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:326:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 326 | EXTERN ExpState * expStateCheck _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:327:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 327 | EXTERN ExpState * expStateCurrent _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:328:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 328 | EXTERN ExpState * expStateFromChannelName _ANSI_ARGS_((Tcl_Interp *,char *,int,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:329:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 329 | EXTERN void expStateFree _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:331:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 331 | EXTERN ExpState * expCreateChannel _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:332:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 332 | EXTERN ExpState * expWaitOnAny _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:333:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 333 | EXTERN ExpState * expWaitOnOne _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:334:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 334 | EXTERN void expExpectVarsInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:335:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 335 | EXTERN int expStateAnyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:336:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 336 | EXTERN int expDevttyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:337:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 337 | EXTERN int expStdinoutIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:338:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 338 | EXTERN ExpState * expStdinoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:339:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 339 | EXTERN ExpState * expDevttyGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ In file included from exp_tty.c:38: exp_log.h:3:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | extern void expErrorLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:4:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | extern void expErrorLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:6:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | extern void expStdoutLog _ANSI_ARGS_(TCL_VARARGS(int,force_stdout)); | ^~~~~~~~~~~ exp_log.h:7:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 7 | extern void expStdoutLogU _ANSI_ARGS_((char *buf, int force_stdout)); | ^~~~~~~~~~~ exp_log.h:9:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 9 | EXTERN void expDiagInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:10:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | EXTERN int expDiagChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:11:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | EXTERN Tcl_Channel expDiagChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:12:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | EXTERN void expDiagChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:13:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 13 | EXTERN char * expDiagFilename _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:14:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | EXTERN int expDiagToStderrGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:15:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | EXTERN void expDiagToStderrSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:16:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | EXTERN void expDiagWriteBytes _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:17:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | EXTERN void expDiagWriteChars _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:18:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | EXTERN void expDiagWriteObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:19:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 19 | EXTERN void expDiagLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:20:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | EXTERN void expDiagLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:22:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | EXTERN char * expPrintify _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:23:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 23 | EXTERN char * expPrintifyUni _ANSI_ARGS_((Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:24:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | EXTERN char * expPrintifyObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:25:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | EXTERN void expPrintf _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:27:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | EXTERN void expLogInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:28:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | EXTERN int expLogChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *,int)); | ^~~~~~~~~~~ exp_log.h:29:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | EXTERN Tcl_Channel expLogChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:30:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN int expLogChannelSet _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:31:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | EXTERN void expLogChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:32:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 32 | EXTERN char * expLogFilenameGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:33:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 33 | EXTERN void expLogAppendSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:34:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 34 | EXTERN int expLogAppendGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:35:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 35 | EXTERN void expLogLeaveOpenSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:36:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 36 | EXTERN int expLogLeaveOpenGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:37:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN void expLogAllSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:38:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 38 | EXTERN int expLogAllGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:39:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN void expLogToStdoutSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:40:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int expLogToStdoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:41:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void expLogDiagU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:42:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int expWriteBytesAndLogIfTtyU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:44:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int expLogUserGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void expLogUserSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:47:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN void expLogInteractionU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ In file included from exp_tty.c:39: exp_win.h:11:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | int exp_window_size_set _ANSI_ARGS_ ((int)); | ^~~~~~~~~~~ exp_win.h:12:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | int exp_window_size_get _ANSI_ARGS_ ((int)); | ^~~~~~~~~~~ exp_win.h:14:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | void exp_win_rows_set _ANSI_ARGS_ ((char* rows)); | ^~~~~~~~~~~ exp_win.h:15:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | char* exp_win_rows_get _ANSI_ARGS_ ((void)); | ^~~~~~~~~~~ exp_win.h:16:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | void exp_win_columns_set _ANSI_ARGS_ ((char* columns)); | ^~~~~~~~~~~ exp_win.h:17:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | char* exp_win_columns_get _ANSI_ARGS_ ((void)); | ^~~~~~~~~~~ exp_win.h:19:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 19 | void exp_win2_rows_set _ANSI_ARGS_ ((int fd, char* rows)); | ^~~~~~~~~~~ exp_win.h:20:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | char* exp_win2_rows_get _ANSI_ARGS_ ((int fd)); | ^~~~~~~~~~~ exp_win.h:21:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 21 | void exp_win2_columns_set _ANSI_ARGS_ ((int fd, char* columns)); | ^~~~~~~~~~~ exp_win.h:22:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | char* exp_win2_columns_get _ANSI_ARGS_ ((int fd)); | ^~~~~~~~~~~ exp_tty.c: In function 'exp_tty_raw_noecho': exp_tty.c:150:9: error: implicit declaration of function 'expDiagLog' [-Wimplicit-function-declaration] 150 | expDiagLog("tty_raw_noecho: was raw = %d echo = %d\r\n",is_raw,!is_noecho); | ^~~~~~~~~~ exp_tty.c:156:17: error: implicit declaration of function 'expErrorLog' [-Wimplicit-function-declaration] 156 | expErrorLog("ioctl(raw): %s\r\n",Tcl_PosixError(interp)); | ^~~~~~~~~~~ exp_tty.c: In function 'exec_stty': exp_tty.c:323:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 323 | int rc; | ^~ exp_tty.c: In function 'Exp_SttyCmd': exp_tty.c:405:42: error: implicit declaration of function 'exp_trap_off' [-Wimplicit-function-declaration] 405 | master = exp_trap_off(infile); | ^~~~~~~~~~~~ exp_tty.c:446:41: error: implicit declaration of function 'exp_win_rows_set' [-Wimplicit-function-declaration] 446 | exp_win_rows_set(*(argv+1)); | ^~~~~~~~~~~~~~~~ In file included from /tools_loongarch64/include/tcl.h:2442, from exp_tty.c:33: exp_tty.c:451:44: error: implicit declaration of function 'exp_win_rows_get' [-Wimplicit-function-declaration] 451 | Tcl_SetResult (interp, exp_win_rows_get(), TCL_VOLATILE); | ^~~~~~~~~~~~~~~~ exp_tty.c:451:44: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] exp_tty.c:456:41: error: implicit declaration of function 'exp_win_columns_set' [-Wimplicit-function-declaration] 456 | exp_win_columns_set(*(argv+1)); | ^~~~~~~~~~~~~~~~~~~ exp_tty.c:461:44: error: implicit declaration of function 'exp_win_columns_get' [-Wimplicit-function-declaration] 461 | Tcl_SetResult (interp, exp_win_columns_get(), TCL_VOLATILE); | ^~~~~~~~~~~~~~~~~~~ exp_tty.c:461:44: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] exp_tty.c:479:33: error: implicit declaration of function 'exp_error'; did you mean 'perror'? [-Wimplicit-function-declaration] 479 | exp_error(interp,"stty: ioctl(get): %s\r\n",Tcl_PosixError(interp)); | ^~~~~~~~~ | perror exp_tty.c:516:41: error: implicit declaration of function 'exp_win2_rows_set' [-Wimplicit-function-declaration] 516 | exp_win2_rows_set(fd,*(argv+1)); | ^~~~~~~~~~~~~~~~~ exp_tty.c:520:44: error: implicit declaration of function 'exp_win2_rows_get' [-Wimplicit-function-declaration] 520 | Tcl_SetResult (interp, exp_win2_rows_get(fd), TCL_VOLATILE); | ^~~~~~~~~~~~~~~~~ exp_tty.c:520:44: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] exp_tty.c:525:41: error: implicit declaration of function 'exp_win2_columns_set' [-Wimplicit-function-declaration] 525 | exp_win2_columns_set(fd,*(argv+1)); | ^~~~~~~~~~~~~~~~~~~~ exp_tty.c:529:44: error: implicit declaration of function 'exp_win2_columns_get' [-Wimplicit-function-declaration] 529 | Tcl_SetResult (interp, exp_win2_columns_get(fd), TCL_VOLATILE); | ^~~~~~~~~~~~~~~~~~~~ exp_tty.c:529:44: error: initialization of 'const char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] exp_tty.c:561:9: error: implicit declaration of function 'exp_trap_on' [-Wimplicit-function-declaration] 561 | exp_trap_on(master); | ^~~~~~~~~~~ exp_tty.c: In function 'Exp_SystemCmd': exp_tty.c:595:17: error: implicit declaration of function 'expDiagLogU' [-Wimplicit-function-declaration] 595 | expDiagLogU("system stty is deprecated, use stty\r\n"); | ^~~~~~~~~~~ exp_tty.c:762:17: error: 'CONST' undeclared (first use in this function); did you mean 'CONST86'? 762 | CONST char *p; | ^~~~~ | CONST86 exp_tty.c:762:17: note: each undeclared identifier is reported only once for each function it appears in exp_tty.c:762:22: error: expected ';' before 'char' 762 | CONST char *p; | ^~~~~ | ; exp_tty.c:764:17: error: 'p' undeclared (first use in this function) 764 | p = Tcl_SignalMsg((int) (WTERMSIG(waitStatus))); | ^ exp_tty.c:771:22: error: expected ';' before 'char' 771 | CONST char *p; | ^~~~~ | ; exp_tty.c: At top level: exp_tty.c:795:26: error: initialization of 'int (*)(void *, Tcl_Interp *, int, const char **)' from incompatible pointer type 'int (*)(void *, Tcl_Interp *, int, char **)' [-Wincompatible-pointer-types] 795 | {"stty", exp_proc(Exp_SttyCmd), 0, 0}, | ^~~~~~~~~~~ exp_command.h:307:30: note: in definition of macro 'exp_proc' 307 | #define exp_proc(cmdproc) 0, cmdproc | ^~~~~~~ exp_tty.c:795:26: note: (near initialization for 'cmd_data[0].proc') 795 | {"stty", exp_proc(Exp_SttyCmd), 0, 0}, | ^~~~~~~~~~~ exp_command.h:307:30: note: in definition of macro 'exp_proc' 307 | #define exp_proc(cmdproc) 0, cmdproc | ^~~~~~~ exp_tty.c:796:26: error: initialization of 'int (*)(void *, Tcl_Interp *, int, const char **)' from incompatible pointer type 'int (*)(void *, Tcl_Interp *, int, char **)' [-Wincompatible-pointer-types] 796 | {"system", exp_proc(Exp_SystemCmd), 0, 0}, | ^~~~~~~~~~~~~ exp_command.h:307:30: note: in definition of macro 'exp_proc' 307 | #define exp_proc(cmdproc) 0, cmdproc | ^~~~~~~ exp_tty.c:796:26: note: (near initialization for 'cmd_data[1].proc') 796 | {"system", exp_proc(Exp_SystemCmd), 0, 0}, | ^~~~~~~~~~~~~ exp_command.h:307:30: note: in definition of macro 'exp_proc' 307 | #define exp_proc(cmdproc) 0, cmdproc | ^~~~~~~ exp_tty.c: In function 'exp_init_tty_cmds': exp_tty.c:802:9: error: implicit declaration of function 'exp_create_commands'; did you mean 'Tcl_CreateCommand'? [-Wimplicit-function-declaration] 802 | exp_create_commands(interp,cmd_data); | ^~~~~~~~~~~~~~~~~~~ | Tcl_CreateCommand make[1]: *** [Makefile:318: exp_tty.o] Error 1 In file included from exp_log.c:20: exp_int.h:24:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | void exp_console_set _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_int.h:25:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | void expDiagLogPtrSet _ANSI_ARGS_((void (*)_ANSI_ARGS_((char *)))); | ^~~~~~~~~~~ exp_int.h:26:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 26 | void expDiagLogPtr _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_int.h:27:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | void expDiagLogPtrX _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_int.h:28:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | void expDiagLogPtrStr _ANSI_ARGS_((char *,char *)); | ^~~~~~~~~~~ exp_int.h:29:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | void expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *)); | ^~~~~~~~~~~ exp_int.h:30:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | void expErrnoMsgSet _ANSI_ARGS_((char * (*) _ANSI_ARGS_((int)))); | ^~~~~~~~~~~ exp_int.h:31:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | char * expErrnoMsg _ANSI_ARGS_((int)); | ^~~~~~~~~~~ In file included from exp_log.c:22: exp_command.h:30:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN char * exp_get_var _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:37:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN int exp_one_arg_braced _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_command.h:39:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN Tcl_Obj* exp_eval_with_one_arg _ANSI_ARGS_((ClientData, | ^~~~~~~~~~~ exp_command.h:42:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void exp_lowmemcpy _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:44:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_flageq_code _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:212:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 212 | EXTERN void expAdjust _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:213:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 213 | EXTERN int expWriteChars _ANSI_ARGS_((ExpState *,char *,int)); | ^~~~~~~~~~~ exp_command.h:214:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 214 | EXTERN int expWriteCharsUni _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_command.h:215:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 215 | EXTERN void exp_buffer_shuffle _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,char *,char *)); | ^~~~~~~~~~~ exp_command.h:216:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 216 | EXTERN int exp_close _ANSI_ARGS_((Tcl_Interp *,ExpState *)); | ^~~~~~~~~~~ exp_command.h:217:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 217 | EXTERN void exp_close_all _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:219:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 219 | _ANSI_ARGS_((Tcl_Interp *,int)); | ^~~~~~~~~~~ exp_command.h:220:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 220 | EXTERN void exp_trap_on _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:221:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 221 | EXTERN int exp_trap_off _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_command.h:234:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 234 | EXTERN void exp_init_pty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:235:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 235 | EXTERN void exp_pty_exit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:236:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 236 | EXTERN void exp_init_tty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:237:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 237 | EXTERN void exp_init_stdio _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:239:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 239 | EXTERN void exp_init_spawn_ids _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:240:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 240 | EXTERN void exp_init_spawn_id_vars _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:241:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 241 | EXTERN void exp_init_trap _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:242:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 242 | EXTERN void exp_init_send _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:243:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 243 | EXTERN void exp_init_unit_random _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:244:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 244 | EXTERN void exp_init_sig _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:245:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 245 | EXTERN void expChannelInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:246:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 246 | EXTERN int expChannelCountGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:247:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 247 | EXTERN int expChannelStillAlive _ANSI_ARGS_((ExpState *, char *)); | ^~~~~~~~~~~ exp_command.h:249:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 249 | EXTERN int exp_tcl2_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:250:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 250 | EXTERN int exp_2tcl_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:252:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 252 | EXTERN void exp_rearm_sigchld _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:253:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 253 | EXTERN int exp_string_to_signal _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:289:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 289 | EXTERN struct exp_i * exp_new_i_complex _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:291:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 291 | EXTERN struct exp_i * exp_new_i_simple _ANSI_ARGS_((ExpState *,int)); | ^~~~~~~~~~~ exp_command.h:292:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 292 | EXTERN struct exp_state_list *exp_new_state _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:293:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 293 | EXTERN void exp_free_i _ANSI_ARGS_((Tcl_Interp *,struct exp_i *, | ^~~~~~~~~~~ exp_command.h:295:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 295 | EXTERN void exp_free_state _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:296:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 296 | EXTERN void exp_free_state_single _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:297:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 297 | EXTERN int exp_i_update _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:317:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 317 | EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:319:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 319 | EXTERN void exp_init_main_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:320:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 320 | EXTERN void exp_init_expect_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:321:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 321 | EXTERN void exp_init_most_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:322:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 322 | EXTERN void exp_init_trap_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:323:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 323 | EXTERN void exp_init_interact_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:324:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 324 | EXTERN void exp_init_tty_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:326:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 326 | EXTERN ExpState * expStateCheck _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:327:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 327 | EXTERN ExpState * expStateCurrent _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:328:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 328 | EXTERN ExpState * expStateFromChannelName _ANSI_ARGS_((Tcl_Interp *,char *,int,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:329:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 329 | EXTERN void expStateFree _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:331:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 331 | EXTERN ExpState * expCreateChannel _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:332:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 332 | EXTERN ExpState * expWaitOnAny _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:333:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 333 | EXTERN ExpState * expWaitOnOne _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:334:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 334 | EXTERN void expExpectVarsInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:335:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 335 | EXTERN int expStateAnyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:336:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 336 | EXTERN int expDevttyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:337:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 337 | EXTERN int expStdinoutIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:338:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 338 | EXTERN ExpState * expStdinoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:339:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 339 | EXTERN ExpState * expDevttyGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ In file included from exp_log.c:23: exp_log.h:3:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | extern void expErrorLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:4:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | extern void expErrorLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:6:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | extern void expStdoutLog _ANSI_ARGS_(TCL_VARARGS(int,force_stdout)); | ^~~~~~~~~~~ exp_log.h:7:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 7 | extern void expStdoutLogU _ANSI_ARGS_((char *buf, int force_stdout)); | ^~~~~~~~~~~ exp_log.h:9:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 9 | EXTERN void expDiagInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:10:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | EXTERN int expDiagChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:11:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | EXTERN Tcl_Channel expDiagChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:12:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | EXTERN void expDiagChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:13:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 13 | EXTERN char * expDiagFilename _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:14:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | EXTERN int expDiagToStderrGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:15:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | EXTERN void expDiagToStderrSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:16:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | EXTERN void expDiagWriteBytes _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:17:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | EXTERN void expDiagWriteChars _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:18:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | EXTERN void expDiagWriteObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:19:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 19 | EXTERN void expDiagLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:20:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | EXTERN void expDiagLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:22:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | EXTERN char * expPrintify _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:23:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 23 | EXTERN char * expPrintifyUni _ANSI_ARGS_((Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:24:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | EXTERN char * expPrintifyObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:25:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | EXTERN void expPrintf _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:27:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | EXTERN void expLogInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:28:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | EXTERN int expLogChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *,int)); | ^~~~~~~~~~~ exp_log.h:29:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | EXTERN Tcl_Channel expLogChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:30:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN int expLogChannelSet _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:31:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | EXTERN void expLogChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:32:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 32 | EXTERN char * expLogFilenameGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:33:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 33 | EXTERN void expLogAppendSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:34:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 34 | EXTERN int expLogAppendGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:35:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 35 | EXTERN void expLogLeaveOpenSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:36:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 36 | EXTERN int expLogLeaveOpenGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:37:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN void expLogAllSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:38:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 38 | EXTERN int expLogAllGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:39:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN void expLogToStdoutSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:40:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int expLogToStdoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:41:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void expLogDiagU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:42:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int expWriteBytesAndLogIfTtyU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:44:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int expLogUserGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void expLogUserSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:47:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN void expLogInteractionU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.c:49:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 49 | static void expDiagWriteCharsUni _ANSI_ARGS_((Tcl_UniChar *str,int len)); | ^~~~~~~~~~~ exp_log.c: In function 'expWriteBytesAndLogIfTtyU': exp_log.c:92:14: error: implicit declaration of function 'expWriteCharsUni' [-Wimplicit-function-declaration] 92 | wc = expWriteCharsUni(esPtr,buf,lenChars); | ^~~~~~~~~~~~~~~~ exp_log.c:94:55: error: implicit declaration of function 'expDevttyIs' [-Wimplicit-function-declaration] 94 | if (tsdPtr->logChannel && ((esPtr->fdout == 1) || expDevttyIs(esPtr))) { | ^~~~~~~~~~~ exp_log.c: In function 'expLogDiagU': exp_log.c:117:5: error: implicit declaration of function 'expDiagWriteChars' [-Wimplicit-function-declaration] 117 | expDiagWriteChars(buf,-1); | ^~~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogInteractionU': exp_log.c:150:30: error: implicit declaration of function 'expStdinoutIs' [-Wimplicit-function-declaration] 150 | if (tsdPtr->logUser && (!expStdinoutIs(esPtr)) && (!expDevttyIs(esPtr))) { | ^~~~~~~~~~~~~ exp_log.c:151:30: error: implicit declaration of function 'expStdinoutGet' [-Wimplicit-function-declaration] 151 | ExpState *stdinout = expStdinoutGet(); | ^~~~~~~~~~~~~~ exp_log.c:151:30: error: initialization of 'ExpState *' from 'int' makes pointer from integer without a cast [-Wint-conversion] exp_log.c:156:5: error: implicit declaration of function 'expDiagWriteCharsUni' [-Wimplicit-function-declaration] 156 | expDiagWriteCharsUni(buf,buflen); | ^~~~~~~~~~~~~~~~~~~~ exp_log.c: At top level: exp_log.c:167:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TCL_VARARGS_DEF' 167 | expStdoutLog TCL_VARARGS_DEF(int,arg1) | ^~~~~~~~~~~~~~~ exp_log.c: In function 'expStdoutLogU': exp_log.c:203:5: error: implicit declaration of function 'expDiagWriteBytes' [-Wimplicit-function-declaration] 203 | expDiagWriteBytes(buf,length); | ^~~~~~~~~~~~~~~~~ exp_log.c: At top level: exp_log.c:220:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TCL_VARARGS_DEF' 220 | expErrorLog TCL_VARARGS_DEF(char *,arg1) | ^~~~~~~~~~~~~~~ exp_log.c:259:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TCL_VARARGS_DEF' 259 | expDiagLog TCL_VARARGS_DEF(char *,arg1) | ^~~~~~~~~~~~~~~ exp_log.c:305:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TCL_VARARGS_DEF' 305 | expPrintf TCL_VARARGS_DEF(char *,arg1) | ^~~~~~~~~~~~~~~ exp_log.c:403:1: warning: conflicting types for 'expDiagWriteBytes'; have 'void()' 403 | expDiagWriteBytes(str,len) | ^~~~~~~~~~~~~~~~~ exp_log.c:203:5: note: previous implicit declaration of 'expDiagWriteBytes' with type 'void()' 203 | expDiagWriteBytes(buf,length); | ^~~~~~~~~~~~~~~~~ exp_log.c:416:1: warning: conflicting types for 'expDiagWriteChars'; have 'void()' 416 | expDiagWriteChars(str,len) | ^~~~~~~~~~~~~~~~~ exp_log.c:117:5: note: previous implicit declaration of 'expDiagWriteChars' with type 'void()' 117 | expDiagWriteChars(buf,-1); | ^~~~~~~~~~~~~~~~~ exp_log.c:429:1: warning: conflicting types for 'expDiagWriteCharsUni'; have 'void()' 429 | expDiagWriteCharsUni(str,len) | ^~~~~~~~~~~~~~~~~~~~ exp_log.c:429:1: error: static declaration of 'expDiagWriteCharsUni' follows non-static declaration exp_log.c:156:5: note: previous implicit declaration of 'expDiagWriteCharsUni' with type 'void()' 156 | expDiagWriteCharsUni(buf,buflen); | ^~~~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogChannelOpen': exp_log.c:512:5: error: implicit declaration of function 'expLogAppendSet' [-Wimplicit-function-declaration] 512 | expLogAppendSet(append); | ^~~~~~~~~~~~~~~ exp_log.c: At top level: exp_log.c:524:1: warning: conflicting types for 'expLogAppendSet'; have 'void()' 524 | expLogAppendSet(app) | ^~~~~~~~~~~~~~~ exp_log.c:512:5: note: previous implicit declaration of 'expLogAppendSet' with type 'void()' 512 | expLogAppendSet(append); | ^~~~~~~~~~~~~~~ exp_log.c:429:1: warning: 'expDiagWriteCharsUni' defined but not used [-Wunused-function] 429 | expDiagWriteCharsUni(str,len) | ^~~~~~~~~~~~~~~~~~~~ exp_log.c:47:13: warning: 'bigbuf' defined but not used [-Wunused-variable] 47 | static char bigbuf[2000]; | ^~~~~~ make[1]: *** [Makefile:318: exp_log.o] Error 1 In file included from exp_prog.h:13, from exp_trap.c:31: expect_tcl.h:40:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Expect_Init _ANSI_ARGS_((Tcl_Interp *)); /* for Tcl_AppInit apps */ | ^~~~~~~~~~~ expect_tcl.h:41:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void exp_parse_argv _ANSI_ARGS_((Tcl_Interp *,int argc,char **argv)); | ^~~~~~~~~~~ expect_tcl.h:42:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int exp_interpreter _ANSI_ARGS_((Tcl_Interp *,Tcl_Obj *)); | ^~~~~~~~~~~ expect_tcl.h:43:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 43 | EXTERN int exp_interpret_cmdfile _ANSI_ARGS_((Tcl_Interp *,FILE *)); | ^~~~~~~~~~~ expect_tcl.h:44:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_interpret_cmdfilename _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ expect_tcl.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void exp_interpret_rcfiles _ANSI_ARGS_((Tcl_Interp *,int my_rc,int sys_rc)); | ^~~~~~~~~~~ expect_tcl.h:47:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN char * exp_cook _ANSI_ARGS_((char *s,int *len)); | ^~~~~~~~~~~ expect_tcl.h:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 49 | EXTERN void expCloseOnExec _ANSI_ARGS_((int)); | ^~~~~~~~~~~ expect_tcl.h:52:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN void (*exp_app_exit)_ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ expect_tcl.h:53:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 53 | EXTERN void exp_exit_handlers _ANSI_ARGS_((ClientData)); | ^~~~~~~~~~~ expect_tcl.h:55:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN void exp_error _ANSI_ARGS_(TCL_VARARGS(Tcl_Interp *,interp)); | ^~~~~~~~~~~ In file included from exp_prog.h:14: exp_int.h:24:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | void exp_console_set _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_int.h:25:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | void expDiagLogPtrSet _ANSI_ARGS_((void (*)_ANSI_ARGS_((char *)))); | ^~~~~~~~~~~ exp_int.h:26:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 26 | void expDiagLogPtr _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_int.h:27:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | void expDiagLogPtrX _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_int.h:28:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | void expDiagLogPtrStr _ANSI_ARGS_((char *,char *)); | ^~~~~~~~~~~ exp_int.h:29:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | void expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *)); | ^~~~~~~~~~~ exp_int.h:30:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | void expErrnoMsgSet _ANSI_ARGS_((char * (*) _ANSI_ARGS_((int)))); | ^~~~~~~~~~~ exp_int.h:31:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | char * expErrnoMsg _ANSI_ARGS_((int)); | ^~~~~~~~~~~ In file included from exp_trap.c:32: exp_command.h:30:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN char * exp_get_var _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:37:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN int exp_one_arg_braced _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_command.h:39:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN Tcl_Obj* exp_eval_with_one_arg _ANSI_ARGS_((ClientData, | ^~~~~~~~~~~ exp_command.h:42:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void exp_lowmemcpy _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:44:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_flageq_code _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:212:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 212 | EXTERN void expAdjust _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:213:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 213 | EXTERN int expWriteChars _ANSI_ARGS_((ExpState *,char *,int)); | ^~~~~~~~~~~ exp_command.h:214:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 214 | EXTERN int expWriteCharsUni _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_command.h:215:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 215 | EXTERN void exp_buffer_shuffle _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,char *,char *)); | ^~~~~~~~~~~ exp_command.h:216:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 216 | EXTERN int exp_close _ANSI_ARGS_((Tcl_Interp *,ExpState *)); | ^~~~~~~~~~~ exp_command.h:217:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 217 | EXTERN void exp_close_all _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:219:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 219 | _ANSI_ARGS_((Tcl_Interp *,int)); | ^~~~~~~~~~~ exp_command.h:220:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 220 | EXTERN void exp_trap_on _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:221:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 221 | EXTERN int exp_trap_off _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_command.h:234:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 234 | EXTERN void exp_init_pty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:235:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 235 | EXTERN void exp_pty_exit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:236:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 236 | EXTERN void exp_init_tty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:237:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 237 | EXTERN void exp_init_stdio _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:239:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 239 | EXTERN void exp_init_spawn_ids _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:240:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 240 | EXTERN void exp_init_spawn_id_vars _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:241:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 241 | EXTERN void exp_init_trap _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:242:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 242 | EXTERN void exp_init_send _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:243:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 243 | EXTERN void exp_init_unit_random _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:244:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 244 | EXTERN void exp_init_sig _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:245:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 245 | EXTERN void expChannelInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:246:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 246 | EXTERN int expChannelCountGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:247:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 247 | EXTERN int expChannelStillAlive _ANSI_ARGS_((ExpState *, char *)); | ^~~~~~~~~~~ exp_command.h:249:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 249 | EXTERN int exp_tcl2_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:250:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 250 | EXTERN int exp_2tcl_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:252:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 252 | EXTERN void exp_rearm_sigchld _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:253:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 253 | EXTERN int exp_string_to_signal _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:289:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 289 | EXTERN struct exp_i * exp_new_i_complex _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:291:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 291 | EXTERN struct exp_i * exp_new_i_simple _ANSI_ARGS_((ExpState *,int)); | ^~~~~~~~~~~ exp_command.h:292:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 292 | EXTERN struct exp_state_list *exp_new_state _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:293:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 293 | EXTERN void exp_free_i _ANSI_ARGS_((Tcl_Interp *,struct exp_i *, | ^~~~~~~~~~~ exp_command.h:295:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 295 | EXTERN void exp_free_state _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:296:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 296 | EXTERN void exp_free_state_single _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:297:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 297 | EXTERN int exp_i_update _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:317:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 317 | EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:319:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 319 | EXTERN void exp_init_main_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:320:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 320 | EXTERN void exp_init_expect_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:321:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 321 | EXTERN void exp_init_most_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:322:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 322 | EXTERN void exp_init_trap_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:323:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 323 | EXTERN void exp_init_interact_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:324:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 324 | EXTERN void exp_init_tty_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:326:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 326 | EXTERN ExpState * expStateCheck _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:327:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 327 | EXTERN ExpState * expStateCurrent _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:328:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 328 | EXTERN ExpState * expStateFromChannelName _ANSI_ARGS_((Tcl_Interp *,char *,int,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:329:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 329 | EXTERN void expStateFree _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:331:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 331 | EXTERN ExpState * expCreateChannel _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:332:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 332 | EXTERN ExpState * expWaitOnAny _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:333:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 333 | EXTERN ExpState * expWaitOnOne _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:334:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 334 | EXTERN void expExpectVarsInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:335:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 335 | EXTERN int expStateAnyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:336:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 336 | EXTERN int expDevttyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:337:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 337 | EXTERN int expStdinoutIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:338:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 338 | EXTERN ExpState * expStdinoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:339:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 339 | EXTERN ExpState * expDevttyGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ In file included from exp_trap.c:33: exp_log.h:3:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | extern void expErrorLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:4:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | extern void expErrorLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:6:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | extern void expStdoutLog _ANSI_ARGS_(TCL_VARARGS(int,force_stdout)); | ^~~~~~~~~~~ exp_log.h:7:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 7 | extern void expStdoutLogU _ANSI_ARGS_((char *buf, int force_stdout)); | ^~~~~~~~~~~ exp_log.h:9:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 9 | EXTERN void expDiagInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:10:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | EXTERN int expDiagChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:11:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | EXTERN Tcl_Channel expDiagChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:12:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | EXTERN void expDiagChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:13:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 13 | EXTERN char * expDiagFilename _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:14:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | EXTERN int expDiagToStderrGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:15:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | EXTERN void expDiagToStderrSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:16:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | EXTERN void expDiagWriteBytes _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:17:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | EXTERN void expDiagWriteChars _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:18:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | EXTERN void expDiagWriteObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:19:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 19 | EXTERN void expDiagLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:20:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | EXTERN void expDiagLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:22:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | EXTERN char * expPrintify _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:23:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 23 | EXTERN char * expPrintifyUni _ANSI_ARGS_((Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:24:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | EXTERN char * expPrintifyObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:25:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | EXTERN void expPrintf _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:27:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | EXTERN void expLogInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:28:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | EXTERN int expLogChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *,int)); | ^~~~~~~~~~~ exp_log.h:29:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | EXTERN Tcl_Channel expLogChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:30:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN int expLogChannelSet _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:31:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | EXTERN void expLogChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:32:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 32 | EXTERN char * expLogFilenameGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:33:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 33 | EXTERN void expLogAppendSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:34:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 34 | EXTERN int expLogAppendGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:35:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 35 | EXTERN void expLogLeaveOpenSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:36:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 36 | EXTERN int expLogLeaveOpenGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:37:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN void expLogAllSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:38:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 38 | EXTERN int expLogAllGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:39:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN void expLogToStdoutSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:40:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int expLogToStdoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:41:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void expLogDiagU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:42:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int expWriteBytesAndLogIfTtyU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:44:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int expLogUserGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void expLogUserSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:47:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN void expLogInteractionU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ In file included from exp_trap.c:36: tcldbg.h:17:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | typedef int (Dbg_InterProc) _ANSI_ARGS_((Tcl_Interp *interp, ClientData data)); | ^~~~~~~~~~~ tcldbg.h:18:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | typedef int (Dbg_IgnoreFuncsProc) _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:21:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 21 | typedef void (Dbg_OutputProc) _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:27:3: error: unknown type name 'Dbg_InterProc' 27 | Dbg_InterProc *func; | ^~~~~~~~~~~~~ tcldbg.h:32:3: error: unknown type name 'Dbg_OutputProc' 32 | Dbg_OutputProc *func; | ^~~~~~~~~~~~~~ tcldbg.h:40:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Tcldbg_Init _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ tcldbg.h:42:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void Dbg_On _ANSI_ARGS_((Tcl_Interp *interp, | ^~~~~~~~~~~ tcldbg.h:44:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN void Dbg_Off _ANSI_ARGS_((Tcl_Interp *interp)); | ^~~~~~~~~~~ tcldbg.h:45:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN char **Dbg_ArgcArgv _ANSI_ARGS_((int argc,char *argv[], | ^~~~~~~~~~~ tcldbg.h:47:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN int Dbg_Active _ANSI_ARGS_((Tcl_Interp *interp)); | ^~~~~~~~~~~ tcldbg.h:48:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 48 | EXTERN Dbg_InterStruct Dbg_Interactor _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:52:8: error: unknown type name 'Dbg_IgnoreFuncsProc' 52 | EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_(( | ^~~~~~~~~~~~~~~~~~~ tcldbg.h:52:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:55:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN Dbg_OutputStruct Dbg_Output _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:60:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 60 | EXTERN void Dbg_StdinMode _ANSI_ARGS_((int mode)); | ^~~~~~~~~~~ exp_trap.c:50:9: error: expected specifier-qualifier-list before 'CONST' 50 | CONST char *name; /* name of signal */ | ^~~~~ exp_trap.c:67:13: error: expected ';' before 'char' 67 | static CONST char * | ^~~~~ | ; exp_trap.c: In function 'signal_to_string': exp_trap.c:72:26: error: 'struct trap' has no member named 'name' 72 | return(traps[sig].name); | ^ exp_trap.c: In function 'tophalf': exp_trap.c:95:9: error: implicit declaration of function 'expDiagLog' [-Wimplicit-function-declaration] 95 | expDiagLog("sighandler: handling signal(%d)\r\n",got_sig); | ^~~~~~~~~~ exp_trap.c:98:17: error: implicit declaration of function 'expErrorLog' [-Wimplicit-function-declaration] 98 | expErrorLog("caught impossible signal %d\r\n",got_sig); | ^~~~~~~~~~~ exp_trap.c: In function 'exp_init_trap': exp_trap.c:246:25: error: 'struct trap' has no member named 'name' 246 | traps[i].name = Tcl_SignalId(i); | ^ exp_trap.c:248:25: error: 'struct trap' has no member named 'reserved' 248 | traps[i].reserved = FALSE; | ^ exp_trap.c:257:22: error: 'struct trap' has no member named 'name' 257 | traps[SIGCLD].name = "SIGCHLD"; | ^ exp_trap.c:260:23: error: 'struct trap' has no member named 'reserved' 260 | traps[SIGALRM].reserved = TRUE; | ^ exp_trap.c:263:23: error: 'struct trap' has no member named 'reserved' 263 | traps[SIGKILL].reserved = TRUE; | ^ exp_trap.c:266:23: error: 'struct trap' has no member named 'reserved' 266 | traps[SIGSTOP].reserved = TRUE; | ^ exp_trap.c: In function 'exp_string_to_signal': exp_trap.c:281:9: error: 'CONST' undeclared (first use in this function); did you mean 'CONST86'? 281 | CONST char *name; | ^~~~~ | CONST86 exp_trap.c:281:9: note: each undeclared identifier is reported only once for each function it appears in exp_trap.c:281:14: error: expected ';' before 'char' 281 | CONST char *name; | ^~~~~ | ; exp_trap.c:289:25: error: 'name' undeclared (first use in this function); did you mean 'uname'? 289 | name = traps[sig].name; | ^~~~ | uname exp_trap.c:289:42: error: 'struct trap' has no member named 'name' 289 | name = traps[sig].name; | ^ exp_trap.c:294:9: error: implicit declaration of function 'exp_error'; did you mean 'perror'? [-Wimplicit-function-declaration] 294 | exp_error(interp,"invalid signal %s",s); | ^~~~~~~~~ | perror exp_trap.c: In function 'Exp_TrapObjCmd': exp_trap.c:305:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'objv' 305 | Tcl_Obj *CONST objv[]; | ^~~~ exp_trap.c:301:1: error: type of 'objv' defaults to 'int' [-Wimplicit-int] 301 | Exp_TrapObjCmd(clientData, interp, objc, objv) | ^~~~~~~~~~~~~~ In file included from /tools_loongarch64/include/tcl.h:2442, from exp_trap.c:28: exp_trap.c:324:31: error: invalid type argument of unary '*' (have 'int') 324 | arg = Tcl_GetString(*objv); | ^~~~~ exp_trap.c:382:57: error: subscripted value is neither array nor pointer nor vector 382 | if (TCL_OK != Tcl_ListObjGetElements(interp,objv[1],&n,&list)) { | ^ exp_trap.c:382:61: error: passing argument 3 of 'tclStubsPtr->tcl_ListObjGetElements' from incompatible pointer type [-Wincompatible-pointer-types] 382 | if (TCL_OK != Tcl_ListObjGetElements(interp,objv[1],&n,&list)) { | ^~ | | | int * exp_trap.c:382:61: note: expected 'Tcl_Size *' {aka 'long int *'} but argument is of type 'int *' exp_trap.c:398:31: error: 'struct trap' has no member named 'reserved' 398 | if (traps[sig].reserved) { | ^ exp_trap.c: In function 'eval_trap_action': exp_trap.c:448:9: error: implicit declaration of function 'expDiagLogU' [-Wimplicit-function-declaration] 448 | expDiagLogU("async event handler: Tcl_Eval("); | ^~~~~~~~~~~ exp_trap.c:514:54: error: passing argument 2 of 'tclStubsPtr->tcl_GetStringFromObj' from incompatible pointer type [-Wincompatible-pointer-types] 514 | char *s = Tcl_GetStringFromObj(eip,&len); | ^~~~ | | | int * exp_trap.c:514:54: note: expected 'Tcl_Size *' {aka 'long int *'} but argument is of type 'int *' exp_trap.c: In function 'exp_init_trap_cmds': exp_trap.c:553:9: error: implicit declaration of function 'exp_create_commands'; did you mean 'Tcl_CreateCommand'? [-Wimplicit-function-declaration] 553 | exp_create_commands(interp,cmd_data); | ^~~~~~~~~~~~~~~~~~~ | Tcl_CreateCommand exp_trap.c: In function 'signal_to_string': exp_trap.c:73:1: warning: control reaches end of non-void function [-Wreturn-type] 73 | } | ^ make[1]: *** [Makefile:318: exp_trap.o] Error 1 In file included from exp_prog.h:13, from exp_inter.c:43: expect_tcl.h:40:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Expect_Init _ANSI_ARGS_((Tcl_Interp *)); /* for Tcl_AppInit apps */ | ^~~~~~~~~~~ expect_tcl.h:41:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void exp_parse_argv _ANSI_ARGS_((Tcl_Interp *,int argc,char **argv)); | ^~~~~~~~~~~ expect_tcl.h:42:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int exp_interpreter _ANSI_ARGS_((Tcl_Interp *,Tcl_Obj *)); | ^~~~~~~~~~~ expect_tcl.h:43:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 43 | EXTERN int exp_interpret_cmdfile _ANSI_ARGS_((Tcl_Interp *,FILE *)); | ^~~~~~~~~~~ expect_tcl.h:44:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_interpret_cmdfilename _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ expect_tcl.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void exp_interpret_rcfiles _ANSI_ARGS_((Tcl_Interp *,int my_rc,int sys_rc)); | ^~~~~~~~~~~ expect_tcl.h:47:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN char * exp_cook _ANSI_ARGS_((char *s,int *len)); | ^~~~~~~~~~~ expect_tcl.h:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 49 | EXTERN void expCloseOnExec _ANSI_ARGS_((int)); | ^~~~~~~~~~~ expect_tcl.h:52:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN void (*exp_app_exit)_ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ expect_tcl.h:53:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 53 | EXTERN void exp_exit_handlers _ANSI_ARGS_((ClientData)); | ^~~~~~~~~~~ expect_tcl.h:55:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN void exp_error _ANSI_ARGS_(TCL_VARARGS(Tcl_Interp *,interp)); | ^~~~~~~~~~~ In file included from exp_prog.h:14: exp_int.h:24:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | void exp_console_set _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_int.h:25:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | void expDiagLogPtrSet _ANSI_ARGS_((void (*)_ANSI_ARGS_((char *)))); | ^~~~~~~~~~~ exp_int.h:26:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 26 | void expDiagLogPtr _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_int.h:27:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | void expDiagLogPtrX _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_int.h:28:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | void expDiagLogPtrStr _ANSI_ARGS_((char *,char *)); | ^~~~~~~~~~~ exp_int.h:29:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | void expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *)); | ^~~~~~~~~~~ exp_int.h:30:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | void expErrnoMsgSet _ANSI_ARGS_((char * (*) _ANSI_ARGS_((int)))); | ^~~~~~~~~~~ exp_int.h:31:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | char * expErrnoMsg _ANSI_ARGS_((int)); | ^~~~~~~~~~~ In file included from exp_inter.c:44: exp_command.h:30:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN char * exp_get_var _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:37:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN int exp_one_arg_braced _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_command.h:39:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN Tcl_Obj* exp_eval_with_one_arg _ANSI_ARGS_((ClientData, | ^~~~~~~~~~~ exp_command.h:42:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void exp_lowmemcpy _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:44:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_flageq_code _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:212:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 212 | EXTERN void expAdjust _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:213:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 213 | EXTERN int expWriteChars _ANSI_ARGS_((ExpState *,char *,int)); | ^~~~~~~~~~~ exp_command.h:214:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 214 | EXTERN int expWriteCharsUni _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_command.h:215:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 215 | EXTERN void exp_buffer_shuffle _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,char *,char *)); | ^~~~~~~~~~~ exp_command.h:216:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 216 | EXTERN int exp_close _ANSI_ARGS_((Tcl_Interp *,ExpState *)); | ^~~~~~~~~~~ exp_command.h:217:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 217 | EXTERN void exp_close_all _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:219:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 219 | _ANSI_ARGS_((Tcl_Interp *,int)); | ^~~~~~~~~~~ exp_command.h:220:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 220 | EXTERN void exp_trap_on _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:221:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 221 | EXTERN int exp_trap_off _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_command.h:234:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 234 | EXTERN void exp_init_pty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:235:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 235 | EXTERN void exp_pty_exit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:236:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 236 | EXTERN void exp_init_tty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:237:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 237 | EXTERN void exp_init_stdio _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:239:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 239 | EXTERN void exp_init_spawn_ids _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:240:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 240 | EXTERN void exp_init_spawn_id_vars _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:241:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 241 | EXTERN void exp_init_trap _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:242:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 242 | EXTERN void exp_init_send _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:243:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 243 | EXTERN void exp_init_unit_random _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:244:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 244 | EXTERN void exp_init_sig _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:245:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 245 | EXTERN void expChannelInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:246:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 246 | EXTERN int expChannelCountGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:247:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 247 | EXTERN int expChannelStillAlive _ANSI_ARGS_((ExpState *, char *)); | ^~~~~~~~~~~ exp_command.h:249:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 249 | EXTERN int exp_tcl2_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:250:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 250 | EXTERN int exp_2tcl_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:252:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 252 | EXTERN void exp_rearm_sigchld _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:253:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 253 | EXTERN int exp_string_to_signal _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:289:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 289 | EXTERN struct exp_i * exp_new_i_complex _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:291:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 291 | EXTERN struct exp_i * exp_new_i_simple _ANSI_ARGS_((ExpState *,int)); | ^~~~~~~~~~~ exp_command.h:292:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 292 | EXTERN struct exp_state_list *exp_new_state _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:293:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 293 | EXTERN void exp_free_i _ANSI_ARGS_((Tcl_Interp *,struct exp_i *, | ^~~~~~~~~~~ exp_command.h:295:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 295 | EXTERN void exp_free_state _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:296:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 296 | EXTERN void exp_free_state_single _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:297:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 297 | EXTERN int exp_i_update _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:317:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 317 | EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:319:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 319 | EXTERN void exp_init_main_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:320:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 320 | EXTERN void exp_init_expect_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:321:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 321 | EXTERN void exp_init_most_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:322:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 322 | EXTERN void exp_init_trap_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:323:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 323 | EXTERN void exp_init_interact_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:324:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 324 | EXTERN void exp_init_tty_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:326:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 326 | EXTERN ExpState * expStateCheck _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:327:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 327 | EXTERN ExpState * expStateCurrent _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:328:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 328 | EXTERN ExpState * expStateFromChannelName _ANSI_ARGS_((Tcl_Interp *,char *,int,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:329:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 329 | EXTERN void expStateFree _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:331:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 331 | EXTERN ExpState * expCreateChannel _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:332:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 332 | EXTERN ExpState * expWaitOnAny _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:333:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 333 | EXTERN ExpState * expWaitOnOne _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:334:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 334 | EXTERN void expExpectVarsInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:335:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 335 | EXTERN int expStateAnyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:336:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 336 | EXTERN int expDevttyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:337:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 337 | EXTERN int expStdinoutIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:338:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 338 | EXTERN ExpState * expStdinoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:339:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 339 | EXTERN ExpState * expDevttyGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ In file included from exp_inter.c:45: exp_log.h:3:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | extern void expErrorLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:4:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | extern void expErrorLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:6:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | extern void expStdoutLog _ANSI_ARGS_(TCL_VARARGS(int,force_stdout)); | ^~~~~~~~~~~ exp_log.h:7:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 7 | extern void expStdoutLogU _ANSI_ARGS_((char *buf, int force_stdout)); | ^~~~~~~~~~~ exp_log.h:9:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 9 | EXTERN void expDiagInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:10:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | EXTERN int expDiagChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:11:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | EXTERN Tcl_Channel expDiagChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:12:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | EXTERN void expDiagChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:13:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 13 | EXTERN char * expDiagFilename _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:14:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | EXTERN int expDiagToStderrGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:15:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | EXTERN void expDiagToStderrSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:16:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | EXTERN void expDiagWriteBytes _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:17:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | EXTERN void expDiagWriteChars _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:18:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | EXTERN void expDiagWriteObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:19:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 19 | EXTERN void expDiagLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:20:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | EXTERN void expDiagLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:22:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | EXTERN char * expPrintify _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:23:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 23 | EXTERN char * expPrintifyUni _ANSI_ARGS_((Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:24:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | EXTERN char * expPrintifyObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:25:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | EXTERN void expPrintf _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:27:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | EXTERN void expLogInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:28:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | EXTERN int expLogChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *,int)); | ^~~~~~~~~~~ exp_log.h:29:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | EXTERN Tcl_Channel expLogChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:30:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN int expLogChannelSet _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:31:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | EXTERN void expLogChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:32:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 32 | EXTERN char * expLogFilenameGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:33:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 33 | EXTERN void expLogAppendSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:34:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 34 | EXTERN int expLogAppendGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:35:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 35 | EXTERN void expLogLeaveOpenSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:36:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 36 | EXTERN int expLogLeaveOpenGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:37:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN void expLogAllSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:38:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 38 | EXTERN int expLogAllGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:39:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN void expLogToStdoutSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:40:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int expLogToStdoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:41:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void expLogDiagU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:42:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int expWriteBytesAndLogIfTtyU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:44:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int expLogUserGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void expLogUserSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:47:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN void expLogInteractionU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ In file included from exp_inter.c:46: exp_event.h:3:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | int exp_get_next_event _ANSI_ARGS_((Tcl_Interp *,ExpState **, int, ExpState **, int, int)); | ^~~~~~~~~~~ exp_event.h:4:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | int exp_get_next_event_info _ANSI_ARGS_((Tcl_Interp *, ExpState *)); | ^~~~~~~~~~~ exp_event.h:5:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 5 | int exp_dsleep _ANSI_ARGS_((Tcl_Interp *, double)); | ^~~~~~~~~~~ exp_event.h:6:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | void exp_init_event _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_event.h:8:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 8 | extern void (*exp_event_exit) _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_event.h:10:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | void exp_event_disarm _ANSI_ARGS_((ExpState *,Tcl_FileProc *)); | ^~~~~~~~~~~ exp_event.h:11:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | void exp_event_disarm_bg _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:12:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | void exp_event_disarm_fg _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:14:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | void exp_arm_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:15:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | void exp_disarm_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:16:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | void exp_disarm_background_channelhandler_force _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:17:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | void exp_unblock_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:18:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | void exp_block_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:20:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | void exp_background_channelhandler _ANSI_ARGS_((ClientData,int)); | ^~~~~~~~~~~ exp_inter.c: In function 'intRegExpMatchProcess': exp_inter.c:62:2: error: implicit declaration of function 'expDiagLog' [-Wimplicit-function-declaration] 62 | expDiagLog("interact: set %s(%s) ",INTER_OUT,var); \ | ^~~~~~~~~~ exp_inter.c:378:13: note: in expansion of macro 'out' 378 | out(name,value); | ^~~ exp_inter.c:63:2: error: implicit declaration of function 'expDiagLogU' [-Wimplicit-function-declaration] 63 | expDiagLogU(expPrintify(val)); \ | ^~~~~~~~~~~ exp_inter.c:378:13: note: in expansion of macro 'out' 378 | out(name,value); | ^~~ exp_inter.c:63:14: error: implicit declaration of function 'expPrintify' [-Wimplicit-function-declaration] 63 | expDiagLogU(expPrintify(val)); \ | ^~~~~~~~~~~ exp_inter.c:378:13: note: in expansion of macro 'out' 378 | out(name,value); | ^~~ exp_inter.c:390:21: error: implicit declaration of function 'expPrintifyObj' [-Wimplicit-function-declaration] 390 | expDiagLogU(expPrintifyObj(val)); | ^~~~~~~~~~~~~~ exp_inter.c: In function 'intEcho': exp_inter.c:420:12: error: implicit declaration of function 'expWriteCharsUni' [-Wimplicit-function-declaration] 420 | (void) expWriteCharsUni(esPtr, | ^~~~~~~~~~~~~~~~ exp_inter.c: In function 'intRead': exp_inter.c:462:9: error: implicit declaration of function 'exp_buffer_shuffle' [-Wimplicit-function-declaration] 462 | exp_buffer_shuffle(interp,esPtr,0,INTER_OUT,"interact"); | ^~~~~~~~~~~~~~~~~~ exp_inter.c:483:21: error: implicit declaration of function 'expPrintifyUni' [-Wimplicit-function-declaration] 483 | expDiagLogU(expPrintifyUni(eobOld,cc)); | ^~~~~~~~~~~~~~ exp_inter.c: In function 'update_interact_fds': exp_inter.c:630:33: error: implicit declaration of function 'exp_i_update' [-Wimplicit-function-declaration] 630 | exp_i_update(interp,inp->i_list); | ^~~~~~~~~~~~ exp_inter.c:644:26: error: implicit declaration of function 'expStateCheck' [-Wimplicit-function-declaration] 644 | if (!expStateCheck(interp,fdp->esPtr,1,1,"interact")) { | ^~~~~~~~~~~~~ exp_inter.c:653:34: error: implicit declaration of function 'expStdinoutIs' [-Wimplicit-function-declaration] 653 | if (!expStdinoutIs(fdp->esPtr)) { | ^~~~~~~~~~~~~ exp_inter.c:85:66: error: implicit declaration of function 'expDevttyIs' [-Wimplicit-function-declaration] 85 | #define real_tty_input(x) (exp_stdin_is_tty && ((x->fdin==0) || (expDevttyIs(x)))) | ^~~~~~~~~~~ exp_inter.c:681:21: note: in expansion of macro 'real_tty_input' 681 | if (real_tty_input(fdp->esPtr)) real_tty = TRUE; | ^~~~~~~~~~~~~~ exp_inter.c: At top level: exp_inter.c:718:20: error: expected ';', ',' or ')' before 'initial_objv' 718 | Tcl_Obj *CONST initial_objv[]) /* Argument objects. */ | ^~~~~~~~~~~~ exp_inter.c: In function 'inter_eval': exp_inter.c:2171:9: error: implicit declaration of function 'expStdoutLogU' [-Wimplicit-function-declaration] 2171 | expStdoutLogU("\r\n",1); | ^~~~~~~~~~~~~ exp_inter.c:2172:18: error: implicit declaration of function 'exp_interpreter' [-Wimplicit-function-declaration] 2172 | status = exp_interpreter(interp,(Tcl_Obj *)0); | ^~~~~~~~~~~~~~~ exp_inter.c: In function 'free_input': exp_inter.c:2207:9: error: implicit declaration of function 'exp_free_i' [-Wimplicit-function-declaration] 2207 | exp_free_i(interp,i->i_list,inter_updateproc); | ^~~~~~~~~~ exp_inter.c: At top level: exp_inter.c:2239:17: error: 'Exp_InteractObjCmd' undeclared here (not in a function); did you mean 'Tcl_InterpObjCmd'? 2239 | {"interact", Exp_InteractObjCmd, 0, 0, 0}, | ^~~~~~~~~~~~~~~~~~ | Tcl_InterpObjCmd exp_inter.c: In function 'exp_init_interact_cmds': exp_inter.c:2247:5: error: implicit declaration of function 'exp_create_commands'; did you mean 'Tcl_CreateCommand'? [-Wimplicit-function-declaration] 2247 | exp_create_commands(interp,cmd_data); | ^~~~~~~~~~~~~~~~~~~ | Tcl_CreateCommand exp_inter.c: At top level: exp_inter.c:2214:1: warning: 'new_action' defined but not used [-Wunused-function] 2214 | new_action(struct action **base) | ^~~~~~~~~~ exp_inter.c:2200:1: warning: 'free_input' defined but not used [-Wunused-function] 2200 | free_input( | ^~~~~~~~~~ exp_inter.c:2188:1: warning: 'free_action' defined but not used [-Wunused-function] 2188 | free_action(struct action *a) | ^~~~~~~~~~~ exp_inter.c:2157:1: warning: 'inter_eval' defined but not used [-Wunused-function] 2157 | inter_eval( | ^~~~~~~~~~ exp_inter.c:710:13: warning: 'interpreter_cmd' defined but not used [-Wunused-variable] 710 | static char interpreter_cmd[] = "interpreter"; | ^~~~~~~~~~~~~~~ exp_inter.c:709:13: warning: 'return_cmd' defined but not used [-Wunused-variable] 709 | static char return_cmd[] = "return"; | ^~~~~~~~~~ exp_inter.c:604:1: warning: 'update_interact_fds' defined but not used [-Wunused-function] 604 | update_interact_fds( | ^~~~~~~~~~~~~~~~~~~ exp_inter.c:432:1: warning: 'intRead' defined but not used [-Wunused-function] 432 | intRead( | ^~~~~~~ exp_inter.c:401:1: warning: 'intEcho' defined but not used [-Wunused-function] 401 | intEcho( | ^~~~~~~ exp_inter.c:355:1: warning: 'intRegExpMatchProcess' defined but not used [-Wunused-function] 355 | intRegExpMatchProcess( | ^~~~~~~~~~~~~~~~~~~~~ exp_inter.c:198:1: warning: 'intMatch' defined but not used [-Wunused-function] 198 | intMatch( | ^~~~~~~~ make[1]: *** [Makefile:318: exp_inter.o] Error 1 In file included from exp_prog.h:13, from exp_main_sub.c:22: expect_tcl.h:40:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Expect_Init _ANSI_ARGS_((Tcl_Interp *)); /* for Tcl_AppInit apps */ | ^~~~~~~~~~~ expect_tcl.h:41:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void exp_parse_argv _ANSI_ARGS_((Tcl_Interp *,int argc,char **argv)); | ^~~~~~~~~~~ expect_tcl.h:42:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int exp_interpreter _ANSI_ARGS_((Tcl_Interp *,Tcl_Obj *)); | ^~~~~~~~~~~ expect_tcl.h:43:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 43 | EXTERN int exp_interpret_cmdfile _ANSI_ARGS_((Tcl_Interp *,FILE *)); | ^~~~~~~~~~~ expect_tcl.h:44:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_interpret_cmdfilename _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ expect_tcl.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void exp_interpret_rcfiles _ANSI_ARGS_((Tcl_Interp *,int my_rc,int sys_rc)); | ^~~~~~~~~~~ expect_tcl.h:47:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN char * exp_cook _ANSI_ARGS_((char *s,int *len)); | ^~~~~~~~~~~ expect_tcl.h:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 49 | EXTERN void expCloseOnExec _ANSI_ARGS_((int)); | ^~~~~~~~~~~ expect_tcl.h:52:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN void (*exp_app_exit)_ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ expect_tcl.h:53:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 53 | EXTERN void exp_exit_handlers _ANSI_ARGS_((ClientData)); | ^~~~~~~~~~~ expect_tcl.h:55:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN void exp_error _ANSI_ARGS_(TCL_VARARGS(Tcl_Interp *,interp)); | ^~~~~~~~~~~ In file included from exp_prog.h:14: exp_int.h:24:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | void exp_console_set _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_int.h:25:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | void expDiagLogPtrSet _ANSI_ARGS_((void (*)_ANSI_ARGS_((char *)))); | ^~~~~~~~~~~ exp_int.h:26:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 26 | void expDiagLogPtr _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_int.h:27:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | void expDiagLogPtrX _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_int.h:28:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | void expDiagLogPtrStr _ANSI_ARGS_((char *,char *)); | ^~~~~~~~~~~ exp_int.h:29:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | void expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *)); | ^~~~~~~~~~~ exp_int.h:30:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | void expErrnoMsgSet _ANSI_ARGS_((char * (*) _ANSI_ARGS_((int)))); | ^~~~~~~~~~~ exp_int.h:31:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | char * expErrnoMsg _ANSI_ARGS_((int)); | ^~~~~~~~~~~ In file included from exp_main_sub.c:23: exp_command.h:30:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN char * exp_get_var _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:37:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN int exp_one_arg_braced _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_command.h:39:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN Tcl_Obj* exp_eval_with_one_arg _ANSI_ARGS_((ClientData, | ^~~~~~~~~~~ exp_command.h:42:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void exp_lowmemcpy _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:44:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_flageq_code _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:212:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 212 | EXTERN void expAdjust _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:213:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 213 | EXTERN int expWriteChars _ANSI_ARGS_((ExpState *,char *,int)); | ^~~~~~~~~~~ exp_command.h:214:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 214 | EXTERN int expWriteCharsUni _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_command.h:215:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 215 | EXTERN void exp_buffer_shuffle _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,char *,char *)); | ^~~~~~~~~~~ exp_command.h:216:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 216 | EXTERN int exp_close _ANSI_ARGS_((Tcl_Interp *,ExpState *)); | ^~~~~~~~~~~ exp_command.h:217:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 217 | EXTERN void exp_close_all _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:219:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 219 | _ANSI_ARGS_((Tcl_Interp *,int)); | ^~~~~~~~~~~ exp_command.h:220:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 220 | EXTERN void exp_trap_on _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:221:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 221 | EXTERN int exp_trap_off _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_command.h:234:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 234 | EXTERN void exp_init_pty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:235:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 235 | EXTERN void exp_pty_exit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:236:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 236 | EXTERN void exp_init_tty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:237:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 237 | EXTERN void exp_init_stdio _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:239:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 239 | EXTERN void exp_init_spawn_ids _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:240:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 240 | EXTERN void exp_init_spawn_id_vars _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:241:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 241 | EXTERN void exp_init_trap _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:242:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 242 | EXTERN void exp_init_send _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:243:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 243 | EXTERN void exp_init_unit_random _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:244:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 244 | EXTERN void exp_init_sig _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:245:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 245 | EXTERN void expChannelInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:246:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 246 | EXTERN int expChannelCountGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:247:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 247 | EXTERN int expChannelStillAlive _ANSI_ARGS_((ExpState *, char *)); | ^~~~~~~~~~~ exp_command.h:249:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 249 | EXTERN int exp_tcl2_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:250:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 250 | EXTERN int exp_2tcl_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:252:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 252 | EXTERN void exp_rearm_sigchld _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:253:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 253 | EXTERN int exp_string_to_signal _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:289:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 289 | EXTERN struct exp_i * exp_new_i_complex _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:291:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 291 | EXTERN struct exp_i * exp_new_i_simple _ANSI_ARGS_((ExpState *,int)); | ^~~~~~~~~~~ exp_command.h:292:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 292 | EXTERN struct exp_state_list *exp_new_state _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:293:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 293 | EXTERN void exp_free_i _ANSI_ARGS_((Tcl_Interp *,struct exp_i *, | ^~~~~~~~~~~ exp_command.h:295:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 295 | EXTERN void exp_free_state _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:296:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 296 | EXTERN void exp_free_state_single _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:297:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 297 | EXTERN int exp_i_update _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:317:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 317 | EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:319:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 319 | EXTERN void exp_init_main_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:320:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 320 | EXTERN void exp_init_expect_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:321:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 321 | EXTERN void exp_init_most_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:322:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 322 | EXTERN void exp_init_trap_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:323:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 323 | EXTERN void exp_init_interact_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:324:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 324 | EXTERN void exp_init_tty_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:326:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 326 | EXTERN ExpState * expStateCheck _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:327:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 327 | EXTERN ExpState * expStateCurrent _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:328:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 328 | EXTERN ExpState * expStateFromChannelName _ANSI_ARGS_((Tcl_Interp *,char *,int,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:329:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 329 | EXTERN void expStateFree _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:331:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 331 | EXTERN ExpState * expCreateChannel _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:332:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 332 | EXTERN ExpState * expWaitOnAny _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:333:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 333 | EXTERN ExpState * expWaitOnOne _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:334:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 334 | EXTERN void expExpectVarsInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:335:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 335 | EXTERN int expStateAnyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:336:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 336 | EXTERN int expDevttyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:337:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 337 | EXTERN int expStdinoutIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:338:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 338 | EXTERN ExpState * expStdinoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:339:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 339 | EXTERN ExpState * expDevttyGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ In file included from exp_main_sub.c:25: exp_log.h:3:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | extern void expErrorLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:4:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | extern void expErrorLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:6:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | extern void expStdoutLog _ANSI_ARGS_(TCL_VARARGS(int,force_stdout)); | ^~~~~~~~~~~ exp_log.h:7:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 7 | extern void expStdoutLogU _ANSI_ARGS_((char *buf, int force_stdout)); | ^~~~~~~~~~~ exp_log.h:9:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 9 | EXTERN void expDiagInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:10:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | EXTERN int expDiagChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:11:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | EXTERN Tcl_Channel expDiagChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:12:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | EXTERN void expDiagChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:13:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 13 | EXTERN char * expDiagFilename _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:14:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | EXTERN int expDiagToStderrGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:15:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | EXTERN void expDiagToStderrSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:16:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | EXTERN void expDiagWriteBytes _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:17:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | EXTERN void expDiagWriteChars _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:18:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | EXTERN void expDiagWriteObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:19:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 19 | EXTERN void expDiagLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:20:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | EXTERN void expDiagLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:22:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | EXTERN char * expPrintify _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:23:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 23 | EXTERN char * expPrintifyUni _ANSI_ARGS_((Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:24:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | EXTERN char * expPrintifyObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:25:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | EXTERN void expPrintf _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:27:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | EXTERN void expLogInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:28:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | EXTERN int expLogChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *,int)); | ^~~~~~~~~~~ exp_log.h:29:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | EXTERN Tcl_Channel expLogChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:30:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN int expLogChannelSet _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:31:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | EXTERN void expLogChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:32:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 32 | EXTERN char * expLogFilenameGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:33:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 33 | EXTERN void expLogAppendSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:34:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 34 | EXTERN int expLogAppendGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:35:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 35 | EXTERN void expLogLeaveOpenSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:36:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 36 | EXTERN int expLogLeaveOpenGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:37:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN void expLogAllSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:38:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 38 | EXTERN int expLogAllGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:39:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN void expLogToStdoutSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:40:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int expLogToStdoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:41:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void expLogDiagU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:42:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int expWriteBytesAndLogIfTtyU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:44:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int expLogUserGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void expLogUserSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:47:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN void expLogInteractionU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ In file included from exp_main_sub.c:26: exp_event.h:3:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | int exp_get_next_event _ANSI_ARGS_((Tcl_Interp *,ExpState **, int, ExpState **, int, int)); | ^~~~~~~~~~~ exp_event.h:4:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | int exp_get_next_event_info _ANSI_ARGS_((Tcl_Interp *, ExpState *)); | ^~~~~~~~~~~ exp_event.h:5:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 5 | int exp_dsleep _ANSI_ARGS_((Tcl_Interp *, double)); | ^~~~~~~~~~~ exp_event.h:6:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | void exp_init_event _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_event.h:8:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 8 | extern void (*exp_event_exit) _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_event.h:10:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | void exp_event_disarm _ANSI_ARGS_((ExpState *,Tcl_FileProc *)); | ^~~~~~~~~~~ exp_event.h:11:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | void exp_event_disarm_bg _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:12:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | void exp_event_disarm_fg _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:14:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | void exp_arm_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:15:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | void exp_disarm_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:16:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | void exp_disarm_background_channelhandler_force _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:17:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | void exp_unblock_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:18:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | void exp_block_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:20:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | void exp_background_channelhandler _ANSI_ARGS_((ClientData,int)); | ^~~~~~~~~~~ In file included from exp_main_sub.c:28: tcldbg.h:17:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | typedef int (Dbg_InterProc) _ANSI_ARGS_((Tcl_Interp *interp, ClientData data)); | ^~~~~~~~~~~ tcldbg.h:18:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | typedef int (Dbg_IgnoreFuncsProc) _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:21:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 21 | typedef void (Dbg_OutputProc) _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:27:3: error: unknown type name 'Dbg_InterProc' 27 | Dbg_InterProc *func; | ^~~~~~~~~~~~~ tcldbg.h:32:3: error: unknown type name 'Dbg_OutputProc' 32 | Dbg_OutputProc *func; | ^~~~~~~~~~~~~~ tcldbg.h:40:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Tcldbg_Init _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ tcldbg.h:42:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void Dbg_On _ANSI_ARGS_((Tcl_Interp *interp, | ^~~~~~~~~~~ tcldbg.h:44:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN void Dbg_Off _ANSI_ARGS_((Tcl_Interp *interp)); | ^~~~~~~~~~~ tcldbg.h:45:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN char **Dbg_ArgcArgv _ANSI_ARGS_((int argc,char *argv[], | ^~~~~~~~~~~ tcldbg.h:47:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN int Dbg_Active _ANSI_ARGS_((Tcl_Interp *interp)); | ^~~~~~~~~~~ tcldbg.h:48:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 48 | EXTERN Dbg_InterStruct Dbg_Interactor _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:52:8: error: unknown type name 'Dbg_IgnoreFuncsProc' 52 | EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_(( | ^~~~~~~~~~~~~~~~~~~ tcldbg.h:52:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:55:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN Dbg_OutputStruct Dbg_Output _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:60:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 60 | EXTERN void Dbg_StdinMode _ANSI_ARGS_((int mode)); | ^~~~~~~~~~~ exp_main_sub.c:52:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | void (*exp_app_exit) _ANSI_ARGS_((Tcl_Interp *)) = 0; | ^~~~~~~~~~~ exp_main_sub.c:53:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 53 | void (*exp_event_exit) _ANSI_ARGS_((Tcl_Interp *)) = 0; | ^~~~~~~~~~~ exp_main_sub.c: In function 'usage': exp_main_sub.c:76:3: error: implicit declaration of function 'expErrorLog' [-Wimplicit-function-declaration] 76 | expErrorLog("usage: expect [-div] [-c cmds] [[-f] cmdfile] [args]\r\n"); | ^~~~~~~~~~~ exp_main_sub.c: In function 'exp_pty_exit_for_tcl': exp_main_sub.c:90:3: error: implicit declaration of function 'exp_pty_exit'; did you mean 'exp_tty_set'? [-Wimplicit-function-declaration] 90 | exp_pty_exit(); | ^~~~~~~~~~~~ | exp_tty_set exp_main_sub.c: In function 'exp_exit_handlers': exp_main_sub.c:124:17: error: implicit declaration of function 'expDiagLogU' [-Wimplicit-function-declaration] 124 | expDiagLogU("onexit handler called recursively - forcing exit\r\n"); | ^~~~~~~~~~~ exp_main_sub.c:127:13: error: 'exp_app_exit' undeclared (first use in this function); did you mean 'did_app_exit'? 127 | if (exp_app_exit) { | ^~~~~~~~~~~~ | did_app_exit exp_main_sub.c:127:13: note: each undeclared identifier is reported only once for each function it appears in exp_main_sub.c:151:9: error: implicit declaration of function 'exp_close_all' [-Wimplicit-function-declaration] 151 | exp_close_all(interp); | ^~~~~~~~~~~~~ exp_main_sub.c: In function 'history_nextid': exp_main_sub.c:162:5: error: 'CONST' undeclared (first use in this function); did you mean 'CONST86'? 162 | CONST char *nextidstr = Tcl_GetVar2(interp,"tcl::history","nextid",0); | ^~~~~ | CONST86 exp_main_sub.c:162:10: error: expected ';' before 'char' 162 | CONST char *nextidstr = Tcl_GetVar2(interp,"tcl::history","nextid",0); | ^~~~~ | ; exp_main_sub.c:163:9: error: 'nextidstr' undeclared (first use in this function); did you mean 'nextid'? 163 | if (nextidstr) { | ^~~~~~~~~ | nextid exp_main_sub.c: In function 'Exp_Prompt1ObjCmd': exp_main_sub.c:183:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'objv' 183 | Tcl_Obj *CONST objv[]; /* Argument objects. */ | ^~~~ exp_main_sub.c:179:1: error: type of 'objv' defaults to 'int' [-Wimplicit-int] 179 | Exp_Prompt1ObjCmd(clientData, interp, objc, objv) | ^~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'Exp_Prompt2ObjCmd': exp_main_sub.c:200:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'objv' 200 | Tcl_Obj *CONST objv[]; | ^~~~ exp_main_sub.c:196:1: error: type of 'objv' defaults to 'int' [-Wimplicit-int] 196 | Exp_Prompt2ObjCmd(clientData, interp, objc, objv) | ^~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'handle_eval_error': exp_main_sub.c:235:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 235 | msg = Tcl_GetVar(interp,"errorInfo",TCL_GLOBAL_ONLY); | ^ exp_main_sub.c:256:9: error: implicit declaration of function 'expErrorLogU' [-Wimplicit-function-declaration] 256 | expErrorLogU(exp_cook(msg,(int *)0)); | ^~~~~~~~~~~~ exp_main_sub.c:256:22: error: implicit declaration of function 'exp_cook' [-Wimplicit-function-declaration] 256 | expErrorLogU(exp_cook(msg,(int *)0)); | ^~~~~~~~ exp_main_sub.c: In function 'exp_interpreter': exp_main_sub.c:283:23: error: implicit declaration of function 'expStdinoutGet' [-Wimplicit-function-declaration] 283 | ExpState *esPtr = expStdinoutGet(); | ^~~~~~~~~~~~~~ exp_main_sub.c:283:23: error: initialization of 'ExpState *' from 'int' makes pointer from integer without a cast [-Wint-conversion] exp_main_sub.c:297:38: error: invalid type argument of '->' (have 'int') 297 | outChannel = expStdinoutGet()->channel; | ^~ exp_main_sub.c:312:17: error: implicit declaration of function 'expStdoutLogU' [-Wimplicit-function-declaration] 312 | expStdoutLogU(Tcl_GetStringResult(interp),1); | ^~~~~~~~~~~~~ exp_main_sub.c:314:18: error: implicit declaration of function 'expStdoutLog' [-Wimplicit-function-declaration] 314 | else expStdoutLog(1,prompt1_default,iPtr->numLevels,history_nextid(interp)); | ^~~~~~~~~~~~ exp_main_sub.c:324:16: error: implicit declaration of function 'exp_get_next_event' [-Wimplicit-function-declaration] 324 | code = exp_get_next_event(interp,&esPtr,1,&esPtr,EXP_TIME_INFINITY, | ^~~~~~~~~~~~~~~~~~ exp_main_sub.c:329:41: error: invalid type argument of '->' (have 'int') 329 | inChannel = expStdinoutGet()->channel; | ^~ exp_main_sub.c:353:9: error: implicit declaration of function 'expDiagWriteObj' [-Wimplicit-function-declaration] 353 | expDiagWriteObj(commandPtr); | ^~~~~~~~~~~~~~~ exp_main_sub.c:355:13: error: implicit declaration of function 'expLogChannelGet' [-Wimplicit-function-declaration] 355 | if (expLogChannelGet()) { | ^~~~~~~~~~~~~~~~ exp_main_sub.c:356:26: error: passing argument 1 of 'tclStubsPtr->tcl_WriteObj' makes pointer from integer without a cast [-Wint-conversion] 356 | Tcl_WriteObj(expLogChannelGet(),commandPtr); | ^~~~~~~~~~~~~~~~~~ | | | int exp_main_sub.c:356:26: note: expected 'Tcl_Channel' {aka 'struct Tcl_Channel_ *'} but argument is of type 'int' exp_main_sub.c: In function 'Exp_ExpVersionObjCmd': exp_main_sub.c:436:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'objv' 436 | Tcl_Obj *CONST objv[]; /* Argument objects. */ | ^~~~ exp_main_sub.c:432:1: error: type of 'objv' defaults to 'int' [-Wimplicit-int] 432 | Exp_ExpVersionObjCmd(clientData, interp, objc, objv) | ^~~~~~~~~~~~~~~~~~~~ exp_main_sub.c:446:17: error: implicit declaration of function 'exp_error'; did you mean 'perror'? [-Wimplicit-function-declaration] 446 | exp_error(interp,"usage: expect_version [[-exit] version]"); | ^~~~~~~~~ | perror In file included from /tools_loongarch64/include/tcl.h:2442, from exp_main_sub.c:19: exp_main_sub.c:450:39: error: subscripted value is neither array nor pointer nor vector 450 | user_version = Tcl_GetString (objv[objc==2?1:2]); | ^ exp_main_sub.c: In function 'Expect_Init': exp_main_sub.c:589:9: error: implicit declaration of function 'exp_init_pty'; did you mean 'exp_init_pty_exit'? [-Wimplicit-function-declaration] 589 | exp_init_pty(); | ^~~~~~~~~~~~ | exp_init_pty_exit exp_main_sub.c:591:9: error: implicit declaration of function 'exp_init_tty'; did you mean 'exp_init_pty_exit'? [-Wimplicit-function-declaration] 591 | exp_init_tty(); /* do this only now that we have looked at */ | ^~~~~~~~~~~~ | exp_init_pty_exit exp_main_sub.c:593:9: error: implicit declaration of function 'exp_init_stdio'; did you mean 'exp_init_pty_exit'? [-Wimplicit-function-declaration] 593 | exp_init_stdio(); | ^~~~~~~~~~~~~~ | exp_init_pty_exit exp_main_sub.c:594:9: error: implicit declaration of function 'exp_init_sig' [-Wimplicit-function-declaration] 594 | exp_init_sig(); | ^~~~~~~~~~~~ exp_main_sub.c:595:9: error: implicit declaration of function 'exp_init_event'; did you mean 'exp_init_pty_exit'? [-Wimplicit-function-declaration] 595 | exp_init_event(); | ^~~~~~~~~~~~~~ | exp_init_pty_exit exp_main_sub.c:596:9: error: implicit declaration of function 'exp_init_trap' [-Wimplicit-function-declaration] 596 | exp_init_trap(); | ^~~~~~~~~~~~~ exp_main_sub.c:597:9: error: implicit declaration of function 'exp_init_unit_random' [-Wimplicit-function-declaration] 597 | exp_init_unit_random(); | ^~~~~~~~~~~~~~~~~~~~ exp_main_sub.c:598:9: error: implicit declaration of function 'exp_init_spawn_ids' [-Wimplicit-function-declaration] 598 | exp_init_spawn_ids(interp); | ^~~~~~~~~~~~~~~~~~ exp_main_sub.c:599:9: error: implicit declaration of function 'expChannelInit' [-Wimplicit-function-declaration] 599 | expChannelInit(); | ^~~~~~~~~~~~~~ exp_main_sub.c:600:9: error: implicit declaration of function 'expDiagInit' [-Wimplicit-function-declaration] 600 | expDiagInit(); | ^~~~~~~~~~~ exp_main_sub.c:601:9: error: implicit declaration of function 'expLogInit'; did you mean 'Exp_Init'? [-Wimplicit-function-declaration] 601 | expLogInit(); | ^~~~~~~~~~ | Exp_Init exp_main_sub.c:602:9: error: implicit declaration of function 'expDiagLogPtrSet' [-Wimplicit-function-declaration] 602 | expDiagLogPtrSet(expDiagLogU); | ^~~~~~~~~~~~~~~~ exp_main_sub.c:602:26: error: 'expDiagLogU' undeclared (first use in this function) 602 | expDiagLogPtrSet(expDiagLogU); | ^~~~~~~~~~~ exp_main_sub.c:603:9: error: implicit declaration of function 'expErrnoMsgSet' [-Wimplicit-function-declaration] 603 | expErrnoMsgSet(Tcl_ErrnoMsg); | ^~~~~~~~~~~~~~ exp_main_sub.c:614:5: error: implicit declaration of function 'exp_init_most_cmds' [-Wimplicit-function-declaration] 614 | exp_init_most_cmds(interp); /* add misc cmds to interpreter */ | ^~~~~~~~~~~~~~~~~~ exp_main_sub.c:615:5: error: implicit declaration of function 'exp_init_expect_cmds' [-Wimplicit-function-declaration] 615 | exp_init_expect_cmds(interp); /* add expect cmds to interpreter */ | ^~~~~~~~~~~~~~~~~~~~ exp_main_sub.c:616:5: error: implicit declaration of function 'exp_init_main_cmds' [-Wimplicit-function-declaration] 616 | exp_init_main_cmds(interp); /* add main cmds to interpreter */ | ^~~~~~~~~~~~~~~~~~ exp_main_sub.c:617:5: error: implicit declaration of function 'exp_init_trap_cmds' [-Wimplicit-function-declaration] 617 | exp_init_trap_cmds(interp); /* add trap cmds to interpreter */ | ^~~~~~~~~~~~~~~~~~ exp_main_sub.c:618:5: error: implicit declaration of function 'exp_init_tty_cmds'; did you mean 'exp_init_pty_exit'? [-Wimplicit-function-declaration] 618 | exp_init_tty_cmds(interp); /* add tty cmds to interpreter */ | ^~~~~~~~~~~~~~~~~ | exp_init_pty_exit exp_main_sub.c:619:5: error: implicit declaration of function 'exp_init_interact_cmds' [-Wimplicit-function-declaration] 619 | exp_init_interact_cmds(interp); /* add interact cmds to interpreter */ | ^~~~~~~~~~~~~~~~~~~~~~ exp_main_sub.c:622:5: error: implicit declaration of function 'exp_init_spawn_id_vars' [-Wimplicit-function-declaration] 622 | exp_init_spawn_id_vars(interp); | ^~~~~~~~~~~~~~~~~~~~~~ exp_main_sub.c:623:5: error: implicit declaration of function 'expExpectVarsInit' [-Wimplicit-function-declaration] 623 | expExpectVarsInit(); | ^~~~~~~~~~~~~~~~~ exp_main_sub.c:647:5: error: implicit declaration of function 'Dbg_IgnoreFuncs' [-Wimplicit-function-declaration] 647 | Dbg_IgnoreFuncs(interp,ignore_procs); | ^~~~~~~~~~~~~~~ exp_main_sub.c: In function 'exp_parse_argv': exp_main_sub.c:679:9: error: implicit declaration of function 'Dbg_ArgcArgv' [-Wimplicit-function-declaration] 679 | Dbg_ArgcArgv(argc,argv,1); | ^~~~~~~~~~~~ exp_main_sub.c:720:27: error: implicit declaration of function 'expDiagToStderrSet' [-Wimplicit-function-declaration] 720 | case 'd': expDiagToStderrSet(TRUE); | ^~~~~~~~~~~~~~~~~~ exp_main_sub.c:721:25: error: implicit declaration of function 'expDiagLog' [-Wimplicit-function-declaration] 721 | expDiagLog("expect version %s\r\n",exp_version); | ^~~~~~~~~~ exp_main_sub.c:743:38: error: implicit declaration of function 'Dbg_On' [-Wimplicit-function-declaration] 743 | if (rc == 1) Dbg_On(interp,0); | ^~~~~~ exp_main_sub.c:817:41: error: implicit declaration of function 'expCloseOnExec' [-Wimplicit-function-declaration] 817 | expCloseOnExec(fileno(exp_cmdfile)); | ^~~~~~~~~~~~~~ exp_main_sub.c:819:41: error: 'CONST' undeclared (first use in this function); did you mean 'CONST86'? 819 | CONST char *msg; | ^~~~~ | CONST86 exp_main_sub.c:819:46: error: expected ';' before 'char' 819 | CONST char *msg; | ^~~~~ | ; exp_main_sub.c:822:49: error: 'msg' undeclared (first use in this function) 822 | msg = "could not read - odd file name?"; | ^~~ exp_main_sub.c:864:42: error: passing argument 2 of 'tclStubsPtr->tcl_Merge' from incompatible pointer type [-Wincompatible-pointer-types] 864 | args = Tcl_Merge(argc-optind,argv+optind); | ~~~~^~~~~~~ | | | char ** exp_main_sub.c:864:42: note: expected 'const char * const*' but argument is of type 'char **' exp_main_sub.c:871:9: error: implicit declaration of function 'exp_interpret_rcfiles'; did you mean 'exp_interpreter'? [-Wimplicit-function-declaration] 871 | exp_interpret_rcfiles(interp,my_rc,sys_rc); | ^~~~~~~~~~~~~~~~~~~~~ | exp_interpreter exp_main_sub.c: At top level: exp_main_sub.c:897:1: warning: conflicting types for 'exp_interpret_rcfiles'; have 'void()' 897 | exp_interpret_rcfiles(interp,my_rc,sys_rc) | ^~~~~~~~~~~~~~~~~~~~~ exp_main_sub.c:871:9: note: previous implicit declaration of 'exp_interpret_rcfiles' with type 'void()' 871 | exp_interpret_rcfiles(interp,my_rc,sys_rc); | ^~~~~~~~~~~~~~~~~~~~~ exp_main_sub.c:1011:1: warning: conflicting types for 'exp_init_main_cmds'; have 'void()' 1011 | exp_init_main_cmds(interp) | ^~~~~~~~~~~~~~~~~~ exp_main_sub.c:616:5: note: previous implicit declaration of 'exp_init_main_cmds' with type 'void()' 616 | exp_init_main_cmds(interp); /* add main cmds to interpreter */ | ^~~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'exp_init_main_cmds': exp_main_sub.c:1014:9: error: implicit declaration of function 'exp_create_commands'; did you mean 'Tcl_CreateCommand'? [-Wimplicit-function-declaration] 1014 | exp_create_commands(interp,cmd_data); | ^~~~~~~~~~~~~~~~~~~ | Tcl_CreateCommand make[1]: *** [Makefile:318: exp_main_sub.o] Error 1 In file included from exp_prog.h:13, from expect.c:33: expect_tcl.h:40:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Expect_Init _ANSI_ARGS_((Tcl_Interp *)); /* for Tcl_AppInit apps */ | ^~~~~~~~~~~ expect_tcl.h:41:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void exp_parse_argv _ANSI_ARGS_((Tcl_Interp *,int argc,char **argv)); | ^~~~~~~~~~~ expect_tcl.h:42:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int exp_interpreter _ANSI_ARGS_((Tcl_Interp *,Tcl_Obj *)); | ^~~~~~~~~~~ expect_tcl.h:43:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 43 | EXTERN int exp_interpret_cmdfile _ANSI_ARGS_((Tcl_Interp *,FILE *)); | ^~~~~~~~~~~ expect_tcl.h:44:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_interpret_cmdfilename _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ expect_tcl.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void exp_interpret_rcfiles _ANSI_ARGS_((Tcl_Interp *,int my_rc,int sys_rc)); | ^~~~~~~~~~~ expect_tcl.h:47:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN char * exp_cook _ANSI_ARGS_((char *s,int *len)); | ^~~~~~~~~~~ expect_tcl.h:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 49 | EXTERN void expCloseOnExec _ANSI_ARGS_((int)); | ^~~~~~~~~~~ expect_tcl.h:52:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN void (*exp_app_exit)_ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ expect_tcl.h:53:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 53 | EXTERN void exp_exit_handlers _ANSI_ARGS_((ClientData)); | ^~~~~~~~~~~ expect_tcl.h:55:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN void exp_error _ANSI_ARGS_(TCL_VARARGS(Tcl_Interp *,interp)); | ^~~~~~~~~~~ In file included from exp_prog.h:14: exp_int.h:24:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | void exp_console_set _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_int.h:25:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | void expDiagLogPtrSet _ANSI_ARGS_((void (*)_ANSI_ARGS_((char *)))); | ^~~~~~~~~~~ exp_int.h:26:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 26 | void expDiagLogPtr _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_int.h:27:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | void expDiagLogPtrX _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_int.h:28:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | void expDiagLogPtrStr _ANSI_ARGS_((char *,char *)); | ^~~~~~~~~~~ exp_int.h:29:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | void expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *)); | ^~~~~~~~~~~ exp_int.h:30:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | void expErrnoMsgSet _ANSI_ARGS_((char * (*) _ANSI_ARGS_((int)))); | ^~~~~~~~~~~ exp_int.h:31:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | char * expErrnoMsg _ANSI_ARGS_((int)); | ^~~~~~~~~~~ In file included from expect.c:34: exp_command.h:30:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN char * exp_get_var _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:37:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN int exp_one_arg_braced _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_command.h:39:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN Tcl_Obj* exp_eval_with_one_arg _ANSI_ARGS_((ClientData, | ^~~~~~~~~~~ exp_command.h:42:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void exp_lowmemcpy _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:44:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_flageq_code _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:212:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 212 | EXTERN void expAdjust _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:213:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 213 | EXTERN int expWriteChars _ANSI_ARGS_((ExpState *,char *,int)); | ^~~~~~~~~~~ exp_command.h:214:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 214 | EXTERN int expWriteCharsUni _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_command.h:215:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 215 | EXTERN void exp_buffer_shuffle _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,char *,char *)); | ^~~~~~~~~~~ exp_command.h:216:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 216 | EXTERN int exp_close _ANSI_ARGS_((Tcl_Interp *,ExpState *)); | ^~~~~~~~~~~ exp_command.h:217:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 217 | EXTERN void exp_close_all _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:219:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 219 | _ANSI_ARGS_((Tcl_Interp *,int)); | ^~~~~~~~~~~ exp_command.h:220:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 220 | EXTERN void exp_trap_on _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:221:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 221 | EXTERN int exp_trap_off _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_command.h:234:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 234 | EXTERN void exp_init_pty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:235:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 235 | EXTERN void exp_pty_exit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:236:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 236 | EXTERN void exp_init_tty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:237:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 237 | EXTERN void exp_init_stdio _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:239:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 239 | EXTERN void exp_init_spawn_ids _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:240:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 240 | EXTERN void exp_init_spawn_id_vars _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:241:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 241 | EXTERN void exp_init_trap _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:242:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 242 | EXTERN void exp_init_send _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:243:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 243 | EXTERN void exp_init_unit_random _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:244:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 244 | EXTERN void exp_init_sig _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:245:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 245 | EXTERN void expChannelInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:246:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 246 | EXTERN int expChannelCountGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:247:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 247 | EXTERN int expChannelStillAlive _ANSI_ARGS_((ExpState *, char *)); | ^~~~~~~~~~~ exp_command.h:249:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 249 | EXTERN int exp_tcl2_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:250:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 250 | EXTERN int exp_2tcl_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:252:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 252 | EXTERN void exp_rearm_sigchld _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:253:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 253 | EXTERN int exp_string_to_signal _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:289:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 289 | EXTERN struct exp_i * exp_new_i_complex _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:291:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 291 | EXTERN struct exp_i * exp_new_i_simple _ANSI_ARGS_((ExpState *,int)); | ^~~~~~~~~~~ exp_command.h:292:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 292 | EXTERN struct exp_state_list *exp_new_state _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:293:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 293 | EXTERN void exp_free_i _ANSI_ARGS_((Tcl_Interp *,struct exp_i *, | ^~~~~~~~~~~ exp_command.h:295:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 295 | EXTERN void exp_free_state _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:296:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 296 | EXTERN void exp_free_state_single _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:297:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 297 | EXTERN int exp_i_update _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:317:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 317 | EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:319:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 319 | EXTERN void exp_init_main_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:320:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 320 | EXTERN void exp_init_expect_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:321:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 321 | EXTERN void exp_init_most_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:322:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 322 | EXTERN void exp_init_trap_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:323:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 323 | EXTERN void exp_init_interact_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:324:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 324 | EXTERN void exp_init_tty_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:326:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 326 | EXTERN ExpState * expStateCheck _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:327:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 327 | EXTERN ExpState * expStateCurrent _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:328:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 328 | EXTERN ExpState * expStateFromChannelName _ANSI_ARGS_((Tcl_Interp *,char *,int,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:329:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 329 | EXTERN void expStateFree _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:331:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 331 | EXTERN ExpState * expCreateChannel _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:332:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 332 | EXTERN ExpState * expWaitOnAny _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:333:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 333 | EXTERN ExpState * expWaitOnOne _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:334:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 334 | EXTERN void expExpectVarsInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:335:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 335 | EXTERN int expStateAnyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:336:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 336 | EXTERN int expDevttyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:337:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 337 | EXTERN int expStdinoutIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:338:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 338 | EXTERN ExpState * expStdinoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:339:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 339 | EXTERN ExpState * expDevttyGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ In file included from expect.c:35: exp_log.h:3:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | extern void expErrorLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:4:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | extern void expErrorLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:6:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | extern void expStdoutLog _ANSI_ARGS_(TCL_VARARGS(int,force_stdout)); | ^~~~~~~~~~~ exp_log.h:7:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 7 | extern void expStdoutLogU _ANSI_ARGS_((char *buf, int force_stdout)); | ^~~~~~~~~~~ exp_log.h:9:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 9 | EXTERN void expDiagInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:10:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | EXTERN int expDiagChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:11:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | EXTERN Tcl_Channel expDiagChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:12:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | EXTERN void expDiagChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:13:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 13 | EXTERN char * expDiagFilename _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:14:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | EXTERN int expDiagToStderrGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:15:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | EXTERN void expDiagToStderrSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:16:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | EXTERN void expDiagWriteBytes _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:17:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | EXTERN void expDiagWriteChars _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:18:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | EXTERN void expDiagWriteObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:19:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 19 | EXTERN void expDiagLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:20:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | EXTERN void expDiagLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:22:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | EXTERN char * expPrintify _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:23:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 23 | EXTERN char * expPrintifyUni _ANSI_ARGS_((Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:24:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | EXTERN char * expPrintifyObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:25:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | EXTERN void expPrintf _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:27:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | EXTERN void expLogInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:28:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | EXTERN int expLogChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *,int)); | ^~~~~~~~~~~ exp_log.h:29:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | EXTERN Tcl_Channel expLogChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:30:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN int expLogChannelSet _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:31:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | EXTERN void expLogChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:32:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 32 | EXTERN char * expLogFilenameGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:33:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 33 | EXTERN void expLogAppendSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:34:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 34 | EXTERN int expLogAppendGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:35:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 35 | EXTERN void expLogLeaveOpenSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:36:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 36 | EXTERN int expLogLeaveOpenGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:37:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN void expLogAllSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:38:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 38 | EXTERN int expLogAllGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:39:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN void expLogToStdoutSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:40:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int expLogToStdoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:41:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void expLogDiagU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:42:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int expWriteBytesAndLogIfTtyU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:44:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int expLogUserGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void expLogUserSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:47:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN void expLogInteractionU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ In file included from expect.c:36: exp_event.h:3:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | int exp_get_next_event _ANSI_ARGS_((Tcl_Interp *,ExpState **, int, ExpState **, int, int)); | ^~~~~~~~~~~ exp_event.h:4:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | int exp_get_next_event_info _ANSI_ARGS_((Tcl_Interp *, ExpState *)); | ^~~~~~~~~~~ exp_event.h:5:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 5 | int exp_dsleep _ANSI_ARGS_((Tcl_Interp *, double)); | ^~~~~~~~~~~ exp_event.h:6:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | void exp_init_event _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_event.h:8:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 8 | extern void (*exp_event_exit) _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_event.h:10:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | void exp_event_disarm _ANSI_ARGS_((ExpState *,Tcl_FileProc *)); | ^~~~~~~~~~~ exp_event.h:11:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | void exp_event_disarm_bg _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:12:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | void exp_event_disarm_fg _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:14:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | void exp_arm_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:15:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | void exp_disarm_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:16:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | void exp_disarm_background_channelhandler_force _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:17:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | void exp_unblock_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:18:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | void exp_block_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:20:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | void exp_background_channelhandler _ANSI_ARGS_((ClientData,int)); | ^~~~~~~~~~~ In file included from expect.c:38: exp_tstamp.h:1:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 1 | EXTERN void exp_timestamp _ANSI_ARGS_((Tcl_Interp *,time_t *, | ^~~~~~~~~~~ In file included from expect.c:41: tcldbg.h:17:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | typedef int (Dbg_InterProc) _ANSI_ARGS_((Tcl_Interp *interp, ClientData data)); | ^~~~~~~~~~~ tcldbg.h:18:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | typedef int (Dbg_IgnoreFuncsProc) _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:21:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 21 | typedef void (Dbg_OutputProc) _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:27:3: error: unknown type name 'Dbg_InterProc' 27 | Dbg_InterProc *func; | ^~~~~~~~~~~~~ tcldbg.h:32:3: error: unknown type name 'Dbg_OutputProc' 32 | Dbg_OutputProc *func; | ^~~~~~~~~~~~~~ tcldbg.h:40:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Tcldbg_Init _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ tcldbg.h:42:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void Dbg_On _ANSI_ARGS_((Tcl_Interp *interp, | ^~~~~~~~~~~ tcldbg.h:44:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN void Dbg_Off _ANSI_ARGS_((Tcl_Interp *interp)); | ^~~~~~~~~~~ tcldbg.h:45:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN char **Dbg_ArgcArgv _ANSI_ARGS_((int argc,char *argv[], | ^~~~~~~~~~~ tcldbg.h:47:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN int Dbg_Active _ANSI_ARGS_((Tcl_Interp *interp)); | ^~~~~~~~~~~ tcldbg.h:48:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 48 | EXTERN Dbg_InterStruct Dbg_Interactor _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:52:8: error: unknown type name 'Dbg_IgnoreFuncsProc' 52 | EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_(( | ^~~~~~~~~~~~~~~~~~~ tcldbg.h:52:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:55:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN Dbg_OutputStruct Dbg_Output _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:60:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 60 | EXTERN void Dbg_StdinMode _ANSI_ARGS_((int mode)); | ^~~~~~~~~~~ In file included from expect.c:44: retoglob.c:11:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | ExpChopNested _ANSI_ARGS_ ((Tcl_UniChar** xstr, | ^~~~~~~~~~~ retoglob.c:17:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | ExpLiteral _ANSI_ARGS_ ((Tcl_UniChar* nexto, | ^~~~~~~~~~~ retoglob.c:22:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | ExpCollapseStar _ANSI_ARGS_ ((Tcl_UniChar* src, | ^~~~~~~~~~~ retoglob.c:25:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | ExpCollapseQForward _ANSI_ARGS_ ((Tcl_UniChar* src, | ^~~~~~~~~~~ retoglob.c:29:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | ExpCollapseQBack _ANSI_ARGS_ ((Tcl_UniChar* src, | ^~~~~~~~~~~ retoglob.c:33:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 33 | ExpBackslash _ANSI_ARGS_ ((char prefix, | ^~~~~~~~~~~ retoglob.c:38:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 38 | ExpCountStar _ANSI_ARGS_ ((Tcl_UniChar* src, Tcl_UniChar* last)); | ^~~~~~~~~~~ retoglob.c: In function 'exp_retoglob': retoglob.c:103:78: error: implicit declaration of function 'Tcl_UniCharNcmp'; did you mean 'TclUniCharNcmp'? [-Wimplicit-function-declaration] 103 | #define MATCH(lit) ((strlen >= (sizeof (lit)/sizeof (Tcl_UniChar))) && (0 == Tcl_UniCharNcmp (str,(lit),sizeof(lit)/sizeof (Tcl_UniChar)))) | ^~~~~~~~~~~~~~~ retoglob.c:148:7: note: in expansion of macro 'MATCH' 148 | if (MATCH (litprefix)) { | ^~~~~ retoglob.c:150:13: error: implicit declaration of function 'ExpLiteral' [-Wimplicit-function-declaration] 150 | nexto = ExpLiteral (nexto, str, strlen); | ^~~~~~~~~~ retoglob.c:150:11: error: assignment to 'Tcl_UniChar *' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 150 | nexto = ExpLiteral (nexto, str, strlen); | ^ retoglob.c:206:17: error: assignment to 'Tcl_UniChar *' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 206 | nexto = ExpLiteral (nexto, str, strlen); | ^ retoglob.c:249:9: error: implicit declaration of function 'ExpChopNested' [-Wimplicit-function-declaration] 249 | ExpChopNested (&str, &strlen, '(', ')'); | ^~~~~~~~~~~~~ retoglob.c:386:16: error: implicit declaration of function 'ExpBackslash' [-Wimplicit-function-declaration] 386 | ch = ExpBackslash ('x',mark,str-mark); | ^~~~~~~~~~~~ retoglob.c:460:11: error: implicit declaration of function 'ExpCollapseQForward' [-Wimplicit-function-declaration] 460 | nexto = ExpCollapseQForward (out,nexto); | ^~~~~~~~~~~~~~~~~~~ retoglob.c:460:9: error: assignment to 'Tcl_UniChar *' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 460 | nexto = ExpCollapseQForward (out,nexto); | ^ retoglob.c:464:11: error: implicit declaration of function 'ExpCollapseQBack' [-Wimplicit-function-declaration] 464 | nexto = ExpCollapseQBack (out,nexto); | ^~~~~~~~~~~~~~~~ retoglob.c:464:9: error: assignment to 'Tcl_UniChar *' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 464 | nexto = ExpCollapseQBack (out,nexto); | ^ retoglob.c:468:11: error: implicit declaration of function 'ExpCollapseStar' [-Wimplicit-function-declaration] 468 | nexto = ExpCollapseStar (out,nexto); | ^~~~~~~~~~~~~~~ retoglob.c:468:9: error: assignment to 'Tcl_UniChar *' {aka 'int *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 468 | nexto = ExpCollapseStar (out,nexto); | ^ retoglob.c:476:7: error: implicit declaration of function 'ExpCountStar' [-Wimplicit-function-declaration] 476 | if (ExpCountStar (out,nexto) > 2) { | ^~~~~~~~~~~~ retoglob.c: At top level: retoglob.c:519:1: warning: conflicting types for 'ExpChopNested'; have 'void()' 519 | ExpChopNested (xstr,xstrlen, open, close) | ^~~~~~~~~~~~~ retoglob.c:519:1: error: static declaration of 'ExpChopNested' follows non-static declaration retoglob.c:249:9: note: previous implicit declaration of 'ExpChopNested' with type 'void()' 249 | ExpChopNested (&str, &strlen, '(', ')'); | ^~~~~~~~~~~~~ retoglob.c:548:1: error: conflicting types for 'ExpLiteral'; have 'Tcl_UniChar *()' {aka 'int *()'} 548 | ExpLiteral (nexto, str, strlen) | ^~~~~~~~~~ retoglob.c:150:13: note: previous implicit declaration of 'ExpLiteral' with type 'int()' 150 | nexto = ExpLiteral (nexto, str, strlen); | ^~~~~~~~~~ retoglob.c:570:1: error: static declaration of 'ExpBackslash' follows non-static declaration 570 | ExpBackslash (prefix, str, strlen) | ^~~~~~~~~~~~ retoglob.c:386:16: note: previous implicit declaration of 'ExpBackslash' with type 'int()' 386 | ch = ExpBackslash ('x',mark,str-mark); | ^~~~~~~~~~~~ retoglob.c:597:1: error: conflicting types for 'ExpCollapseStar'; have 'Tcl_UniChar *()' {aka 'int *()'} 597 | ExpCollapseStar (src, last) | ^~~~~~~~~~~~~~~ retoglob.c:468:11: note: previous implicit declaration of 'ExpCollapseStar' with type 'int()' 468 | nexto = ExpCollapseStar (out,nexto); | ^~~~~~~~~~~~~~~ retoglob.c:644:1: error: conflicting types for 'ExpCollapseQForward'; have 'Tcl_UniChar *()' {aka 'int *()'} 644 | ExpCollapseQForward (src, last) | ^~~~~~~~~~~~~~~~~~~ retoglob.c:460:11: note: previous implicit declaration of 'ExpCollapseQForward' with type 'int()' 460 | nexto = ExpCollapseQForward (out,nexto); | ^~~~~~~~~~~~~~~~~~~ retoglob.c:692:1: error: conflicting types for 'ExpCollapseQBack'; have 'Tcl_UniChar *()' {aka 'int *()'} 692 | ExpCollapseQBack (src, last) | ^~~~~~~~~~~~~~~~ retoglob.c:464:11: note: previous implicit declaration of 'ExpCollapseQBack' with type 'int()' 464 | nexto = ExpCollapseQBack (out,nexto); | ^~~~~~~~~~~~~~~~ retoglob.c:734:1: error: static declaration of 'ExpCountStar' follows non-static declaration 734 | ExpCountStar (src, last) | ^~~~~~~~~~~~ retoglob.c:476:7: note: previous implicit declaration of 'ExpCountStar' with type 'int()' 476 | if (ExpCountStar (out,nexto) > 2) { | ^~~~~~~~~~~~ expect.c:58:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 58 | extern int Exp_StringCaseMatch _ANSI_ARGS_((Tcl_UniChar *string, int strlen, | ^~~~~~~~~~~ expect.c: In function 'free_ecase': expect.c:195:13: error: implicit declaration of function 'exp_free_i' [-Wimplicit-function-declaration] 195 | exp_free_i(interp,ec->i_list,exp_indirect_update2); | ^~~~~~~~~~ expect.c: At top level: expect.c:279:20: error: expected ';', ',' or ')' before 'objv' 279 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c:412:20: error: expected ';', ',' or ')' before 'objv' 412 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c: In function 'eval_case_string': expect.c:842:9: error: implicit declaration of function 'expDiagLog' [-Wimplicit-function-declaration] 842 | expDiagLog("\r\nexpect%s: does \"",suffix); | ^~~~~~~~~~ expect.c:843:9: error: implicit declaration of function 'expDiagLogU' [-Wimplicit-function-declaration] 843 | expDiagLogU(expPrintifyUni(str,numchars)); | ^~~~~~~~~~~ expect.c:843:21: error: implicit declaration of function 'expPrintifyUni' [-Wimplicit-function-declaration] 843 | expDiagLogU(expPrintifyUni(str,numchars)); | ^~~~~~~~~~~~~~ expect.c:851:21: error: implicit declaration of function 'expPrintify' [-Wimplicit-function-declaration] 851 | expDiagLogU(expPrintify(Tcl_GetString(e->pat))); | ^~~~~~~~~~~ expect.c:856:62: error: passing argument 2 of 'tclStubsPtr->tcl_GetUnicodeFromObj' from incompatible pointer type [-Wincompatible-pointer-types] 856 | Tcl_UniChar* pat = Tcl_GetUnicodeFromObj(e->gate,&plen); | ^~~~~ | | | int * expect.c:856:62: note: expected 'Tcl_Size *' {aka 'long int *'} but argument is of type 'int *' expect.c:862:25: error: implicit declaration of function 'Exp_StringCaseMatch'; did you mean 'Tcl_StringCaseMatch'? [-Wimplicit-function-declaration] 862 | globmatch = Exp_StringCaseMatch(str, numchars, pat, plen, | ^~~~~~~~~~~~~~~~~~~ | Tcl_StringCaseMatch expect.c:919:61: error: passing argument 2 of 'tclStubsPtr->tcl_GetUnicodeFromObj' from incompatible pointer type [-Wincompatible-pointer-types] 919 | Tcl_UniChar* pat = Tcl_GetUnicodeFromObj(e->pat,&plen); | ^~~~~ | | | int * expect.c:919:61: note: expected 'Tcl_Size *' {aka 'long int *'} but argument is of type 'int *' expect.c:936:50: error: passing argument 2 of 'tclStubsPtr->tcl_GetStringFromObj' from incompatible pointer type [-Wincompatible-pointer-types] 936 | char *pat = Tcl_GetStringFromObj(e->pat, &patLength); | ^~~~~~~~~~ | | | int * expect.c:936:50: note: expected 'Tcl_Size *' {aka 'long int *'} but argument is of type 'int *' expect.c:961:9: error: unknown type name 'CONST'; did you mean 'CONST86'? 961 | CONST Tcl_UniChar *p; | ^~~~~ | CONST86 expect.c:961:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 961 | CONST Tcl_UniChar *p; | ^ expect.c:963:9: error: 'p' undeclared (first use in this function) 963 | p = string_first_char (str, 0); /* NEW function in this file, see above */ | ^ expect.c:963:9: note: each undeclared identifier is reported only once for each function it appears in expect.c: In function 'eval_cases': expect.c:1033:25: error: implicit declaration of function 'expStateAnyIs' [-Wimplicit-function-declaration] 1033 | if (expStateAnyIs(em) || em == esPtr) { | ^~~~~~~~~~~~~ expect.c: In function 'ecmd_remove_state': expect.c:1164:17: error: implicit declaration of function 'exp_free_state_single' [-Wimplicit-function-declaration] 1164 | exp_free_state_single(tmp); | ^~~~~~~~~~~~~~~~~~~~~ expect.c:1170:25: error: implicit declaration of function 'exp_disarm_background_channelhandler' [-Wimplicit-function-declaration] 1170 | exp_disarm_background_channelhandler(esPtr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ expect.c: In function 'exp_ecmd_remove_state_direct_and_indirect': expect.c:1199:9: error: implicit declaration of function 'exp_disarm_background_channelhandler_force' [-Wimplicit-function-declaration] 1199 | exp_disarm_background_channelhandler_force(esPtr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ expect.c: In function 'state_list_arm': expect.c:1214:13: error: implicit declaration of function 'exp_arm_background_channelhandler'; did you mean 'exp_background_channelhandlers_run_all'? [-Wimplicit-function-declaration] 1214 | exp_arm_background_channelhandler(esPtr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | exp_background_channelhandlers_run_all expect.c: At top level: expect.c:1300:20: error: expected ';', ',' or ')' before 'objv' 1300 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c:1388:20: error: expected ';', ',' or ')' before 'objv' 1388 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c: In function 'expIRead': expect.c:1770:9: error: implicit declaration of function 'exp_buffer_shuffle' [-Wimplicit-function-declaration] 1770 | exp_buffer_shuffle(interp,esPtr,save_flags,EXPECT_OUT,"expect"); | ^~~~~~~~~~~~~~~~~~ expect.c:1765:9: warning: variable 'size' set but not used [-Wunused-but-set-variable] 1765 | int size; | ^~~~ expect.c: In function 'expRead': expect.c:1851:14: error: implicit declaration of function 'exp_get_next_event_info' [-Wimplicit-function-declaration] 1851 | cc = exp_get_next_event_info(interp,*esPtrOut); | ^~~~~~~~~~~~~~~~~~~~~~~ expect.c:1854:14: error: implicit declaration of function 'exp_get_next_event' [-Wimplicit-function-declaration] 1854 | cc = exp_get_next_event(interp,esPtrs,esPtrsMax,esPtrOut,timeout,key); | ^~~~~~~~~~~~~~~~~~ expect.c:1883:17: error: implicit declaration of function 'exp_error'; did you mean 'perror'? [-Wimplicit-function-declaration] 1883 | exp_error(interp,"bad spawn_id (process died earlier?)"); | ^~~~~~~~~ | perror expect.c:1888:17: error: implicit declaration of function 'exp_close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 1888 | exp_close(interp,esPtr); | ^~~~~~~~~ | pclose expect.c:1916:9: error: implicit declaration of function 'expLogInteractionU' [-Wimplicit-function-declaration] 1916 | expLogInteractionU(esPtr,esPtr->input.buffer + esPtr->printed, write_count); | ^~~~~~~~~~~~~~~~~~ expect.c: At top level: expect.c:1932:1: warning: conflicting types for 'exp_buffer_shuffle'; have 'void(Tcl_Interp *, ExpState *, int, char *, char *)' 1932 | exp_buffer_shuffle( /* INTL */ | ^~~~~~~~~~~~~~~~~~ expect.c:1770:9: note: previous implicit declaration of 'exp_buffer_shuffle' with type 'void(Tcl_Interp *, ExpState *, int, char *, char *)' 1770 | exp_buffer_shuffle(interp,esPtr,save_flags,EXPECT_OUT,"expect"); | ^~~~~~~~~~~~~~~~~~ expect.c: In function 'exp_get_var': expect.c:2052:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2052 | if (NULL != (val = Tcl_GetVar(interp,var,0 /* local */))) | ^ expect.c:2054:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 2054 | return(Tcl_GetVar(interp,var,TCL_GLOBAL_ONLY)); | ^~~~~~~~~~ expect.c: In function 'get_timeout': expect.c:2061:5: error: 'CONST' undeclared (first use in this function); did you mean 'CONST86'? 2061 | CONST char *t; | ^~~~~ | CONST86 expect.c:2061:10: error: expected ';' before 'char' 2061 | CONST char *t; | ^~~~~ | ; expect.c:2063:18: error: 't' undeclared (first use in this function); did you mean 'tm'? 2063 | if (NULL != (t = exp_get_var(interp,EXPECT_TIMEOUT))) { | ^ | tm expect.c: In function 'update_expect_states': expect.c:2094:24: error: implicit declaration of function 'exp_new_state'; did you mean 'exp_i_uses_state'? [-Wimplicit-function-declaration] 2094 | tmpslPtr = exp_new_state(slPtr->esPtr); | ^~~~~~~~~~~~~ | exp_i_uses_state expect.c:2094:22: error: assignment to 'struct exp_state_list *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 2094 | tmpslPtr = exp_new_state(slPtr->esPtr); | ^ expect.c: In function 'exp_indirect_update1': expect.c:2162:30: error: implicit declaration of function 'expStateCheck' [-Wimplicit-function-declaration] 2162 | if (!expStateCheck(interp,slPtr->esPtr,1,0,"")) continue; | ^~~~~~~~~~~~~ expect.c:2181:9: error: implicit declaration of function 'exp_i_update' [-Wimplicit-function-declaration] 2181 | exp_i_update(interp,exp_i); | ^~~~~~~~~~~~ expect.c: In function 'expMatchProcess': expect.c:2309:29: error: implicit declaration of function 'expPrintifyObj' [-Wimplicit-function-declaration] 2309 | expDiagLogU(expPrintifyObj(val)); | ^~~~~~~~~~~~~~ expect.c: In function 'exp_background_channelhandler': expect.c:2420:5: error: implicit declaration of function 'exp_block_background_channelhandler'; did you mean 'exp_background_channelhandler'? [-Wimplicit-function-declaration] 2420 | exp_block_background_channelhandler(esPtr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | exp_background_channelhandler expect.c:2507:10: error: implicit declaration of function 'expChannelStillAlive' [-Wimplicit-function-declaration] 2507 | if (!expChannelStillAlive(esPtr, backup)) { | ^~~~~~~~~~~~~~~~~~~~ expect.c:2518:5: error: implicit declaration of function 'exp_unblock_background_channelhandler'; did you mean 'exp_background_channelhandler'? [-Wimplicit-function-declaration] 2518 | exp_unblock_background_channelhandler(esPtr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | exp_background_channelhandler expect.c:2520:9: error: implicit declaration of function 'expStateFree' [-Wimplicit-function-declaration] 2520 | expStateFree(esPtr); | ^~~~~~~~~~~~ expect.c: At top level: expect.c:2529:20: error: expected ';', ',' or ')' before 'objv' 2529 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c:2786:20: error: expected ';', ',' or ')' before 'objv' 2786 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c:2872:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 2872 | process_di _ANSI_ARGS_ ((Tcl_Interp* interp, | ^~~~~~~~~~~ expect.c:2884:20: error: expected ';', ',' or ')' before 'objv' 2884 | Tcl_Obj *CONST objv[], /* Argument objects. */ | ^~~~ expect.c:2966:20: error: expected ';', ',' or ')' before 'objv' 2966 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c:3012:20: error: expected ';', ',' or ')' before 'objv' 3012 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c:3056:20: error: expected ';', ',' or ')' before 'objv' 3056 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c:3095:20: error: expected ';', ',' or ')' before 'objv' 3095 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ expect.c:3212:17: error: 'Exp_ExpectObjCmd' undeclared here (not in a function); did you mean 'Tcl_ExecObjCmd'? 3212 | {"expect", Exp_ExpectObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~ | Tcl_ExecObjCmd expect.c:3213:17: error: 'Exp_ExpectGlobalObjCmd' undeclared here (not in a function) 3213 | {"expect_after",Exp_ExpectGlobalObjCmd, 0, (ClientData)&exp_cmds[EXP_CMD_AFTER],0}, | ^~~~~~~~~~~~~~~~~~~~~~ expect.c:3218:26: error: 'Exp_MatchMaxObjCmd' undeclared here (not in a function) 3218 | {"match_max", Exp_MatchMaxObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~ expect.c:3219:26: error: 'Exp_RemoveNullsObjCmd' undeclared here (not in a function) 3219 | {"remove_nulls", Exp_RemoveNullsObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~~~ expect.c:3220:26: error: 'Exp_ParityObjCmd' undeclared here (not in a function) 3220 | {"parity", Exp_ParityObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~ expect.c:3221:26: error: 'Exp_CloseOnEofObjCmd' undeclared here (not in a function) 3221 | {"close_on_eof", Exp_CloseOnEofObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~~ expect.c:3222:26: error: 'Exp_TimestampObjCmd' undeclared here (not in a function) 3222 | {"timestamp", Exp_TimestampObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~ expect.c: In function 'exp_init_expect_cmds': expect.c:3228:9: error: implicit declaration of function 'exp_create_commands'; did you mean 'Tcl_CreateCommand'? [-Wimplicit-function-declaration] 3228 | exp_create_commands(interp,cmd_data); | ^~~~~~~~~~~~~~~~~~~ | Tcl_CreateCommand expect.c: At top level: expect.c:2072:1: warning: 'update_expect_states' defined but not used [-Wunused-function] 2072 | update_expect_states( | ^~~~~~~~~~~~~~~~~~~~ expect.c:2058:1: warning: 'get_timeout' defined but not used [-Wunused-function] 2058 | get_timeout(Tcl_Interp *interp) | ^~~~~~~~~~~ expect.c:1267:1: warning: 'exp_i_append' defined but not used [-Wunused-function] 1267 | exp_i_append( | ^~~~~~~~~~~~ expect.c:1253:1: warning: 'ecase_by_exp_i_append' defined but not used [-Wunused-function] 1253 | ecase_by_exp_i_append( | ^~~~~~~~~~~~~~~~~~~~~ expect.c:1223:1: warning: 'exp_i_uses_state' defined but not used [-Wunused-function] 1223 | exp_i_uses_state( | ^~~~~~~~~~~~~~~~ expect.c:372:1: warning: 'ecase_new' defined but not used [-Wunused-function] 372 | ecase_new(void) | ^~~~~~~~~ expect.c:204:1: warning: 'free_ecases' defined but not used [-Wunused-function] 204 | free_ecases( | ^~~~~~~~~~~ retoglob.c:734:1: warning: 'ExpCountStar' defined but not used [-Wunused-function] 734 | ExpCountStar (src, last) | ^~~~~~~~~~~~ retoglob.c:692:1: warning: 'ExpCollapseQBack' defined but not used [-Wunused-function] 692 | ExpCollapseQBack (src, last) | ^~~~~~~~~~~~~~~~ retoglob.c:644:1: warning: 'ExpCollapseQForward' defined but not used [-Wunused-function] 644 | ExpCollapseQForward (src, last) | ^~~~~~~~~~~~~~~~~~~ retoglob.c:597:1: warning: 'ExpCollapseStar' defined but not used [-Wunused-function] 597 | ExpCollapseStar (src, last) | ^~~~~~~~~~~~~~~ retoglob.c:570:1: warning: 'ExpBackslash' defined but not used [-Wunused-function] 570 | ExpBackslash (prefix, str, strlen) | ^~~~~~~~~~~~ retoglob.c:548:1: warning: 'ExpLiteral' defined but not used [-Wunused-function] 548 | ExpLiteral (nexto, str, strlen) | ^~~~~~~~~~ retoglob.c:519:1: warning: 'ExpChopNested' defined but not used [-Wunused-function] 519 | ExpChopNested (xstr,xstrlen, open, close) | ^~~~~~~~~~~~~ make[1]: *** [Makefile:318: expect.o] Error 1 In file included from exp_command.c:68: expect.h:321:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 321 | EXTERN regexp *TclRegComp _ANSI_ARGS_((char *exp)); | ^~~~~~~~~~~ expect.h:322:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 322 | EXTERN int TclRegExec _ANSI_ARGS_((regexp *prog, char *string, char *start)); | ^~~~~~~~~~~ expect.h:323:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 323 | EXTERN void TclRegSub _ANSI_ARGS_((regexp *prog, char *source, char *dest)); | ^~~~~~~~~~~ expect.h:324:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 324 | EXTERN void exp_TclRegError _ANSI_ARGS_((char *msg)); | ^~~~~~~~~~~ expect.h:325:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 325 | EXTERN char *TclGetRegError _ANSI_ARGS_((void)); | ^~~~~~~~~~~ expect.h:395:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 395 | EXTERN void exp_slave_control _ANSI_ARGS_((int,int)); | ^~~~~~~~~~~ expect.h:399:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 399 | extern void exp_debuglog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ expect.h:400:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 400 | extern void exp_errorlog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ expect.h:402:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 402 | EXTERN int exp_disconnect _ANSI_ARGS_((void)); | ^~~~~~~~~~~ expect.h:403:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 403 | EXTERN FILE *exp_popen _ANSI_ARGS_((char *command)); | ^~~~~~~~~~~ expect.h:404:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 404 | EXTERN void (*exp_child_exec_prelude) _ANSI_ARGS_((void)); | ^~~~~~~~~~~ expect.h:407:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 407 | EXTERN int exp_spawnl _ANSI_ARGS_(TCL_VARARGS(char *,file)); | ^~~~~~~~~~~ expect.h:408:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 408 | EXTERN int exp_expectl _ANSI_ARGS_(TCL_VARARGS(int,fd)); | ^~~~~~~~~~~ expect.h:409:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 409 | EXTERN int exp_fexpectl _ANSI_ARGS_(TCL_VARARGS(FILE *,fp)); | ^~~~~~~~~~~ expect.h:412:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 412 | EXTERN int exp_spawnv _ANSI_ARGS_((char *file, char *argv[])); | ^~~~~~~~~~~ expect.h:413:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 413 | EXTERN int exp_expectv _ANSI_ARGS_((int fd, struct exp_case *cases)); | ^~~~~~~~~~~ expect.h:414:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 414 | EXTERN int exp_fexpectv _ANSI_ARGS_((FILE *fp, struct exp_case *cases)); | ^~~~~~~~~~~ expect.h:416:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 416 | EXTERN int exp_spawnfd _ANSI_ARGS_((int fd)); | ^~~~~~~~~~~ In file included from exp_command.c:69: expect_tcl.h:40:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Expect_Init _ANSI_ARGS_((Tcl_Interp *)); /* for Tcl_AppInit apps */ | ^~~~~~~~~~~ expect_tcl.h:41:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void exp_parse_argv _ANSI_ARGS_((Tcl_Interp *,int argc,char **argv)); | ^~~~~~~~~~~ expect_tcl.h:42:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int exp_interpreter _ANSI_ARGS_((Tcl_Interp *,Tcl_Obj *)); | ^~~~~~~~~~~ expect_tcl.h:43:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 43 | EXTERN int exp_interpret_cmdfile _ANSI_ARGS_((Tcl_Interp *,FILE *)); | ^~~~~~~~~~~ expect_tcl.h:44:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_interpret_cmdfilename _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ expect_tcl.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void exp_interpret_rcfiles _ANSI_ARGS_((Tcl_Interp *,int my_rc,int sys_rc)); | ^~~~~~~~~~~ expect_tcl.h:47:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN char * exp_cook _ANSI_ARGS_((char *s,int *len)); | ^~~~~~~~~~~ expect_tcl.h:49:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 49 | EXTERN void expCloseOnExec _ANSI_ARGS_((int)); | ^~~~~~~~~~~ expect_tcl.h:52:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN void (*exp_app_exit)_ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ expect_tcl.h:53:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 53 | EXTERN void exp_exit_handlers _ANSI_ARGS_((ClientData)); | ^~~~~~~~~~~ expect_tcl.h:55:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN void exp_error _ANSI_ARGS_(TCL_VARARGS(Tcl_Interp *,interp)); | ^~~~~~~~~~~ In file included from exp_prog.h:14, from exp_command.c:71: exp_int.h:24:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | void exp_console_set _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_int.h:25:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | void expDiagLogPtrSet _ANSI_ARGS_((void (*)_ANSI_ARGS_((char *)))); | ^~~~~~~~~~~ exp_int.h:26:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 26 | void expDiagLogPtr _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_int.h:27:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | void expDiagLogPtrX _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_int.h:28:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | void expDiagLogPtrStr _ANSI_ARGS_((char *,char *)); | ^~~~~~~~~~~ exp_int.h:29:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | void expDiagLogPtrStrStr _ANSI_ARGS_((char *,char *,char *)); | ^~~~~~~~~~~ exp_int.h:30:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | void expErrnoMsgSet _ANSI_ARGS_((char * (*) _ANSI_ARGS_((int)))); | ^~~~~~~~~~~ exp_int.h:31:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | char * expErrnoMsg _ANSI_ARGS_((int)); | ^~~~~~~~~~~ In file included from exp_command.c:72: exp_command.h:30:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN char * exp_get_var _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:37:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN int exp_one_arg_braced _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_command.h:39:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN Tcl_Obj* exp_eval_with_one_arg _ANSI_ARGS_((ClientData, | ^~~~~~~~~~~ exp_command.h:42:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void exp_lowmemcpy _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:44:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int exp_flageq_code _ANSI_ARGS_((char *,char *,int)); | ^~~~~~~~~~~ exp_command.h:212:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 212 | EXTERN void expAdjust _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:213:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 213 | EXTERN int expWriteChars _ANSI_ARGS_((ExpState *,char *,int)); | ^~~~~~~~~~~ exp_command.h:214:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 214 | EXTERN int expWriteCharsUni _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_command.h:215:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 215 | EXTERN void exp_buffer_shuffle _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,char *,char *)); | ^~~~~~~~~~~ exp_command.h:216:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 216 | EXTERN int exp_close _ANSI_ARGS_((Tcl_Interp *,ExpState *)); | ^~~~~~~~~~~ exp_command.h:217:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 217 | EXTERN void exp_close_all _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:219:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 219 | _ANSI_ARGS_((Tcl_Interp *,int)); | ^~~~~~~~~~~ exp_command.h:220:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 220 | EXTERN void exp_trap_on _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:221:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 221 | EXTERN int exp_trap_off _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_command.h:234:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 234 | EXTERN void exp_init_pty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:235:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 235 | EXTERN void exp_pty_exit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:236:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 236 | EXTERN void exp_init_tty _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:237:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 237 | EXTERN void exp_init_stdio _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:239:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 239 | EXTERN void exp_init_spawn_ids _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:240:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 240 | EXTERN void exp_init_spawn_id_vars _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:241:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 241 | EXTERN void exp_init_trap _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:242:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 242 | EXTERN void exp_init_send _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:243:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 243 | EXTERN void exp_init_unit_random _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:244:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 244 | EXTERN void exp_init_sig _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:245:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 245 | EXTERN void expChannelInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:246:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 246 | EXTERN int expChannelCountGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:247:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 247 | EXTERN int expChannelStillAlive _ANSI_ARGS_((ExpState *, char *)); | ^~~~~~~~~~~ exp_command.h:249:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 249 | EXTERN int exp_tcl2_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:250:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 250 | EXTERN int exp_2tcl_returnvalue _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_command.h:252:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 252 | EXTERN void exp_rearm_sigchld _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:253:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 253 | EXTERN int exp_string_to_signal _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_command.h:289:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 289 | EXTERN struct exp_i * exp_new_i_complex _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:291:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 291 | EXTERN struct exp_i * exp_new_i_simple _ANSI_ARGS_((ExpState *,int)); | ^~~~~~~~~~~ exp_command.h:292:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 292 | EXTERN struct exp_state_list *exp_new_state _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:293:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 293 | EXTERN void exp_free_i _ANSI_ARGS_((Tcl_Interp *,struct exp_i *, | ^~~~~~~~~~~ exp_command.h:295:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 295 | EXTERN void exp_free_state _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:296:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 296 | EXTERN void exp_free_state_single _ANSI_ARGS_((struct exp_state_list *)); | ^~~~~~~~~~~ exp_command.h:297:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 297 | EXTERN int exp_i_update _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:317:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 317 | EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *, | ^~~~~~~~~~~ exp_command.h:319:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 319 | EXTERN void exp_init_main_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:320:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 320 | EXTERN void exp_init_expect_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:321:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 321 | EXTERN void exp_init_most_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:322:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 322 | EXTERN void exp_init_trap_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:323:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 323 | EXTERN void exp_init_interact_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:324:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 324 | EXTERN void exp_init_tty_cmds _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_command.h:326:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 326 | EXTERN ExpState * expStateCheck _ANSI_ARGS_((Tcl_Interp *,ExpState *,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:327:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 327 | EXTERN ExpState * expStateCurrent _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:328:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 328 | EXTERN ExpState * expStateFromChannelName _ANSI_ARGS_((Tcl_Interp *,char *,int,int,int,char *)); | ^~~~~~~~~~~ exp_command.h:329:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 329 | EXTERN void expStateFree _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:331:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 331 | EXTERN ExpState * expCreateChannel _ANSI_ARGS_((Tcl_Interp *,int,int,int)); | ^~~~~~~~~~~ exp_command.h:332:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 332 | EXTERN ExpState * expWaitOnAny _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:333:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 333 | EXTERN ExpState * expWaitOnOne _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:334:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 334 | EXTERN void expExpectVarsInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:335:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 335 | EXTERN int expStateAnyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:336:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 336 | EXTERN int expDevttyIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:337:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 337 | EXTERN int expStdinoutIs _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_command.h:338:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 338 | EXTERN ExpState * expStdinoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_command.h:339:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 339 | EXTERN ExpState * expDevttyGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ In file included from exp_command.c:73: exp_log.h:3:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | extern void expErrorLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:4:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | extern void expErrorLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:6:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | extern void expStdoutLog _ANSI_ARGS_(TCL_VARARGS(int,force_stdout)); | ^~~~~~~~~~~ exp_log.h:7:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 7 | extern void expStdoutLogU _ANSI_ARGS_((char *buf, int force_stdout)); | ^~~~~~~~~~~ exp_log.h:9:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 9 | EXTERN void expDiagInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:10:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | EXTERN int expDiagChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:11:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | EXTERN Tcl_Channel expDiagChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:12:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | EXTERN void expDiagChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:13:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 13 | EXTERN char * expDiagFilename _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:14:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | EXTERN int expDiagToStderrGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:15:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | EXTERN void expDiagToStderrSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:16:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | EXTERN void expDiagWriteBytes _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:17:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | EXTERN void expDiagWriteChars _ANSI_ARGS_((char *,int)); | ^~~~~~~~~~~ exp_log.h:18:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | EXTERN void expDiagWriteObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:19:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 19 | EXTERN void expDiagLog _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:20:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | EXTERN void expDiagLogU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:22:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 22 | EXTERN char * expPrintify _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:23:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 23 | EXTERN char * expPrintifyUni _ANSI_ARGS_((Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:24:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 24 | EXTERN char * expPrintifyObj _ANSI_ARGS_((Tcl_Obj *)); | ^~~~~~~~~~~ exp_log.h:25:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 25 | EXTERN void expPrintf _ANSI_ARGS_(TCL_VARARGS(char *,fmt)); | ^~~~~~~~~~~ exp_log.h:27:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 27 | EXTERN void expLogInit _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:28:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 28 | EXTERN int expLogChannelOpen _ANSI_ARGS_((Tcl_Interp *,char *,int)); | ^~~~~~~~~~~ exp_log.h:29:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 29 | EXTERN Tcl_Channel expLogChannelGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:30:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 30 | EXTERN int expLogChannelSet _ANSI_ARGS_((Tcl_Interp *,char *)); | ^~~~~~~~~~~ exp_log.h:31:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 31 | EXTERN void expLogChannelClose _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_log.h:32:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 32 | EXTERN char * expLogFilenameGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:33:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 33 | EXTERN void expLogAppendSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:34:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 34 | EXTERN int expLogAppendGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:35:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 35 | EXTERN void expLogLeaveOpenSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:36:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 36 | EXTERN int expLogLeaveOpenGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:37:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 37 | EXTERN void expLogAllSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:38:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 38 | EXTERN int expLogAllGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:39:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 39 | EXTERN void expLogToStdoutSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:40:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int expLogToStdoutGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:41:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 41 | EXTERN void expLogDiagU _ANSI_ARGS_((char *)); | ^~~~~~~~~~~ exp_log.h:42:51: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN int expWriteBytesAndLogIfTtyU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ exp_log.h:44:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN int expLogUserGet _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_log.h:45:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN void expLogUserSet _ANSI_ARGS_((int)); | ^~~~~~~~~~~ exp_log.h:47:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN void expLogInteractionU _ANSI_ARGS_((ExpState *,Tcl_UniChar *,int)); | ^~~~~~~~~~~ In file included from exp_command.c:74: exp_event.h:3:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 3 | int exp_get_next_event _ANSI_ARGS_((Tcl_Interp *,ExpState **, int, ExpState **, int, int)); | ^~~~~~~~~~~ exp_event.h:4:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 4 | int exp_get_next_event_info _ANSI_ARGS_((Tcl_Interp *, ExpState *)); | ^~~~~~~~~~~ exp_event.h:5:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 5 | int exp_dsleep _ANSI_ARGS_((Tcl_Interp *, double)); | ^~~~~~~~~~~ exp_event.h:6:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 6 | void exp_init_event _ANSI_ARGS_((void)); | ^~~~~~~~~~~ exp_event.h:8:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 8 | extern void (*exp_event_exit) _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ exp_event.h:10:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 10 | void exp_event_disarm _ANSI_ARGS_((ExpState *,Tcl_FileProc *)); | ^~~~~~~~~~~ exp_event.h:11:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 11 | void exp_event_disarm_bg _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:12:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 12 | void exp_event_disarm_fg _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:14:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 14 | void exp_arm_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:15:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 15 | void exp_disarm_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:16:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 16 | void exp_disarm_background_channelhandler_force _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:17:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | void exp_unblock_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:18:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | void exp_block_background_channelhandler _ANSI_ARGS_((ExpState *)); | ^~~~~~~~~~~ exp_event.h:20:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 20 | void exp_background_channelhandler _ANSI_ARGS_((ClientData,int)); | ^~~~~~~~~~~ In file included from exp_command.c:75: exp_pty.h:17:47: error: unknown type name 'CONST'; did you mean 'CONST86'? 17 | int exp_getptyslave(int ttycopy, int ttyinit, CONST char *stty_args); | ^~~~~ | CONST86 In file included from exp_command.c:78: tcldbg.h:17:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 17 | typedef int (Dbg_InterProc) _ANSI_ARGS_((Tcl_Interp *interp, ClientData data)); | ^~~~~~~~~~~ tcldbg.h:18:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 18 | typedef int (Dbg_IgnoreFuncsProc) _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:21:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 21 | typedef void (Dbg_OutputProc) _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:27:3: error: unknown type name 'Dbg_InterProc' 27 | Dbg_InterProc *func; | ^~~~~~~~~~~~~ tcldbg.h:32:3: error: unknown type name 'Dbg_OutputProc' 32 | Dbg_OutputProc *func; | ^~~~~~~~~~~~~~ tcldbg.h:40:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 40 | EXTERN int Tcldbg_Init _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~ tcldbg.h:42:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 42 | EXTERN void Dbg_On _ANSI_ARGS_((Tcl_Interp *interp, | ^~~~~~~~~~~ tcldbg.h:44:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 44 | EXTERN void Dbg_Off _ANSI_ARGS_((Tcl_Interp *interp)); | ^~~~~~~~~~~ tcldbg.h:45:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 45 | EXTERN char **Dbg_ArgcArgv _ANSI_ARGS_((int argc,char *argv[], | ^~~~~~~~~~~ tcldbg.h:47:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 47 | EXTERN int Dbg_Active _ANSI_ARGS_((Tcl_Interp *interp)); | ^~~~~~~~~~~ tcldbg.h:48:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 48 | EXTERN Dbg_InterStruct Dbg_Interactor _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:52:8: error: unknown type name 'Dbg_IgnoreFuncsProc' 52 | EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_(( | ^~~~~~~~~~~~~~~~~~~ tcldbg.h:52:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 52 | EXTERN Dbg_IgnoreFuncsProc *Dbg_IgnoreFuncs _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:55:36: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 55 | EXTERN Dbg_OutputStruct Dbg_Output _ANSI_ARGS_(( | ^~~~~~~~~~~ tcldbg.h:60:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ANSI_ARGS_' 60 | EXTERN void Dbg_StdinMode _ANSI_ARGS_((int mode)); | ^~~~~~~~~~~ exp_command.c:168:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TCL_VARARGS_DEF' 168 | exp_error TCL_VARARGS_DEF(Tcl_Interp *,arg1) | ^~~~~~~~~~~~~~~ exp_command.c: In function 'expStateCurrent': exp_command.c:194:18: error: implicit declaration of function 'exp_get_var' [-Wimplicit-function-declaration] 194 | char *name = exp_get_var(interp,SPAWN_ID_VARNAME); | ^~~~~~~~~~~ exp_command.c:194:18: error: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] exp_command.c:197:12: error: implicit declaration of function 'expStateFromChannelName' [-Wimplicit-function-declaration] 197 | return expStateFromChannelName(interp,name,opened,adjust,any,SPAWN_ID_VARNAME); | ^~~~~~~~~~~~~~~~~~~~~~~ exp_command.c:197:12: error: returning 'int' from a function with return type 'struct ExpState *' makes pointer from integer without a cast [-Wint-conversion] 197 | return expStateFromChannelName(interp,name,opened,adjust,any,SPAWN_ID_VARNAME); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ exp_command.c: In function 'expStateCheck': exp_command.c:209:9: error: implicit declaration of function 'exp_error'; did you mean 'perror'? [-Wimplicit-function-declaration] 209 | exp_error(interp,"%s: spawn id %s not open",msg,esPtr->name); | ^~~~~~~~~ | perror exp_command.c:212:17: error: implicit declaration of function 'expAdjust' [-Wimplicit-function-declaration] 212 | if (adjust) expAdjust(esPtr); | ^~~~~~~~~ exp_command.c: At top level: exp_command.c:217:1: error: conflicting types for 'expStateFromChannelName'; have 'ExpState *(Tcl_Interp *, char *, int, int, int, char *)' 217 | expStateFromChannelName( | ^~~~~~~~~~~~~~~~~~~~~~~ exp_command.c:197:12: note: previous implicit declaration of 'expStateFromChannelName' with type 'int()' 197 | return expStateFromChannelName(interp,name,opened,adjust,any,SPAWN_ID_VARNAME); | ^~~~~~~~~~~~~~~~~~~~~~~ exp_command.c: In function 'expStateFromChannelName': exp_command.c:227:5: error: 'CONST' undeclared (first use in this function); did you mean 'CONST86'? 227 | CONST char *chanName; | ^~~~~ | CONST86 exp_command.c:227:5: note: each undeclared identifier is reported only once for each function it appears in exp_command.c:227:10: error: expected ';' before 'char' 227 | CONST char *chanName; | ^~~~~ | ; exp_command.c:239:5: error: 'chanName' undeclared (first use in this function) 239 | chanName = Tcl_GetChannelName(channel); | ^~~~~~~~ exp_command.c: In function 'exp_state_prep_for_invalidation': exp_command.c:272:9: error: implicit declaration of function 'exp_event_disarm_fg' [-Wimplicit-function-declaration] 272 | exp_event_disarm_fg(esPtr); | ^~~~~~~~~~~~~~~~~~~ exp_command.c: In function 'expBusy': exp_command.c:318:5: error: implicit declaration of function 'expCloseOnExec' [-Wimplicit-function-declaration] 318 | expCloseOnExec(esPtr->fdin); | ^~~~~~~~~~~~~~ exp_command.c: In function 'exp_close': exp_command.c:360:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 360 | char* cName = Tcl_GetChannelName(esPtr->chan_orig->channel_orig); | ^~~~~~~~~~~~~~~~~~ exp_command.c: In function 'exp_init_spawn_ids': exp_command.c:476:24: error: implicit declaration of function 'expCreateChannel'; did you mean 'Tcl_CreateChannel'? [-Wimplicit-function-declaration] 476 | tsdPtr->stdinout = expCreateChannel(interp,0,1,isatty(0)?exp_getpid:EXP_NOPID); | ^~~~~~~~~~~~~~~~ | Tcl_CreateChannel exp_command.c:476:22: error: assignment to 'ExpState *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 476 | tsdPtr->stdinout = expCreateChannel(interp,0,1,isatty(0)?exp_getpid:EXP_NOPID); | ^ exp_command.c:479:21: error: assignment to 'ExpState *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 479 | tsdPtr->stderrX = expCreateChannel(interp,2,2,isatty(2)?exp_getpid:EXP_NOPID); | ^ exp_command.c:483:24: error: assignment to 'ExpState *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 483 | tsdPtr->devtty = expCreateChannel(interp,exp_dev_tty,exp_dev_tty,exp_getpid); | ^ exp_command.c: At top level: exp_command.c:499:1: warning: conflicting types for 'expCloseOnExec'; have 'void(int)' 499 | expCloseOnExec(int fd) | ^~~~~~~~~~~~~~ exp_command.c:318:5: note: previous implicit declaration of 'expCloseOnExec' with type 'void(int)' 318 | expCloseOnExec(esPtr->fdin); | ^~~~~~~~~~~~~~ exp_command.c:579:20: error: expected ';', ',' or ')' before 'objv' 579 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:1374:20: error: expected ';', ',' or ')' before 'objv' 1374 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:1424:20: error: expected ';', ',' or ')' before 'objv' 1424 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:1437:20: error: expected ';', ',' or ')' before 'objv' 1437 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c: In function 'get_slow_args': exp_command.c:1469:5: error: 'CONST' undeclared (first use in this function); did you mean 'CONST86'? 1469 | CONST char *s = exp_get_var(interp,"send_slow"); | ^~~~~ | CONST86 exp_command.c:1469:10: error: expected ';' before 'char' 1469 | CONST char *s = exp_get_var(interp,"send_slow"); | ^~~~~ | ; exp_command.c:1470:10: error: 's' undeclared (first use in this function); did you mean 'sc'? 1470 | if (!s) { | ^ | sc exp_command.c: In function 'slow_write': exp_command.c:1509:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1509 | p = Tcl_UtfNext(p); | ^ exp_command.c:1513:17: error: implicit declaration of function 'expWriteChars'; did you mean 'Tcl_WriteChars'? [-Wimplicit-function-declaration] 1513 | if (0 > expWriteChars(esPtr,buffer,bytelen)) { return(-1); } | ^~~~~~~~~~~~~ | Tcl_WriteChars exp_command.c:1519:18: error: implicit declaration of function 'exp_dsleep' [-Wimplicit-function-declaration] 1519 | rc = exp_dsleep(interp,arg->time); | ^~~~~~~~~~ exp_command.c: In function 'get_human_args': exp_command.c:1540:5: error: 'CONST' undeclared (first use in this function); did you mean 'CONST86'? 1540 | CONST char *s = exp_get_var(interp,"send_human"); | ^~~~~ | CONST86 exp_command.c:1540:10: error: expected ';' before 'char' 1540 | CONST char *s = exp_get_var(interp,"send_human"); | ^~~~~ | ; exp_command.c:1542:10: error: 's' undeclared (first use in this function); did you mean 'sc'? 1542 | if (!s) { | ^ | sc exp_command.c: In function 'human_write': exp_command.c:1613:5: error: implicit declaration of function 'expDiagLog' [-Wimplicit-function-declaration] 1613 | expDiagLog("human_write: avg_arr=%f/%f 1/shape=%f min=%f max=%f\r\n", | ^~~~~~~~~~ exp_command.c: In function 'exp_new_i_complex': exp_command.c:1802:22: error: implicit declaration of function 'exp_i_update' [-Wimplicit-function-declaration] 1802 | if (TCL_ERROR == exp_i_update(interp,i)) { | ^~~~~~~~~~~~ exp_command.c: In function 'exp_i_parse_states': exp_command.c:1844:32: error: passing argument 3 of 'tclStubsPtr->tcl_SplitList' from incompatible pointer type [-Wincompatible-pointer-types] 1844 | if (Tcl_SplitList(NULL, p, &argc, &argv) != TCL_OK) goto error; | ^~~~~ | | | int * exp_command.c:1844:32: note: expected 'Tcl_Size *' {aka 'long int *'} but argument is of type 'int *' exp_command.c:1844:39: error: passing argument 4 of 'tclStubsPtr->tcl_SplitList' from incompatible pointer type [-Wincompatible-pointer-types] 1844 | if (Tcl_SplitList(NULL, p, &argc, &argv) != TCL_OK) goto error; | ^~~~~ | | | char *** exp_command.c:1844:39: note: expected 'const char ***' but argument is of type 'char ***' exp_command.c:1854:5: error: implicit declaration of function 'expDiagLogU' [-Wimplicit-function-declaration] 1854 | expDiagLogU("exp_i_parse_states: "); | ^~~~~~~~~~~ exp_command.c: In function 'exp_i_update': exp_command.c:1870:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1870 | p = Tcl_GetVar(interp,i->variable,TCL_GLOBAL_ONLY); | ^ exp_command.c: At top level: exp_command.c:1920:20: error: expected ';', ',' or ')' before 'objv' 1920 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:1964:20: error: expected ';', ',' or ')' before 'objv' 1964 | Tcl_Obj *CONST objv[]) | ^~~~ exp_command.c:2162:20: error: expected ';', ',' or ')' before 'objv' 2162 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2295:20: error: expected ';', ',' or ')' before 'objv' 2295 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2327:20: error: expected ';', ',' or ')' before 'objv' 2327 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2397:20: error: expected ';', ',' or ')' before 'objv' 2397 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2477:20: error: expected ';', ',' or ')' before 'objv' 2477 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2533:20: error: expected ';', ',' or ')' before 'objv' 2533 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2574:20: error: expected ';', ',' or ')' before 'objv' 2574 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2685:5: error: unknown type name 'CONST'; did you mean 'CONST86'? 2685 | CONST char *command, | ^~~~~ | CONST86 exp_command.c:2688:20: error: expected ';', ',' or ')' before 'objv' 2688 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2712:20: error: expected ';', ',' or ')' before 'objv' 2712 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:2866:20: error: expected ';', ',' or ')' before 'objv' 2866 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:3079:20: error: expected ';', ',' or ')' before 'objv' 3079 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:3113:20: error: expected ';', ',' or ')' before 'objv' 3113 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:3223:20: error: expected ';', ',' or ')' before 'objv' 3223 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:3314:20: error: expected ';', ',' or ')' before 'objv' 3314 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:3362:20: error: expected ';', ',' or ')' before 'objv' 3362 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:3382:20: error: expected ';', ',' or ')' before 'objv' 3382 | Tcl_Obj *CONST objv[]) | ^~~~ exp_command.c:3403:20: error: expected ';', ',' or ')' before 'objv' 3403 | Tcl_Obj *CONST objv[]) /* Argument objects. */ | ^~~~ exp_command.c:3542:22: error: 'Exp_CloseObjCmd' undeclared here (not in a function); did you mean 'Tcl_CloseObjCmd'? 3542 | {"close", Exp_CloseObjCmd, 0, (ClientData)0, EXP_REDEFINE}, | ^~~~~~~~~~~~~~~ | Tcl_CloseObjCmd exp_command.c:3544:22: error: 'Exp_DebugObjCmd' undeclared here (not in a function) 3544 | {"debug", Exp_DebugObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~ exp_command.c:3546:22: error: 'Exp_ExpInternalObjCmd' undeclared here (not in a function) 3546 | {"exp_internal", Exp_ExpInternalObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~~~ exp_command.c:3547:22: error: 'Exp_DisconnectObjCmd' undeclared here (not in a function); did you mean 'exp_disconnected'? 3547 | {"disconnect", Exp_DisconnectObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~~ | exp_disconnected exp_command.c:3548:22: error: 'Exp_ExitObjCmd' undeclared here (not in a function); did you mean 'Tcl_ExitObjCmd'? 3548 | {"exit", Exp_ExitObjCmd, 0, (ClientData)0, EXP_REDEFINE}, | ^~~~~~~~~~~~~~ | Tcl_ExitObjCmd exp_command.c:3549:22: error: 'Exp_ExpContinueObjCmd' undeclared here (not in a function); did you mean 'Tcl_ContinueObjCmd'? 3549 | {"exp_continue", Exp_ExpContinueObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~~~ | Tcl_ContinueObjCmd exp_command.c:3550:22: error: 'Exp_ForkObjCmd' undeclared here (not in a function); did you mean 'Tcl_ForObjCmd'? 3550 | {"fork", Exp_ForkObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~ | Tcl_ForObjCmd exp_command.c:3551:22: error: 'Exp_ExpPidObjCmd' undeclared here (not in a function); did you mean 'Tcl_PidObjCmd'? 3551 | {"exp_pid", Exp_ExpPidObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~ | Tcl_PidObjCmd exp_command.c:3552:22: error: 'Exp_GetpidDeprecatedObjCmd' undeclared here (not in a function) 3552 | {"getpid", Exp_GetpidDeprecatedObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ exp_command.c:3553:22: error: 'Exp_InterpreterObjCmd' undeclared here (not in a function) 3553 | {"interpreter", Exp_InterpreterObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~~~ exp_command.c:3554:22: error: 'Exp_LogFileObjCmd' undeclared here (not in a function) 3554 | {"log_file", Exp_LogFileObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~ exp_command.c:3555:22: error: 'Exp_LogUserObjCmd' undeclared here (not in a function) 3555 | {"log_user", Exp_LogUserObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~ exp_command.c:3556:22: error: 'Exp_OpenObjCmd' undeclared here (not in a function); did you mean 'Tcl_OpenObjCmd'? 3556 | {"exp_open", Exp_OpenObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~ | Tcl_OpenObjCmd exp_command.c:3557:22: error: 'Exp_OverlayObjCmd' undeclared here (not in a function) 3557 | {"overlay", Exp_OverlayObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~ exp_command.c:3558:22: error: 'Exp_InterReturnObjCmd' undeclared here (not in a function) 3558 | {"inter_return", Exp_InterReturnObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~~~ exp_command.c:3559:22: error: 'Exp_SendObjCmd' undeclared here (not in a function) 3559 | {"send", Exp_SendObjCmd, 0, (ClientData)&sendCD_proc,0}, | ^~~~~~~~~~~~~~ exp_command.c:3561:22: error: 'Exp_SendLogObjCmd' undeclared here (not in a function) 3561 | {"send_log", Exp_SendLogObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~ exp_command.c:3564:22: error: 'Exp_SleepObjCmd' undeclared here (not in a function); did you mean 'Tcl_SeekObjCmd'? 3564 | {"sleep", Exp_SleepObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~ | Tcl_SeekObjCmd exp_command.c:3565:22: error: 'Exp_SpawnObjCmd' undeclared here (not in a function); did you mean 'Tcl_ScanObjCmd'? 3565 | {"spawn", Exp_SpawnObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~ | Tcl_ScanObjCmd exp_command.c:3566:22: error: 'Exp_StraceObjCmd' undeclared here (not in a function); did you mean 'Tcl_TraceObjCmd'? 3566 | {"strace", Exp_StraceObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~ | Tcl_TraceObjCmd exp_command.c:3567:22: error: 'Exp_WaitObjCmd' undeclared here (not in a function); did you mean 'Tcl_VwaitObjCmd'? 3567 | {"wait", Exp_WaitObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~ | Tcl_VwaitObjCmd exp_command.c:3568:22: error: 'Exp_ConfigureObjCmd' undeclared here (not in a function); did you mean 'Tcl_FconfigureObjCmd'? 3568 | {"exp_configure",Exp_ConfigureObjCmd, 0, (ClientData)0, 0}, | ^~~~~~~~~~~~~~~~~~~ | Tcl_FconfigureObjCmd exp_command.c:2701:1: warning: 'tcl_tracer_del' defined but not used [-Wunused-function] 2701 | tcl_tracer_del(ClientData clientData) | ^~~~~~~~~~~~~~ exp_command.c:1599:1: warning: 'human_write' defined but not used [-Wunused-function] 1599 | human_write( | ^~~~~~~~~~~ exp_command.c:1535:1: warning: 'get_human_args' defined but not used [-Wunused-function] 1535 | get_human_args( | ^~~~~~~~~~~~~~ exp_command.c:1491:1: warning: 'slow_write' defined but not used [-Wunused-function] 1491 | slow_write( | ^~~~~~~~~~ exp_command.c:1464:1: warning: 'get_slow_args' defined but not used [-Wunused-function] 1464 | get_slow_args( | ^~~~~~~~~~~~~ exp_command.c:555:1: warning: 'set_slave_name' defined but not used [-Wunused-function] 555 | set_slave_name( | ^~~~~~~~~~~~~~ exp_command.c:537:1: warning: 'expSetpgrp' defined but not used [-Wunused-function] 537 | expSetpgrp() | ^~~~~~~~~~ exp_command.c:252:1: warning: 'exp_wait_zero' defined but not used [-Wunused-function] 252 | exp_wait_zero(WAIT_STATUS_TYPE *status) | ^~~~~~~~~~~~~ make[1]: *** [Makefile:318: exp_command.o] Error 1 make[1]: Leaving directory '/home/loongarch/loongfire/build_loongarch64/usr/src/expect5.45.4' make: *** [expect:96: /home/loongarch/loongfire/log_loongarch64/expect5.45.4-tools] Error 2 make: Leaving directory '/home/loongarch/loongfire/lfs'