D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/expect-5.45.4-8.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.BX3M4q sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Lo99Hb + umask 022 + cd /home/pterjan/rpmbuild/BUILD/expect-5.45.4-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/expect-5.45.4-build + rm -rf expect5.45.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/expect5.45.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd expect5.45.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/expect-5.43.0-pkgpath.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/expect-fedora-5.32.2-random.patch + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/expect-fedora-5.43.0-log_file.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/expect-5.43.0-fixformatsecurity.patch + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/expect-use-grep-E-instead-of-deprecated-egrep.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0001-expect-Fix-format.patch + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/expect-5.45.4-covscan-fixes.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/expect-configure-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/expect-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0001-expect-Fix-implicit-declaration.patch + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.lA9f92 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/expect-5.45.4-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd expect5.45.4 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -vfi autoreconf: export WARNINGS= autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: Entering directory '.' autoreconf: configure.in: not using Gettext autoreconf: configure.in: not using aclocal autoreconf: configure.in: tracing autoreconf: configure.in: adding subdirectory testsuite to autoreconf autoreconf: Entering directory 'testsuite' autoreconf: configure.in: not using Gettext autoreconf: configure.in: not using aclocal autoreconf: configure.in: tracing autoreconf: configure.in: not using Libtool autoreconf: configure.in: not using Intltool autoreconf: configure.in: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.in:8: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:8: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... ../tclconfig/tcl.m4:45: TEA_PATH_TCLCONFIG is expanded from... configure.in:8: the top level configure.in:11: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... ../tclconfig/tcl.m4:3121: TEA_SETUP_COMPILER is expanded from... configure.in:11: the top level configure.in:11: warning: The macro 'AC_TRY_LINK' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... ../tclconfig/tcl.m4:2159: TEA_MISSING_POSIX_HEADERS is expanded from... ../tclconfig/tcl.m4:3121: TEA_SETUP_COMPILER is expanded from... configure.in:11: the top level configure.in:11: warning: The macro 'AC_HAVE_HEADERS' is obsolete. configure.in:11: You should run autoupdate. ./lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from... ../tclconfig/tcl.m4:2159: TEA_MISSING_POSIX_HEADERS is expanded from... ../tclconfig/tcl.m4:3121: TEA_SETUP_COMPILER is expanded from... configure.in:11: the top level configure.in:14: warning: AC_OUTPUT should be used without arguments. configure.in:14: You should run autoupdate. configure.in:14: warning: AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS autoreconf: configure.in: not using Autoheader autoreconf: configure.in: not using Automake autoreconf: '../tclconfig/install-sh' is updated autoreconf: Leaving directory 'testsuite' autoreconf: configure.in: not using Libtool autoreconf: configure.in: not using Intltool autoreconf: configure.in: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.in:21: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:21: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... tclconfig/tcl.m4:45: TEA_PATH_TCLCONFIG is expanded from... configure.in:21: the top level configure.in:46: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.in:46: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... tclconfig/tcl.m4:3121: TEA_SETUP_COMPILER is expanded from... configure.in:46: the top level configure.in:46: warning: The macro 'AC_TRY_LINK' is obsolete. configure.in:46: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... tclconfig/tcl.m4:2159: TEA_MISSING_POSIX_HEADERS is expanded from... tclconfig/tcl.m4:3121: TEA_SETUP_COMPILER is expanded from... configure.in:46: the top level configure.in:46: warning: The macro 'AC_HAVE_HEADERS' is obsolete. configure.in:46: You should run autoupdate. ./lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from... tclconfig/tcl.m4:2159: TEA_MISSING_POSIX_HEADERS is expanded from... tclconfig/tcl.m4:3121: TEA_SETUP_COMPILER is expanded from... configure.in:46: the top level configure.in:80: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:80: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... tclconfig/tcl.m4:738: TEA_ENABLE_THREADS is expanded from... configure.in:80: the top level configure.in:87: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:87: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... tclconfig/tcl.m4:680: TEA_ENABLE_SHARED is expanded from... configure.in:87: the top level configure.in:95: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:95: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... tclconfig/tcl.m4:1051: TEA_CONFIG_CFLAGS is expanded from... configure.in:95: the top level configure.in:95: warning: The macro 'AC_TRY_LINK' is obsolete. configure.in:95: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... tclconfig/tcl.m4:1051: TEA_CONFIG_CFLAGS is expanded from... configure.in:95: the top level configure.in:95: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:95: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... tclconfig/tcl.m4:1051: TEA_CONFIG_CFLAGS is expanded from... configure.in:95: the top level configure.in:95: warning: The macro 'AC_TRY_LINK' is obsolete. configure.in:95: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... tclconfig/tcl.m4:1051: TEA_CONFIG_CFLAGS is expanded from... configure.in:95: the top level configure.in:95: warning: The macro 'AC_TRY_LINK' is obsolete. configure.in:95: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... tclconfig/tcl.m4:1051: TEA_CONFIG_CFLAGS is expanded from... configure.in:95: the top level configure.in:95: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.in:95: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... tclconfig/tcl.m4:2581: TEA_TCL_EARLY_FLAG is expanded from... tclconfig/tcl.m4:2594: TEA_TCL_EARLY_FLAGS is expanded from... tclconfig/tcl.m4:1051: TEA_CONFIG_CFLAGS is expanded from... configure.in:95: the top level configure.in:95: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.in:95: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... tclconfig/tcl.m4:2629: TEA_TCL_64BIT_FLAGS is expanded from... tclconfig/tcl.m4:1051: TEA_CONFIG_CFLAGS is expanded from... configure.in:95: the top level configure.in:95: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.in:95: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... tclconfig/tcl.m4:2629: TEA_TCL_64BIT_FLAGS is expanded from... tclconfig/tcl.m4:1051: TEA_CONFIG_CFLAGS is expanded from... configure.in:95: the top level configure.in:101: warning: The macro 'AC_HELP_STRING' is obsolete. configure.in:101: You should run autoupdate. ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from... tclconfig/tcl.m4:867: TEA_ENABLE_SYMBOLS is expanded from... configure.in:101: the top level configure.in:141: warning: The macro 'AC_HAVE_HEADERS' is obsolete. configure.in:141: You should run autoupdate. ./lib/autoconf/oldnames.m4:35: AC_HAVE_HEADERS is expanded from... configure.in:141: the top level configure.in:150: warning: The macro 'AC_TYPE_SIGNAL' is obsolete. configure.in:150: You should run autoupdate. ./lib/autoconf/types.m4:805: AC_TYPE_SIGNAL is expanded from... configure.in:150: the top level configure.in:156: warning: The macro 'AC_HEADER_TIME' is obsolete. configure.in:156: You should run autoupdate. ./lib/autoconf/headers.m4:702: AC_HEADER_TIME is expanded from... tclconfig/tcl.m4:2374: TEA_TIME_HANDLER is expanded from... configure.in:156: the top level configure.in:156: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.in:156: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... tclconfig/tcl.m4:2374: TEA_TIME_HANDLER is expanded from... configure.in:156: the top level configure.in:168: warning: The macro 'AC_TRY_LINK' is obsolete. configure.in:168: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.in:168: the top level configure.in:254: warning: The macro 'AC_CANONICAL_SYSTEM' is obsolete. configure.in:254: You should run autoupdate. ./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from... configure.in:254: the top level configure.in:455: warning: The macro 'AC_TRY_LINK' is obsolete. configure.in:455: You should run autoupdate. ./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from... configure.in:455: the top level configure.in:474: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:474: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:474: the top level configure.in:494: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:494: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:494: the top level configure.in:536: warning: The macro 'AC_TYPE_SIGNAL' is obsolete. configure.in:536: You should run autoupdate. ./lib/autoconf/types.m4:805: AC_TYPE_SIGNAL is expanded from... configure.in:536: the top level configure.in:540: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:540: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:540: the top level configure.in:654: warning: The macro 'AC_HEADER_EGREP' is obsolete. configure.in:654: You should run autoupdate. ./lib/autoconf/oldnames.m4:37: AC_HEADER_EGREP is expanded from... configure.in:654: the top level configure.in:727: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:727: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:727: the top level configure.in:753: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:753: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:753: the top level configure.in:771: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:771: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:771: the top level configure.in:794: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:794: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:794: the top level configure.in:817: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:817: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:817: the top level configure.in:842: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:842: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:842: the top level configure.in:886: warning: The macro 'AC_HAVE_FUNCS' is obsolete. configure.in:886: You should run autoupdate. ./lib/autoconf/functions.m4:230: AC_HAVE_FUNCS is expanded from... configure.in:886: the top level configure.in:887: warning: The macro 'AC_HAVE_FUNCS' is obsolete. configure.in:887: You should run autoupdate. ./lib/autoconf/functions.m4:230: AC_HAVE_FUNCS is expanded from... configure.in:887: the top level configure.in:896: warning: The macro 'AC_TRY_RUN' is obsolete. configure.in:896: You should run autoupdate. ./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from... configure.in:896: the top level configure.in:1079: warning: AC_OUTPUT should be used without arguments. configure.in:1079: You should run autoupdate. configure.in:1079: warning: AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS autoreconf: configure.in: not using Autoheader autoreconf: configure.in: not using Automake autoreconf: 'tclconfig/config.sub' is updated autoreconf: 'tclconfig/config.guess' is updated autoreconf: Leaving directory '.' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./tclconfig/config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./tclconfig/config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./tclconfig/config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./tclconfig/config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./tclconfig/config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./tclconfig/config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-gcc --enable-shared --with-tcl=/usr/lib64 --with-tk=/usr/lib64 --disable-rpath --with-tclinclude=/usr/include/tcl-private/generic checking for correct TEA configuration... ok (TEA 3.9) configure: configuring expect 5.45.4 checking for Tcl configuration... found /usr/lib64/tclConfig.sh checking for existence of /usr/lib64/tclConfig.sh... loading configure: WARNING: With Tk request ignored - use package require Tk & Expect checking for a BSD-compatible install... /usr/bin/install -c checking for x86_64-mageia-linux-gnu-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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking how to run the C preprocessor... gcc -E checking whether make sets $(MAKE)... yes checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/time.h... yes checking for egrep -e... /usr/bin/grep -E 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 for net/errno.h... no checking for connect... yes checking for gethostbyname... yes checking dirent.h... yes checking for errno.h... yes checking for float.h... yes checking for values.h... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/wait.h... yes checking for dlfcn.h... yes checking for sys/param.h... yes checking for Tcl public headers... /usr/include/tcl-private/generic checking for Tcl private include files... Using srcdir found in tclConfig.sh: /usr/include/tcl-private checking for pthread_mutex_init in -lpthread... yes checking for building with threads... yes (default) 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... no checking system version... Linux-6.6.79-server-1.mga10 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 for sys/select.h... yes checking for sys/sysmacros.h... yes checking for varargs.h... no checking for sys/stropts.h... no checking for sys/sysconfig.h... no checking for sys/fcntl.h... yes checking for sys/ptem.h... no checking for sys/strredir.h... 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 for gcc options needed to detect all undeclared functions... none needed checking for sys/time.h... (cached) 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... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-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 return type of signal handlers... (cached) void 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 requires zero arguments... yes checking for SV-style timezone... yes checking for long file names... yes checking for tclsh... /usr/bin/tclsh8.6 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/pterjan/rpmbuild/BUILD/expect-5.45.4-build/expect5.45.4/testsuite) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr' '--host=x86_64-mageia-linux-gnu' '--build=x86_64-mageia-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-gcc' '--enable-shared' '--with-tcl=/usr/lib64' '--with-tk=/usr/lib64' '--disable-rpath' '--with-tclinclude=/usr/include/tcl-private/generic' 'build_alias=x86_64-mageia-linux-gnu' 'host_alias=x86_64-mageia-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' 'LDFLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' --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 /usr/lib64/tclConfig.sh checking for existence of /usr/lib64/tclConfig.sh... loading checking for a BSD-compatible install... /usr/bin/install -c checking for x86_64-mageia-linux-gnu-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 the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking how to run the C preprocessor... gcc -E checking whether make sets $(MAKE)... yes checking for x86_64-mageia-linux-gnu-ranlib... no checking for ranlib... ranlib checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for egrep -e... /usr/bin/grep -E 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 for net/errno.h... no checking for connect... yes checking for gethostbyname... yes checking dirent.h... yes checking for errno.h... yes checking for float.h... yes checking for values.h... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for sys/wait.h... yes checking for dlfcn.h... yes checking for sys/param.h... yes configure: creating ./config.status config.status: creating Makefile + /usr/bin/make -O -j48 V=1 VERBOSE=1 gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -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=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_tty.c` -o exp_tty.o 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_SystemCmd': exp_tty.c:664:13: error: assignment to 'void (*)(void)' from incompatible pointer type '__sighandler_t' {aka 'void (*)(int)'} [-Wincompatible-pointer-types] 664 | old = signal(SIGCHLD, SIG_DFL); | ^ In file included from exp_tty.c:5: /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ exp_tty.c:666:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 666 | signal(SIGCHLD, old); /* restore signal handler */ | ^~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ exp_tty.c: At top level: exp_tty.c:800:1: error: conflicting types for 'exp_init_tty_cmds'; have 'void(struct Tcl_Interp *)' 800 | exp_init_tty_cmds(struct Tcl_Interp *interp) | ^~~~~~~~~~~~~~~~~ In file included from exp_tty.c:37: exp_command.h:324:25: note: previous declaration of 'exp_init_tty_cmds' with type 'void(void)' 324 | EXTERN void exp_init_tty_cmds(); | ^~~~~~~~~~~~~~~~~ make: *** [Makefile:318: exp_tty.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_closetcl.c` -o exp_closetcl.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=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_trap.c` -o exp_trap.o exp_trap.c: In function 'signal_to_string': exp_trap.c:67:1: warning: old-style function definition [-Wold-style-definition] 67 | signal_to_string(sig) | ^~~~~~~~~~~~~~~~ exp_trap.c: In function 'tophalf': exp_trap.c:84:1: warning: old-style function definition [-Wold-style-definition] 84 | tophalf(clientData,interp,code) | ^~~~~~~ exp_trap.c:136:14: error: too many arguments to function 'eval_trap_action'; expected 0, have 4 136 | rc = eval_trap_action(sig_interp,current_sig,trap,code); | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~ exp_trap.c:56:12: note: declared here 56 | static int eval_trap_action(); | ^~~~~~~~~~~~~~~~ exp_trap.c: In function 'bottomhalf': exp_trap.c:171:1: warning: old-style function definition [-Wold-style-definition] 171 | bottomhalf(sig) | ^~~~~~~~~~ exp_trap.c: In function 'exp_rearm_sigchld': exp_trap.c:216:1: warning: old-style function definition [-Wold-style-definition] 216 | exp_rearm_sigchld(interp) | ^~~~~~~~~~~~~~~~~ exp_trap.c: In function 'exp_string_to_signal': exp_trap.c:275:1: warning: old-style function definition [-Wold-style-definition] 275 | exp_string_to_signal(interp,s) | ^~~~~~~~~~~~~~~~~~~~ exp_trap.c: In function 'Exp_TrapObjCmd': exp_trap.c:300:1: warning: old-style function definition [-Wold-style-definition] 300 | Exp_TrapObjCmd(clientData, interp, objc, objv) | ^~~~~~~~~~~~~~ exp_trap.c: In function 'eval_trap_action': exp_trap.c:435:1: warning: old-style function definition [-Wold-style-definition] 435 | eval_trap_action(interp,sig,trap,oldcode) | ^~~~~~~~~~~~~~~~ exp_trap.c: In function 'exp_init_trap_cmds': exp_trap.c:549:1: warning: old-style function definition [-Wold-style-definition] 549 | exp_init_trap_cmds(interp) | ^~~~~~~~~~~~~~~~~~ make: *** [Makefile:318: exp_trap.o] Error 1 gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_pty.c` -o exp_pty.o exp_pty.c: In function 'sigalarm_handler': exp_pty.c:88:1: warning: old-style function definition [-Wold-style-definition] 88 | sigalarm_handler(n) | ^~~~~~~~~~~~~~~~ exp_pty.c: In function 'i_read': exp_pty.c:106:1: warning: old-style function definition [-Wold-style-definition] 106 | i_read(fd,buffer,length,timeout) | ^~~~~~ exp_pty.c: In function 'exp_pty_test_start': exp_pty.c:148:25: error: assignment to 'void (*)(void)' from incompatible pointer type '__sighandler_t' {aka 'void (*)(int)'} [-Wincompatible-pointer-types] 148 | oldAlarmHandler = signal(SIGALRM,sigalarm_handler); | ^ In file included from exp_pty.c:34: /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ exp_pty.c: In function 'exp_pty_test_end': exp_pty.c:180:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 180 | signal(SIGALRM,oldAlarmHandler); | ^~~~~~~~~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ exp_pty.c: In function 'expDiagLogPtrSet': exp_pty.c:308:1: warning: old-style function definition [-Wold-style-definition] 308 | expDiagLogPtrSet(fn) | ^~~~~~~~~~~~~~~~ exp_pty.c: In function 'expDiagLogPtr': exp_pty.c:315:1: warning: old-style function definition [-Wold-style-definition] 315 | expDiagLogPtr(str) | ^~~~~~~~~~~~~ exp_pty.c: In function 'expDiagLogPtrX': exp_pty.c:324:1: warning: old-style function definition [-Wold-style-definition] 324 | expDiagLogPtrX(fmt,num) | ^~~~~~~~~~~~~~ exp_pty.c: In function 'expDiagLogPtrStr': exp_pty.c:335:1: warning: old-style function definition [-Wold-style-definition] 335 | expDiagLogPtrStr(fmt,str1) | ^~~~~~~~~~~~~~~~ exp_pty.c: In function 'expDiagLogPtrStrStr': exp_pty.c:345:1: warning: old-style function definition [-Wold-style-definition] 345 | expDiagLogPtrStrStr(fmt,str1,str2) | ^~~~~~~~~~~~~~~~~~~ exp_pty.c: In function 'expErrnoMsg': exp_pty.c:357:1: warning: old-style function definition [-Wold-style-definition] 357 | expErrnoMsg(errorNo) | ^~~~~~~~~~~ exp_pty.c: In function 'expErrnoMsgSet': exp_pty.c:364:1: warning: old-style function definition [-Wold-style-definition] 364 | expErrnoMsgSet(fn) | ^~~~~~~~~~~~~~ exp_pty.c: At top level: exp_pty.c:138:21: warning: 'oldHupHandler' defined but not used [-Wunused-variable] 138 | static RETSIGTYPE (*oldHupHandler)(); | ^~~~~~~~~~~~~ make: *** [Makefile:318: exp_pty.o] Error 1 gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_console.c` -o exp_console.o exp_console.c: In function 'exp_console_manipulation_failed': exp_console.c:41:1: warning: old-style function definition [-Wold-style-definition] 41 | exp_console_manipulation_failed(s) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_tty_comm.c` -o exp_tty_comm.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=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo pty_termios.c` -o pty_termios.o pty_termios.c: In function 'pty_stty': pty_termios.c:263:1: warning: old-style function definition [-Wold-style-definition] 263 | pty_stty(s,name) | ^~~~~~~~ pty_termios.c:276:13: error: assignment to 'void (*)(void)' from incompatible pointer type '__sighandler_t' {aka 'void (*)(int)'} [-Wincompatible-pointer-types] 276 | old = signal(SIGCHLD, SIG_DFL); | ^ In file included from pty_termios.c:11: /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ pty_termios.c:278:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 278 | signal(SIGCHLD, old); /* restore signal handler */ | ^~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ pty_termios.c: In function 'ttytype': pty_termios.c:289:1: warning: old-style function definition [-Wold-style-definition] 289 | ttytype(request,fd,ttycopy,ttyinit,s) | ^~~~~~~ pty_termios.c:306:17: error: too many arguments to function 'exp_window_size_get'; expected 0, have 1 306 | exp_window_size_get(fd); | ^~~~~~~~~~~~~~~~~~~ ~~ In file included from pty_termios.c:100: exp_win.h:12:5: note: declared here 12 | int exp_window_size_get(); | ^~~~~~~~~~~~~~~~~~~ pty_termios.c:315:25: error: too many arguments to function 'exp_window_size_set'; expected 0, have 1 315 | exp_window_size_set(fd); | ^~~~~~~~~~~~~~~~~~~ ~~ exp_win.h:11:5: note: declared here 11 | int exp_window_size_set(); | ^~~~~~~~~~~~~~~~~~~ pty_termios.c: In function 'exp_getptymaster': pty_termios.c:381:13: warning: unused variable 'num' [-Wunused-variable] 381 | int num; | ^~~ pty_termios.c:378:21: warning: unused variable 'stat_buf' [-Wunused-variable] 378 | struct stat stat_buf; | ^~~~~~~~ pty_termios.c:377:21: warning: unused variable 'bank' [-Wunused-variable] 377 | char *hex, *bank; | ^~~~ pty_termios.c:377:15: warning: unused variable 'hex' [-Wunused-variable] 377 | char *hex, *bank; | ^~~ pty_termios.c: In function 'exp_slave_control': pty_termios.c:625:1: warning: old-style function definition [-Wold-style-definition] 625 | exp_slave_control(master,control) | ^~~~~~~~~~~~~~~~~ pty_termios.c: In function 'exp_getptyslave': pty_termios.c:641:14: warning: unused variable 'buf' [-Wunused-variable] 641 | char buf[10240]; | ^~~ pty_termios.c:640:20: warning: unused variable 'slave2' [-Wunused-variable] 640 | int slave, slave2; | ^~~~~~ pty_termios.c: In function 'pty_stty': pty_termios.c:277:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 277 | system(buf); | ^~~~~~~~~~~ make: *** [Makefile:318: pty_termios.o] Error 1 gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_win.c` -o exp_win.o exp_win.c: In function 'exp_window_size_set': exp_win.c:81:5: warning: old-style function definition [-Wold-style-definition] 81 | int exp_window_size_set(fd) | ^~~~~~~~~~~~~~~~~~~ exp_win.c:83:1: error: number of arguments doesn't match prototype 83 | { | ^ In file included from exp_win.c:55: exp_win.h:11:5: error: prototype declaration 11 | int exp_window_size_set(); | ^~~~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_window_size_get': exp_win.c:92:5: warning: old-style function definition [-Wold-style-definition] 92 | int exp_window_size_get(fd) | ^~~~~~~~~~~~~~~~~~~ exp_win.c:94:1: error: number of arguments doesn't match prototype 94 | { | ^ exp_win.h:12:5: error: prototype declaration 12 | int exp_window_size_get(); | ^~~~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win_rows_set': exp_win.c:108:1: warning: old-style function definition [-Wold-style-definition] 108 | exp_win_rows_set(rows) | ^~~~~~~~~~~~~~~~ exp_win.c:112:9: error: too many arguments to function 'exp_window_size_set'; expected 0, have 1 112 | exp_window_size_set(exp_dev_tty); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ exp_win.c:81:5: note: declared here 81 | int exp_window_size_set(fd) | ^~~~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win_rows_get': exp_win.c:119:9: error: too many arguments to function 'exp_window_size_get'; expected 0, have 1 119 | exp_window_size_get(exp_dev_tty); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ exp_win.c:92:5: note: declared here 92 | int exp_window_size_get(fd) | ^~~~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win_columns_set': exp_win.c:125:1: warning: old-style function definition [-Wold-style-definition] 125 | exp_win_columns_set(columns) | ^~~~~~~~~~~~~~~~~~~ exp_win.c:129:9: error: too many arguments to function 'exp_window_size_set'; expected 0, have 1 129 | exp_window_size_set(exp_dev_tty); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ exp_win.c:81:5: note: declared here 81 | int exp_window_size_set(fd) | ^~~~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win_columns_get': exp_win.c:136:9: error: too many arguments to function 'exp_window_size_get'; expected 0, have 1 136 | exp_window_size_get(exp_dev_tty); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ exp_win.c:92:5: note: declared here 92 | int exp_window_size_get(fd) | ^~~~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win2_size_set': exp_win.c:145:5: warning: old-style function definition [-Wold-style-definition] 145 | int exp_win2_size_set(fd) | ^~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win2_size_get': exp_win.c:156:5: warning: old-style function definition [-Wold-style-definition] 156 | int exp_win2_size_get(fd) | ^~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win2_rows_set': exp_win.c:168:1: warning: old-style function definition [-Wold-style-definition] 168 | exp_win2_rows_set(fd,rows) | ^~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win2_rows_get': exp_win.c:178:1: warning: old-style function definition [-Wold-style-definition] 178 | exp_win2_rows_get(fd) | ^~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win2_columns_set': exp_win.c:192:1: warning: old-style function definition [-Wold-style-definition] 192 | exp_win2_columns_set(fd,columns) | ^~~~~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_win2_columns_get': exp_win.c:202:1: warning: old-style function definition [-Wold-style-definition] 202 | exp_win2_columns_get(fd) | ^~~~~~~~~~~~~~~~~~~~ exp_win.c: In function 'exp_window_size_set': exp_win.c:90:1: warning: control reaches end of non-void function [-Wreturn-type] 90 | } | ^ exp_win.c: In function 'exp_window_size_get': exp_win.c:105:1: warning: control reaches end of non-void function [-Wreturn-type] 105 | } | ^ exp_win.c: In function 'exp_win2_size_set': exp_win.c:154:1: warning: control reaches end of non-void function [-Wreturn-type] 154 | } | ^ exp_win.c: In function 'exp_win2_size_get': exp_win.c:165:1: warning: control reaches end of non-void function [-Wreturn-type] 165 | } | ^ make: *** [Makefile:318: exp_win.o] Error 1 gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_main_sub.c` -o exp_main_sub.o exp_main_sub.c:52:8: error: conflicting types for 'exp_app_exit'; have 'void (*)(void)' 52 | void (*exp_app_exit)() = 0; | ^~~~~~~~~~~~ In file included from exp_prog.h:13, from exp_main_sub.c:22: expect_tcl.h:52:19: note: previous declaration of 'exp_app_exit' with type 'void (*)(Tcl_Interp *)' 52 | EXTERN void (*exp_app_exit)_ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~~ exp_main_sub.c:53:8: error: conflicting types for 'exp_event_exit'; have 'void (*)(void)' 53 | void (*exp_event_exit)() = 0; | ^~~~~~~~~~~~~~ In file included from exp_main_sub.c:26: exp_event.h:8:15: note: previous declaration of 'exp_event_exit' with type 'void (*)(Tcl_Interp *)' 8 | extern void (*exp_event_exit) _ANSI_ARGS_((Tcl_Interp *)); | ^~~~~~~~~~~~~~ exp_main_sub.c: In function 'usage': exp_main_sub.c:77:1: warning: old-style function definition [-Wold-style-definition] 77 | usage(interp) | ^~~~~ exp_main_sub.c: In function 'exp_pty_exit_for_tcl': exp_main_sub.c:92:1: warning: old-style function definition [-Wold-style-definition] 92 | exp_pty_exit_for_tcl(clientData) | ^~~~~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'exp_exit_handlers': exp_main_sub.c:107:1: warning: old-style function definition [-Wold-style-definition] 107 | exp_exit_handlers(clientData) | ^~~~~~~~~~~~~~~~~ exp_main_sub.c:135:26: error: too many arguments to function 'exp_app_exit'; expected 0, have 1 135 | (*exp_app_exit)(interp); | ~^~~~~~~~~~~~~~ ~~~~~~ exp_main_sub.c: In function 'history_nextid': exp_main_sub.c:160:1: warning: old-style function definition [-Wold-style-definition] 160 | history_nextid(interp) | ^~~~~~~~~~~~~~ exp_main_sub.c: In function 'Exp_Prompt1ObjCmd': exp_main_sub.c:184:1: warning: old-style function definition [-Wold-style-definition] 184 | Exp_Prompt1ObjCmd(clientData, interp, objc, objv) | ^~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'Exp_Prompt2ObjCmd': exp_main_sub.c:201:1: warning: old-style function definition [-Wold-style-definition] 201 | Exp_Prompt2ObjCmd(clientData, interp, objc, objv) | ^~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'ignore_procs': exp_main_sub.c:213:1: warning: old-style function definition [-Wold-style-definition] 213 | ignore_procs(interp,s) | ^~~~~~~~~~~~ exp_main_sub.c: In function 'handle_eval_error': exp_main_sub.c:231:1: warning: old-style function definition [-Wold-style-definition] 231 | handle_eval_error(interp,check_for_nostack) | ^~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'exp_interpreter': exp_main_sub.c:275:1: warning: old-style function definition [-Wold-style-definition] 275 | exp_interpreter(interp,eofObj) | ^~~~~~~~~~~~~~~ exp_main_sub.c: In function 'Exp_ExpVersionObjCmd': exp_main_sub.c:437:1: warning: old-style function definition [-Wold-style-definition] 437 | Exp_ExpVersionObjCmd(clientData, interp, objc, objv) | ^~~~~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'DeleteCmdInfo': exp_main_sub.c:503:1: warning: old-style function definition [-Wold-style-definition] 503 | DeleteCmdInfo (clientData, interp) | ^~~~~~~~~~~~~ exp_main_sub.c: In function 'Expect_Init': exp_main_sub.c:512:1: warning: old-style function definition [-Wold-style-definition] 512 | Expect_Init(interp) | ^~~~~~~~~~~ exp_main_sub.c:623:5: error: too many arguments to function 'exp_init_tty_cmds'; expected 0, have 1 623 | exp_init_tty_cmds(interp); /* add tty cmds to interpreter */ | ^~~~~~~~~~~~~~~~~ ~~~~~~ In file included from exp_main_sub.c:23: exp_command.h:324:25: note: declared here 324 | EXTERN void exp_init_tty_cmds(); | ^~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'exp_parse_argv': exp_main_sub.c:663:1: warning: old-style function definition [-Wold-style-definition] 663 | exp_parse_argv(interp,argc,argv) | ^~~~~~~~~~~~~~ exp_main_sub.c: In function 'print_result': exp_main_sub.c:880:1: warning: old-style function definition [-Wold-style-definition] 880 | print_result (interp) | ^~~~~~~~~~~~ exp_main_sub.c: In function 'run_exit': exp_main_sub.c:891:1: warning: old-style function definition [-Wold-style-definition] 891 | run_exit (interp) | ^~~~~~~~ exp_main_sub.c: In function 'exp_interpret_rcfiles': exp_main_sub.c:902:1: warning: old-style function definition [-Wold-style-definition] 902 | exp_interpret_rcfiles(interp,my_rc,sys_rc) | ^~~~~~~~~~~~~~~~~~~~~ exp_main_sub.c:929:19: error: conflicting types for 'getenv'; have 'char *(void)' 929 | char *getenv(); | ^~~~~~ In file included from /usr/include/tcl-private/generic/tclInt.h:44, from exp_main_sub.c:20: /usr/include/stdlib.h:773:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 773 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur; | ^~~~~~ exp_main_sub.c:931:34: error: too many arguments to function 'getenv'; expected 0, have 1 931 | if ((NULL != (home = getenv("DOTDIR"))) || | ^~~~~~ ~~~~~~~~ exp_main_sub.c:929:19: note: declared here 929 | char *getenv(); | ^~~~~~ exp_main_sub.c:932:34: error: too many arguments to function 'getenv'; expected 0, have 1 932 | (NULL != (home = getenv("HOME")))) { | ^~~~~~ ~~~~~~ exp_main_sub.c:929:19: note: declared here 929 | char *getenv(); | ^~~~~~ exp_main_sub.c: In function 'exp_interpret_cmdfilename': exp_main_sub.c:949:1: warning: old-style function definition [-Wold-style-definition] 949 | exp_interpret_cmdfilename(interp,filename) | ^~~~~~~~~~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'exp_interpret_cmdfile': exp_main_sub.c:968:1: warning: old-style function definition [-Wold-style-definition] 968 | exp_interpret_cmdfile(interp,fp) | ^~~~~~~~~~~~~~~~~~~~~ exp_main_sub.c: In function 'exp_init_main_cmds': exp_main_sub.c:1017:1: warning: old-style function definition [-Wold-style-definition] 1017 | exp_init_main_cmds(interp) | ^~~~~~~~~~~~~~~~~~ make: *** [Makefile:318: exp_main_sub.o] Error 1 gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_command.c` -o exp_command.o exp_command.c: In function 'Exp_SpawnObjCmd': exp_command.c:587:9: warning: unused variable 'ttyfd' [-Wunused-variable] 587 | int ttyfd; | ^~~~~ exp_command.c: In function 'Exp_DisconnectObjCmd': exp_command.c:3120:9: warning: unused variable 'ttyfd' [-Wunused-variable] 3120 | int ttyfd; | ^~~~~ exp_command.c: In function 'exp_create_commands': exp_command.c:3506:1: warning: old-style function definition [-Wold-style-definition] 3506 | exp_create_commands(interp,c) | ^~~~~~~~~~~~~~~~~~~ In file included from exp_command.c:72: exp_command.h:226:27: error: passing argument 5 of 'tclStubsPtr->tcl_CreateObjCommand' from incompatible pointer type [-Wincompatible-pointer-types] 226 | #define exp_deleteObjProc (void (*)())0 | ^~~~~~~~~~~~~ | | | void (*)(void) exp_command.c:3521:44: note: in expansion of macro 'exp_deleteObjProc' 3521 | c->objproc,c->data,exp_deleteObjProc); | ^~~~~~~~~~~~~~~~~ exp_command.h:226:27: note: expected 'void (*)(void *)' but argument is of type 'void (*)(void)' 226 | #define exp_deleteObjProc (void (*)())0 | ^~~~~~~~~~~~~ exp_command.c:3521:44: note: in expansion of macro 'exp_deleteObjProc' 3521 | c->objproc,c->data,exp_deleteObjProc); | ^~~~~~~~~~~~~~~~~ exp_command.h:225:24: error: passing argument 5 of 'tclStubsPtr->tcl_CreateCommand' from incompatible pointer type [-Wincompatible-pointer-types] 225 | #define exp_deleteProc (void (*)())0 | ^~~~~~~~~~~~~ | | | void (*)(void) exp_command.c:3524:33: note: in expansion of macro 'exp_deleteProc' 3524 | c->data,exp_deleteProc); | ^~~~~~~~~~~~~~ exp_command.h:225:24: note: expected 'void (*)(void *)' but argument is of type 'void (*)(void)' 225 | #define exp_deleteProc (void (*)())0 | ^~~~~~~~~~~~~ exp_command.c:3524:33: note: in expansion of macro 'exp_deleteProc' 3524 | c->data,exp_deleteProc); | ^~~~~~~~~~~~~~ exp_command.h:226:27: error: passing argument 5 of 'tclStubsPtr->tcl_CreateObjCommand' from incompatible pointer type [-Wincompatible-pointer-types] 226 | #define exp_deleteObjProc (void (*)())0 | ^~~~~~~~~~~~~ | | | void (*)(void) exp_command.c:3533:25: note: in expansion of macro 'exp_deleteObjProc' 3533 | exp_deleteObjProc); | ^~~~~~~~~~~~~~~~~ exp_command.h:226:27: note: expected 'void (*)(void *)' but argument is of type 'void (*)(void)' 226 | #define exp_deleteObjProc (void (*)())0 | ^~~~~~~~~~~~~ exp_command.c:3533:25: note: in expansion of macro 'exp_deleteObjProc' 3533 | exp_deleteObjProc); | ^~~~~~~~~~~~~~~~~ exp_command.h:225:24: error: passing argument 5 of 'tclStubsPtr->tcl_CreateCommand' from incompatible pointer type [-Wincompatible-pointer-types] 225 | #define exp_deleteProc (void (*)())0 | ^~~~~~~~~~~~~ | | | void (*)(void) exp_command.c:3536:33: note: in expansion of macro 'exp_deleteProc' 3536 | c->data,exp_deleteProc); | ^~~~~~~~~~~~~~ exp_command.h:225:24: note: expected 'void (*)(void *)' but argument is of type 'void (*)(void)' 225 | #define exp_deleteProc (void (*)())0 | ^~~~~~~~~~~~~ exp_command.c:3536:33: note: in expansion of macro 'exp_deleteProc' 3536 | c->data,exp_deleteProc); | ^~~~~~~~~~~~~~ exp_command.c: In function 'Exp_SpawnObjCmd': exp_command.c:1353:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 1353 | write(status_pipe[1], &errno, sizeof errno); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ exp_command.c: At top level: exp_command.c:537:1: warning: 'expSetpgrp' defined but not used [-Wunused-function] 537 | expSetpgrp() | ^~~~~~~~~~ make: *** [Makefile:318: exp_command.o] Error 1 gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_clib.c` -o exp_clib.o exp_clib.c: In function 'TclRegComp': exp_clib.c:372:1: warning: old-style function definition [-Wold-style-definition] 372 | TclRegComp(exp) | ^~~~~~~~~~ exp_clib.c: In function 'reg': exp_clib.c:463:1: warning: old-style function definition [-Wold-style-definition] 463 | reg(paren, flagp, rcstate) | ^~~ exp_clib.c: In function 'regbranch': exp_clib.c:536:1: warning: old-style function definition [-Wold-style-definition] 536 | regbranch(flagp, rcstate) | ^~~~~~~~~ exp_clib.c: In function 'regpiece': exp_clib.c:577:1: warning: old-style function definition [-Wold-style-definition] 577 | regpiece(flagp, rcstate) | ^~~~~~~~ exp_clib.c: In function 'regatom': exp_clib.c:642:1: warning: old-style function definition [-Wold-style-definition] 642 | regatom(flagp, rcstate) | ^~~~~~~ exp_clib.c: In function 'regnode': exp_clib.c:752:1: warning: old-style function definition [-Wold-style-definition] 752 | regnode(op, rcstate) | ^~~~~~~ exp_clib.c: In function 'regc': exp_clib.c:778:1: warning: old-style function definition [-Wold-style-definition] 778 | regc(b, rcstate) | ^~~~ exp_clib.c: In function 'reginsert': exp_clib.c:794:1: warning: old-style function definition [-Wold-style-definition] 794 | reginsert(op, opnd, rcstate) | ^~~~~~~~~ exp_clib.c: In function 'regtail': exp_clib.c:824:1: warning: old-style function definition [-Wold-style-definition] 824 | regtail(p, val) | ^~~~~~~ exp_clib.c: In function 'regoptail': exp_clib.c:856:1: warning: old-style function definition [-Wold-style-definition] 856 | regoptail(p, val) | ^~~~~~~~~ exp_clib.c: In function 'TclRegExec': exp_clib.c:900:1: warning: old-style function definition [-Wold-style-definition] 900 | TclRegExec(prog, string, start) | ^~~~~~~~~~ exp_clib.c: In function 'regtry': exp_clib.c:965:1: warning: old-style function definition [-Wold-style-definition] 965 | regtry(prog, string, restate) | ^~~~~~ exp_clib.c: In function 'regmatch': exp_clib.c:1003:1: warning: old-style function definition [-Wold-style-definition] 1003 | regmatch(prog, restate) | ^~~~~~~~ exp_clib.c: In function 'regrepeat': exp_clib.c:1204:1: warning: old-style function definition [-Wold-style-definition] 1204 | regrepeat(p, restate) | ^~~~~~~~~ exp_clib.c: In function 'regnext': exp_clib.c:1251:1: warning: old-style function definition [-Wold-style-definition] 1251 | regnext(p) | ^~~~~~~ exp_clib.c: In function 'exp_TclRegError': exp_clib.c:1459:1: warning: old-style function definition [-Wold-style-definition] 1459 | exp_TclRegError(string) | ^~~~~~~~~~~~~~~ exp_clib.c: In function 'expDiagLogU': exp_clib.c:1483:1: warning: old-style function definition [-Wold-style-definition] 1483 | expDiagLogU(str) | ^~~~~~~~~~~ exp_clib.c: In function 'Exp_StringMatch2': exp_clib.c:1524:1: warning: old-style function definition [-Wold-style-definition] 1524 | Exp_StringMatch2(string,pattern) | ^~~~~~~~~~~~~~~~ exp_clib.c: In function 'Exp_StringMatch': exp_clib.c:1657:1: warning: old-style function definition [-Wold-style-definition] 1657 | Exp_StringMatch(string, pattern,offset) | ^~~~~~~~~~~~~~~ exp_clib.c: In function 'fdfp2f': exp_clib.c:1773:1: warning: old-style function definition [-Wold-style-definition] 1773 | fdfp2f(fd,fp) | ^~~~~~ exp_clib.c: In function 'fd_new': exp_clib.c:1782:1: warning: old-style function definition [-Wold-style-definition] 1782 | fd_new(fd) | ^~~~~~ exp_clib.c: In function 'exp_spawnv': exp_clib.c:1838:1: warning: old-style function definition [-Wold-style-definition] 1838 | exp_spawnv(file,argv) | ^~~~~~~~~~ exp_clib.c:2063:35: error: too many arguments to function 'exp_getptyslave'; expected 0, have 3 2063 | if (0 > (exp_pty[1] = exp_getptyslave(exp_ttycopy,exp_ttyinit, | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~ exp_clib.c:1740:5: note: declared here 1740 | int exp_getptyslave(); | ^~~~~~~~~~~~~~~ exp_clib.c:1845:13: warning: unused variable 'ttyfd' [-Wunused-variable] 1845 | int ttyfd; | ^~~~~ exp_clib.c: In function 'exp_spawnfd': exp_clib.c:2273:1: warning: old-style function definition [-Wold-style-definition] 2273 | exp_spawnfd(fd) | ^~~~~~~~~~~ exp_clib.c: In function 'rm_nulls': exp_clib.c:2287:1: warning: old-style function definition [-Wold-style-definition] 2287 | rm_nulls(s,c) | ^~~~~~~~ exp_clib.c: In function 'sigalarm_handler': exp_clib.c:2312:1: warning: old-style function definition [-Wold-style-definition] 2312 | sigalarm_handler(n) | ^~~~~~~~~~~~~~~~ exp_clib.c: In function 'i_read': exp_clib.c:2328:1: warning: old-style function definition [-Wold-style-definition] 2328 | i_read(fd,fp,buffer,length,timeout) | ^~~~~~ exp_clib.c: In function 'expectv': exp_clib.c:2435:1: warning: old-style function definition [-Wold-style-definition] 2435 | expectv(fd,fp,ecases) | ^~~~~~~ exp_clib.c:2627:57: error: too many arguments to function 'exp_printify'; expected 0, have 1 2627 | exp_debuglog("expect: does {%s} match ",exp_printify(exp_buffer)); | ^~~~~~~~~~~~ ~~~~~~~~~~ exp_clib.c:1738:7: note: declared here 1738 | char *exp_printify(); | ^~~~~~~~~~~~ exp_clib.c:2632:47: error: too many arguments to function 'exp_printify'; expected 0, have 1 2632 | exp_debuglog("{%s}? ",exp_printify(ec->pattern)); | ^~~~~~~~~~~~ ~~~~~~~~~~~ exp_clib.c:1738:7: note: declared here 1738 | char *exp_printify(); | ^~~~~~~~~~~~ exp_clib.c:2670:49: error: too many arguments to function 'exp_printify'; expected 0, have 1 2670 | exp_printify(exp_buffer)); | ^~~~~~~~~~~~ ~~~~~~~~~~ exp_clib.c:1738:7: note: declared here 1738 | char *exp_printify(); | ^~~~~~~~~~~~ exp_clib.c: In function 'exp_fexpectv': exp_clib.c:2701:1: warning: old-style function definition [-Wold-style-definition] 2701 | exp_fexpectv(fp,ecases) | ^~~~~~~~~~~~ exp_clib.c: In function 'exp_expectv': exp_clib.c:2709:1: warning: old-style function definition [-Wold-style-definition] 2709 | exp_expectv(fd,ecases) | ^~~~~~~~~~~ exp_clib.c: In function 'exp_popen': exp_clib.c:2853:1: warning: old-style function definition [-Wold-style-definition] 2853 | exp_popen(program) | ^~~~~~~~~ exp_clib.c: In function 'exp_disconnect': exp_clib.c:2868:13: warning: unused variable 'ttyfd' [-Wunused-variable] 2868 | int ttyfd; | ^~~~~ exp_clib.c: In function 'exp_printify': exp_clib.c:2949:1: warning: old-style function definition [-Wold-style-definition] 2949 | exp_printify(s) | ^~~~~~~~~~~~ exp_clib.c:2951:1: error: number of arguments doesn't match prototype 2951 | { | ^ exp_clib.c:1738:7: error: prototype declaration 1738 | char *exp_printify(); | ^~~~~~~~~~~~ exp_clib.c: In function 'exp_spawnv': exp_clib.c:2234:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 2234 | write(status_pipe[1], &errno, sizeof errno); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ exp_clib.c: In function 'exp_disconnect': exp_clib.c:2878:9: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result] 2878 | freopen("/dev/null","r",stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ exp_clib.c:2879:9: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result] 2879 | freopen("/dev/null","w",stdout); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ exp_clib.c:2880:9: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result] 2880 | freopen("/dev/null","w",stderr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ exp_clib.c: At top level: exp_clib.c:1821:1: warning: 'exp_setpgrp' defined but not used [-Wunused-function] 1821 | exp_setpgrp() | ^~~~~~~~~~~ make: *** [Makefile:318: exp_clib.o] Error 1 gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_memmove.c` -o exp_memmove.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=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_glob.c` -o exp_glob.o exp_glob.c: In function 'Exp_StringCaseMatch': exp_glob.c:32:1: warning: old-style function definition [-Wold-style-definition] 32 | Exp_StringCaseMatch(string, strlen, pattern, plen, nocase, offset) /* INTL */ | ^~~~~~~~~~~~~~~~~~~ exp_glob.c: In function 'Exp_StringCaseMatch2': exp_glob.c:126:1: warning: old-style function definition [-Wold-style-definition] 126 | Exp_StringCaseMatch2(string,stop,pattern,pstop,nocase) /* INTL */ | ^~~~~~~~~~~~~~~~~~~~ gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_chan.c` -o exp_chan.o exp_chan.c: In function 'ExpBlockModeProc': exp_chan.c:109:1: warning: old-style function definition [-Wold-style-definition] 109 | ExpBlockModeProc(instanceData, mode) | ^~~~~~~~~~~~~~~~ exp_chan.c: In function 'expSetBlockModeProc': exp_chan.c:147:1: warning: old-style function definition [-Wold-style-definition] 147 | expSetBlockModeProc(fd, mode) | ^~~~~~~~~~~~~~~~~~~ exp_chan.c: In function 'ExpInputProc': exp_chan.c:201:1: warning: old-style function definition [-Wold-style-definition] 201 | ExpInputProc(instanceData, buf, toRead, errorCodePtr) | ^~~~~~~~~~~~ exp_chan.c: In function 'ExpOutputProc': exp_chan.c:262:1: warning: old-style function definition [-Wold-style-definition] 262 | ExpOutputProc(instanceData, buf, toWrite, errorCodePtr) | ^~~~~~~~~~~~~ exp_chan.c: In function 'ExpCloseProc': exp_chan.c:315:1: warning: old-style function definition [-Wold-style-definition] 315 | ExpCloseProc(instanceData, interp) | ^~~~~~~~~~~~ exp_chan.c: In function 'ExpWatchProc': exp_chan.c:389:1: warning: old-style function definition [-Wold-style-definition] 389 | ExpWatchProc(instanceData, mask) | ^~~~~~~~~~~~ exp_chan.c: In function 'ExpGetHandleProc': exp_chan.c:434:1: warning: old-style function definition [-Wold-style-definition] 434 | ExpGetHandleProc(instanceData, direction, handlePtr) | ^~~~~~~~~~~~~~~~ exp_chan.c:442:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 442 | *handlePtr = (ClientData) esPtr->fdin; | ^ exp_chan.c:445:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 445 | *handlePtr = (ClientData) esPtr->fdin; | ^ exp_chan.c: In function 'expChannelStillAlive': exp_chan.c:460:1: warning: old-style function definition [-Wold-style-definition] 460 | expChannelStillAlive(esBackupPtr, backupName) | ^~~~~~~~~~~~~~~~~~~~ exp_chan.c: In function 'expWriteChars': exp_chan.c:503:1: warning: old-style function definition [-Wold-style-definition] 503 | expWriteChars(esPtr,buffer,lenBytes) | ^~~~~~~~~~~~~ exp_chan.c: In function 'expWriteCharsUni': exp_chan.c:526:1: warning: old-style function definition [-Wold-style-definition] 526 | expWriteCharsUni(esPtr,buffer,lenChars) | ^~~~~~~~~~~~~~~~ exp_chan.c: In function 'expStateFree': exp_chan.c:545:1: warning: old-style function definition [-Wold-style-definition] 545 | expStateFree(esPtr) | ^~~~~~~~~~~~ exp_chan.c: In function 'exp_close_all': exp_chan.c:566:1: warning: old-style function definition [-Wold-style-definition] 566 | exp_close_all(interp) | ^~~~~~~~~~~~~ exp_chan.c: In function 'expCreateChannel': exp_chan.c:678:1: warning: old-style function definition [-Wold-style-definition] 678 | expCreateChannel(interp,fdin,fdout,pid) | ^~~~~~~~~~~~~~~~ gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_log.c` -o exp_log.o exp_log.c: In function 'expWriteBytesAndLogIfTtyU': exp_log.c:83:1: warning: old-style function definition [-Wold-style-definition] 83 | expWriteBytesAndLogIfTtyU(esPtr,buf,lenChars) | ^~~~~~~~~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogDiagU': exp_log.c:112:1: warning: old-style function definition [-Wold-style-definition] 112 | expLogDiagU(buf) | ^~~~~~~~~~~ exp_log.c: In function 'expLogInteractionU': exp_log.c:131:1: warning: old-style function definition [-Wold-style-definition] 131 | expLogInteractionU(esPtr,buf,buflen) | ^~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expStdoutLogU': exp_log.c:193:1: warning: old-style function definition [-Wold-style-definition] 193 | expStdoutLogU(buf,force_stdout) | ^~~~~~~~~~~~~ exp_log.c: In function 'expErrorLogU': exp_log.c:242:1: warning: old-style function definition [-Wold-style-definition] 242 | expErrorLogU(buf) | ^~~~~~~~~~~~ exp_log.c: In function 'expDiagLogU': exp_log.c:285:1: warning: old-style function definition [-Wold-style-definition] 285 | expDiagLogU(str) | ^~~~~~~~~~~ exp_log.c: In function 'expPrintf': exp_log.c:307:9: warning: variable 'fmt' set but not used [-Wunused-but-set-variable] 307 | char *fmt; | ^~~ exp_log.c: In function 'expDiagToStderrSet': exp_log.c:323:1: warning: old-style function definition [-Wold-style-definition] 323 | expDiagToStderrSet(val) | ^~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expDiagChannelClose': exp_log.c:346:1: warning: old-style function definition [-Wold-style-definition] 346 | expDiagChannelClose(interp) | ^~~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expDiagChannelOpen': exp_log.c:361:1: warning: old-style function definition [-Wold-style-definition] 361 | expDiagChannelOpen(interp,filename) | ^~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expDiagWriteObj': exp_log.c:391:1: warning: old-style function definition [-Wold-style-definition] 391 | expDiagWriteObj(obj) | ^~~~~~~~~~~~~~~ exp_log.c: In function 'expDiagWriteBytes': exp_log.c:403:1: warning: old-style function definition [-Wold-style-definition] 403 | expDiagWriteBytes(str,len) | ^~~~~~~~~~~~~~~~~ exp_log.c: In function 'expDiagWriteChars': exp_log.c:416:1: warning: old-style function definition [-Wold-style-definition] 416 | expDiagWriteChars(str,len) | ^~~~~~~~~~~~~~~~~ exp_log.c: In function 'expDiagWriteCharsUni': exp_log.c:429:1: warning: old-style function definition [-Wold-style-definition] 429 | expDiagWriteCharsUni(str,len) | ^~~~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogChannelClose': exp_log.c:453:1: warning: old-style function definition [-Wold-style-definition] 453 | expLogChannelClose(interp) | ^~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogChannelOpen': exp_log.c:478:1: warning: old-style function definition [-Wold-style-definition] 478 | expLogChannelOpen(interp,filename,append) | ^~~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogAppendSet': exp_log.c:524:1: warning: old-style function definition [-Wold-style-definition] 524 | expLogAppendSet(app) | ^~~~~~~~~~~~~~~ exp_log.c: In function 'expLogAllSet': exp_log.c:539:1: warning: old-style function definition [-Wold-style-definition] 539 | expLogAllSet(app) | ^~~~~~~~~~~~ exp_log.c: In function 'expLogToStdoutSet': exp_log.c:555:1: warning: old-style function definition [-Wold-style-definition] 555 | expLogToStdoutSet(app) | ^~~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogLeaveOpenSet': exp_log.c:570:1: warning: old-style function definition [-Wold-style-definition] 570 | expLogLeaveOpenSet(app) | ^~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogChannelSet': exp_log.c:586:1: warning: old-style function definition [-Wold-style-definition] 586 | expLogChannelSet(interp,name) | ^~~~~~~~~~~~~~~~ exp_log.c: In function 'expLogUserSet': exp_log.c:622:1: warning: old-style function definition [-Wold-style-definition] 622 | expLogUserSet(logUser) | ^~~~~~~~~~~~~ exp_log.c: In function 'expPrintifyReal': exp_log.c:635:1: warning: old-style function definition [-Wold-style-definition] 635 | expPrintifyReal(s) | ^~~~~~~~~~~~~~~ exp_log.c: In function 'expPrintifyRealUni': exp_log.c:675:1: warning: old-style function definition [-Wold-style-definition] 675 | expPrintifyRealUni(s,numchars) | ^~~~~~~~~~~~~~~~~~ exp_log.c: In function 'expPrintifyObj': exp_log.c:716:1: warning: old-style function definition [-Wold-style-definition] 716 | expPrintifyObj(obj) | ^~~~~~~~~~~~~~ exp_log.c: In function 'expPrintify': exp_log.c:728:1: warning: old-style function definition [-Wold-style-definition] 728 | expPrintify(s) /* INTL */ | ^~~~~~~~~~~ exp_log.c: In function 'expPrintifyUni': exp_log.c:740:1: warning: old-style function definition [-Wold-style-definition] 740 | expPrintifyUni(s,numchars) /* INTL */ | ^~~~~~~~~~~~~~ exp_log.c: In function 'expWriteBytesAndLogIfTtyU': exp_log.c:101:12: warning: 'wc' may be used uninitialized [-Wmaybe-uninitialized] 101 | return wc; | ^~ exp_log.c:88:9: note: 'wc' was declared here 88 | int wc; | ^~ gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo Dbg.c` -o Dbg.o Dbg.c: In function 'breakpoint_print': Dbg.c:127:1: warning: old-style function definition [-Wold-style-definition] 127 | breakpoint_print(interp,b) | ^~~~~~~~~~~~~~~~ Dbg.c: In function 'save_re_matches': Dbg.c:154:1: warning: old-style function definition [-Wold-style-definition] 154 | save_re_matches(interp, re, objPtr) | ^~~~~~~~~~~~~~~ Dbg.c: In function 'breakpoint_test': Dbg.c:178:1: warning: old-style function definition [-Wold-style-definition] 178 | breakpoint_test(interp,cmd,bp) | ^~~~~~~~~~~~~~~ Dbg.c: In function 'TclGetFrame2': Dbg.c:232:1: warning: old-style function definition [-Wold-style-definition] 232 | TclGetFrame2(interp, origFramePtr, string, framePtrPtr, dir) | ^~~~~~~~~~~~ Dbg.c: In function 'printify': Dbg.c:306:14: warning: old-style function definition [-Wold-style-definition] 306 | static char *printify(s) | ^~~~~~~~ Dbg.c: In function 'print_argv': Dbg.c:356:1: warning: old-style function definition [-Wold-style-definition] 356 | print_argv(interp,argc,argv) | ^~~~~~~~~~ Dbg.c: In function 'print_objv': Dbg.c:439:1: warning: old-style function definition [-Wold-style-definition] 439 | print_objv(interp,objc,objv) | ^~~~~~~~~~ Dbg.c: In function 'PrintStackBelow': Dbg.c:458:1: warning: old-style function definition [-Wold-style-definition] 458 | PrintStackBelow(interp,curf,viewf) | ^~~~~~~~~~~~~~~ Dbg.c: In function 'PrintStack': Dbg.c:485:1: warning: old-style function definition [-Wold-style-definition] 485 | PrintStack(interp,curf,viewf,objc,objv,level) | ^~~~~~~~~~ Dbg.c: In function 'GoalFrame': Dbg.c:506:1: warning: old-style function definition [-Wold-style-definition] 506 | GoalFrame(goal,iptr) | ^~~~~~~~~ Dbg.c: In function 'debugger_trap': Dbg.c:559:1: warning: old-style function definition [-Wold-style-definition] 559 | debugger_trap(clientData,interp,level,command,commandInfo,objc,objv) | ^~~~~~~~~~~~~ Dbg.c:632:9: warning: enumeration value 'none' not handled in switch [-Wswitch] 632 | switch (debug_cmd) { | ^~~~~~ Dbg.c:632:9: warning: enumeration value 'up' not handled in switch [-Wswitch] Dbg.c:632:9: warning: enumeration value 'down' not handled in switch [-Wswitch] Dbg.c:632:9: warning: enumeration value 'where' not handled in switch [-Wswitch] Dbg.c:698:9: warning: enumeration value 'none' not handled in switch [-Wswitch] 698 | switch (debug_cmd) { | ^~~~~~ Dbg.c:698:9: warning: enumeration value 'up' not handled in switch [-Wswitch] Dbg.c:698:9: warning: enumeration value 'down' not handled in switch [-Wswitch] Dbg.c: In function 'cmdNext': Dbg.c:733:1: warning: old-style function definition [-Wold-style-definition] 733 | cmdNext(clientData, interp, objc, objv) | ^~~~~~~ Dbg.c: In function 'cmdDir': Dbg.c:757:1: warning: old-style function definition [-Wold-style-definition] 757 | cmdDir(clientData, interp, objc, objv) | ^~~~~~ Dbg.c: In function 'cmdSimple': Dbg.c:779:1: warning: old-style function definition [-Wold-style-definition] 779 | cmdSimple(clientData, interp, objc, objv) | ^~~~~~~~~ Dbg.c: In function 'breakpoint_destroy': Dbg.c:794:1: warning: old-style function definition [-Wold-style-definition] 794 | breakpoint_destroy(b) | ^~~~~~~~~~~~~~~~~~ Dbg.c: In function 'savestr': Dbg.c:819:1: warning: old-style function definition [-Wold-style-definition] 819 | savestr(objPtr,str) | ^~~~~~~ Dbg.c: In function 'cmdWhere': Dbg.c:830:1: warning: old-style function definition [-Wold-style-definition] 830 | cmdWhere(clientData, interp, objc, objv) | ^~~~~~~~ Dbg.c: In function 'cmdBreak': Dbg.c:902:1: warning: old-style function definition [-Wold-style-definition] 902 | cmdBreak(clientData, interp, objc, objv) | ^~~~~~~~ Dbg.c: In function 'cmdHelp': Dbg.c:1110:1: warning: old-style function definition [-Wold-style-definition] 1110 | cmdHelp(clientData, interp, objc, objv) | ^~~~~~~ Dbg.c: In function 'Dbg_Interactor': Dbg.c:1159:1: warning: old-style function definition [-Wold-style-definition] 1159 | Dbg_Interactor(interp,inter_proc,data) | ^~~~~~~~~~~~~~ Dbg.c: In function 'Dbg_IgnoreFuncs': Dbg.c:1175:1: warning: old-style function definition [-Wold-style-definition] 1175 | Dbg_IgnoreFuncs(interp,proc) | ^~~~~~~~~~~~~~~ Dbg.c: In function 'Dbg_Output': Dbg.c:1186:1: warning: old-style function definition [-Wold-style-definition] 1186 | Dbg_Output(interp,proc,data) | ^~~~~~~~~~ Dbg.c: In function 'Dbg_Active': Dbg.c:1202:1: warning: old-style function definition [-Wold-style-definition] 1202 | Dbg_Active(interp) | ^~~~~~~~~~ Dbg.c: In function 'Dbg_ArgcArgv': Dbg.c:1209:1: warning: old-style function definition [-Wold-style-definition] 1209 | Dbg_ArgcArgv(argc,argv,copy) | ^~~~~~~~~~~~ Dbg.c: In function 'init_debugger': Dbg.c:1383:1: warning: old-style function definition [-Wold-style-definition] 1383 | init_debugger(interp) | ^~~~~~~~~~~~~ Dbg.c: In function 'Dbg_On': Dbg.c:1408:1: warning: old-style function definition [-Wold-style-definition] 1408 | Dbg_On(interp,immediate) | ^~~~~~ Dbg.c: In function 'Dbg_Off': Dbg.c:1435:1: warning: old-style function definition [-Wold-style-definition] 1435 | Dbg_Off(interp) | ^~~~~~~ Dbg.c: In function 'Dbg_StdinMode': Dbg.c:1458:1: warning: old-style function definition [-Wold-style-definition] 1458 | Dbg_StdinMode(mode) | ^~~~~~~~~~~~~ In function 'TclGetFrame2', inlined from 'debugger_trap' at Dbg.c:682:13: Dbg.c:292:24: warning: 'framePtr' may be used uninitialized [-Wmaybe-uninitialized] 292 | for (;framePtr != NULL; framePtr = framePtr->callerVarPtr) { | ^ Dbg.c: In function 'debugger_trap': Dbg.c:242:16: note: 'framePtr' was declared here 242 | CallFrame *framePtr; /* frame currently being searched */ | ^~~~~~~~ gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_inter.c` -o exp_inter.o 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: In function 'Exp_InteractObjCmd': exp_inter.c:1412:38: warning: 'previous_time' may be used uninitialized [-Wmaybe-uninitialized] 1412 | time_diff = current_time - previous_time; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ exp_inter.c:1347:16: note: 'previous_time' was declared here 1347 | time_t previous_time; | ^~~~~~~~~~~~~ exp_inter.c:1404:34: warning: 'soonest_input' may be used uninitialized [-Wmaybe-uninitialized] 1404 | u = soonest_input->i_list->state_list->esPtr; | ~~~~~~~~~~~~~^~~~~~~~ exp_inter.c:1355:23: note: 'soonest_input' was declared here 1355 | struct input *soonest_input; | ^~~~~~~~~~~~~ In function 'intEcho', inlined from 'Exp_InteractObjCmd' at exp_inter.c:1487:6: exp_inter.c:420:12: warning: 'echoBytes' may be used uninitialized [-Wmaybe-uninitialized] 420 | (void) expWriteCharsUni(esPtr, | ^~~~~~~~~~~~~~~~~~~~~~~ 421 | esPtr->input.buffer + offsetBytes, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 422 | echoBytes); | ~~~~~~~~~~ exp_inter.c: In function 'Exp_InteractObjCmd': exp_inter.c:407:9: note: 'echoBytes' was declared here 407 | int echoBytes; | ^~~~~~~~~ In function 'intEcho', inlined from 'Exp_InteractObjCmd' at exp_inter.c:1487:6: exp_inter.c:421:49: warning: 'offsetBytes' may be used uninitialized [-Wmaybe-uninitialized] 421 | esPtr->input.buffer + offsetBytes, | ^ exp_inter.c: In function 'Exp_InteractObjCmd': exp_inter.c:408:9: note: 'offsetBytes' was declared here 408 | int offsetBytes; | ^~~~~~~~~~~ gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo exp_strf.c` -o exp_strf.o exp_strf.c: In function 'range': exp_strf.c:138:1: warning: old-style function definition [-Wold-style-definition] 138 | range(low,item,hi) | ^~~~~ gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=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 -DRETSIGTYPE=void -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=\"/usr/lib/expect5.45.4\" -DEXECSCRIPTDIR=\"/usr/lib64/tcl8.6/expect5.45.4\" -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/usr/include/tcl-private/generic" -I"/usr/include/tcl-private/unix" -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo expect.c` -o expect.o In file included from expect.c:44: retoglob.c: In function 'ExpChopNested': retoglob.c:519:1: warning: old-style function definition [-Wold-style-definition] 519 | ExpChopNested (xstr,xstrlen, open, close) | ^~~~~~~~~~~~~ retoglob.c: In function 'ExpLiteral': retoglob.c:548:1: warning: old-style function definition [-Wold-style-definition] 548 | ExpLiteral (nexto, str, strlen) | ^~~~~~~~~~ retoglob.c: In function 'ExpBackslash': retoglob.c:570:1: warning: old-style function definition [-Wold-style-definition] 570 | ExpBackslash (prefix, str, strlen) | ^~~~~~~~~~~~ retoglob.c: In function 'ExpCollapseStar': retoglob.c:597:1: warning: old-style function definition [-Wold-style-definition] 597 | ExpCollapseStar (src, last) | ^~~~~~~~~~~~~~~ retoglob.c: In function 'ExpCollapseQForward': retoglob.c:644:1: warning: old-style function definition [-Wold-style-definition] 644 | ExpCollapseQForward (src, last) | ^~~~~~~~~~~~~~~~~~~ retoglob.c: In function 'ExpCollapseQBack': retoglob.c:692:1: warning: old-style function definition [-Wold-style-definition] 692 | ExpCollapseQBack (src, last) | ^~~~~~~~~~~~~~~~ retoglob.c: In function 'ExpCountStar': retoglob.c:734:1: warning: old-style function definition [-Wold-style-definition] 734 | ExpCountStar (src, last) | ^~~~~~~~~~~~ expect.c: In function 'exp_eval_with_one_arg': expect.c:287:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable] 287 | int rc; | ^~ expect.c: In function 'expIRead': expect.c:1765:9: warning: variable 'size' set but not used [-Wunused-but-set-variable] 1765 | int size; | ^~~~ expect.c: In function 'Exp_ExpectObjCmd': expect.c:2547:12: warning: variable 'start_time' set but not used [-Wunused-but-set-variable] 2547 | time_t start_time = 0; /* time when restart label hit */ | ^~~~~~~~~~ expect.c: In function 'process_di.constprop': expect.c:2955:12: warning: 'esPtr' may be used uninitialized [-Wmaybe-uninitialized] 2955 | *esOut = esPtr; | ~~~~~~~^~~~~~~ expect.c:2902:15: note: 'esPtr' was declared here 2902 | ExpState *esPtr; | ^~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.lA9f92 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.lA9f92 (%build) I: [iurt_root_command] ERROR: chroot