=>> Building net/rdist7 build started at Fri Mar 13 11:52:03 EDT 2026 port directory: /usr/ports/net/rdist7 package name: rdist7-7.0.0.a10 building for: FreeBSD pkg.DaveG.ca 14.4-RELEASE FreeBSD 14.4-RELEASE 1404000 amd64 maintained by: cy@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 771 Aug 27 2024 /usr/ports/net/rdist7/Makefile Ports top last git commit: 26b198eb3ee3 Ports top unclean checkout: no Port dir last git commit: 274b151af7de Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500068 Jail OSVERSION: 1404000 Job Id: 12 ---Begin Environment--- SHELL=/bin/sh OSVERSION=1404000 UNAME_v=FreeBSD 14.4-RELEASE 1404000 UNAME_r=14.4-RELEASE BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.2 MASTERMNT=/usr/local/poudriere/data/.m/freebsd_14_4_x64-HEAD-ALL/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=tmux-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/freebsd_14_4_x64-HEAD-ALL/12/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_14_4_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_14_4_x64-HEAD-ALL/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ---End OPTIONS List--- --MAINTAINER-- cy@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --prefix=/wrkdirs/usr/ports/net/rdist7/work/stage//usr/local ${_LATE_CONFIGURE_ARGS} --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- MAKE=/usr/local/bin/gmake XDG_DATA_HOME=/wrkdirs/usr/ports/net/rdist7/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/rdist7/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/rdist7/work/.cache HOME=/wrkdirs/usr/ports/net/rdist7/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net/rdist7/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/rdist7/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CONFIG_SITE=/usr/ports/Templates/config.site lt_cv_sys_max_cmd_len=524288 --End CONFIGURE_ENV-- --MAKE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net/rdist7/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/rdist7/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/rdist7/work/.cache HOME=/wrkdirs/usr/ports/net/rdist7/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net/rdist7/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/rdist7/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- OSREL=14.4 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/rdist" EXAMPLESDIR="share/examples/rdist" DATADIR="share/rdist" WWWDIR="www/rdist" ETCDIR="etc/rdist" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/rdist DOCSDIR=/usr/local/share/doc/rdist EXAMPLESDIR=/usr/local/share/examples/rdist WWWDIR=/usr/local/www/rdist ETCDIR=/usr/local/etc/rdist --End SUB_LIST-- ---Begin make.conf--- DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited pipebuf (-y) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> rdist7-7.0.0.a10 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.6.2.pkg [pkg.DaveG.ca] Installing pkg-2.6.2... [pkg.DaveG.ca] Extracting pkg-2.6.2: .......... done ===> rdist7-7.0.0.a10 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of rdist7-7.0.0.a10 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by rdist7-7.0.0.a10 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by rdist7-7.0.0.a10 for building => SHA256 Checksum OK for rdist-7.0.0-alpha10.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by rdist7-7.0.0.a10 for building ===> Extracting for rdist7-7.0.0.a10 => SHA256 Checksum OK for rdist-7.0.0-alpha10.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for rdist7-7.0.0.a10 ===> Applying FreeBSD patches for rdist7-7.0.0.a10 from /usr/ports/net/rdist7/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> rdist7-7.0.0.a10 depends on package: gmake>=4.4.1 - not found ===> Installing existing package /packages/All/gmake-4.4.1.pkg [pkg.DaveG.ca] Installing gmake-4.4.1... [pkg.DaveG.ca] `-- Installing gettext-runtime-0.26... [pkg.DaveG.ca] | `-- Installing indexinfo-0.3.1_1... [pkg.DaveG.ca] | `-- Extracting indexinfo-0.3.1_1: . done [pkg.DaveG.ca] `-- Extracting gettext-runtime-0.26: .......... done [pkg.DaveG.ca] Extracting gmake-4.4.1: .......... done ===> rdist7-7.0.0.a10 depends on package: gmake>=4.4.1 - found ===> Returning to build of rdist7-7.0.0.a10 ===> rdist7-7.0.0.a10 depends on file: /usr/local/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg.DaveG.ca] Installing ccache-3.7.12_8... [pkg.DaveG.ca] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> rdist7-7.0.0.a10 depends on file: /usr/local/bin/ccache - found ===> Returning to build of rdist7-7.0.0.a10 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for rdist7-7.0.0.a10 loading site script /usr/ports/Templates/config.site creating cache ./config.cache checking prefix... /wrkdirs/usr/ports/net/rdist7/work/stage//usr/local checking mandir... /wrkdirs/usr/ports/net/rdist7/work/stage//usr/local/share/man checking for gcc... cc checking whether the C compiler (cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing ) works... yes checking whether the C compiler (cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking for cc make dependency flag... -M checking for a BSD compatible install... /usr/bin/install -c checking for byacc... byacc checking for groff... no checking for nroff... no checking for man2html... no checking for tbl... no checking for socket in -lsocket... no checking for elf_version in -lelf... yes checking for main in -lnsl... no checking for needed libraries... checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking how to run the C preprocessor... cpp checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for a.out.h... yes checking for alloca.h... (cached) no checking for elf.h... (cached) yes checking for fcntl.h... (cached) yes checking for filehdr.h... no checking for limits.h... (cached) yes checking for mntent.h... no checking for sys/mntent.h... no checking for mnttab.h... no checking for sys/mnttab.h... no checking for netdb.h... (cached) yes checking for paths.h... (cached) yes checking for regex.h... yes checking for stdarg.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for sys/loader.h... no checking for mach-o/loader.h... no checking for sys/mntctl.h... no checking for sys/mount.h... (cached) yes checking for sys/param.h... (cached) yes checking for sys/select.h... (cached) yes checking for sys/statfs.h... no checking for sys/statvfs.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/vfs.h... no checking for unistd.h... (cached) yes checking for utime.h... (cached) yes checking for varargs.h... no checking for working const... yes checking whether byte ordering is bigendian... no checking for uid_t in sys/types.h... (cached) yes checking for mode_t... (cached) yes checking for off_t... (cached) yes checking for pid_t... (cached) yes checking for size_t... (cached) yes checking for ulong... no checking for void... yes checking for const... yes checking type of array argument to getgroups... gid_t checking whether cc needs -traditional... no checking for 8-bit clean memcmp... yes checking return type of signal handlers... void checking for vfork.h... (cached) no checking for working vfork... yes checking for vprintf... (cached) yes checking for wait3 that fills in rusage... (cached) yes checking for endmntent... no checking for fchmod... (cached) yes checking for fchown... (cached) yes checking for lchown... yes checking for fsync... (cached) yes checking for ftruncate... yes checking for getfsstat... yes checking for getmnt... no checking for getmntent... no checking for getvfsbyname... yes checking for hasmntopt... no checking for memcpy... (cached) yes checking for memset... (cached) yes checking for mntctl... no checking for putenv... (cached) yes checking for re_comp... no checking for regcmp... no checking for regcomp... yes checking for regexec... yes checking for regerror... yes checking for select... (cached) yes checking for setenv... (cached) yes checking for setlinebuf... (cached) yes checking for setvbuf... (cached) yes checking for setmntent... no checking for setreuid... (cached) yes checking for sigemptyset... yes checking for sigaddset... yes checking for sigprocmask... (cached) yes checking for sigblock... (cached) yes checking for sigsetmask... (cached) yes checking for snprintf... (cached) yes checking for socketpair... (cached) yes checking for spipe... no checking for statfs... (cached) yes checking for statvfs... (cached) yes checking for strcasecmp... (cached) yes checking for strchr... (cached) yes checking for strdup... (cached) yes checking for strerror... (cached) yes checking for strrchr... (cached) yes checking for strtol... (cached) yes checking for strtoll... (cached) yes checking for strunvis... yes checking for strvis... yes checking for utime... (cached) yes checking for utimes... (cached) yes checking for vsnprintf... (cached) yes checking for vsprintf... (cached) yes checking for wait4... (cached) yes checking for waitpid... (cached) yes checking for zwrite... no checking for missing functions to compile... hasmntopt.o zopen.o checking for POSIX style signals... yes checking for POSIX style regex... yes checking for POSIX style saved IDs... yes checking for statfs type... no checking for struct statfs... yes checking for struct statvfs... yes checking for struct fs_data... no checking for write return type... ssize_t checking for write amount type... size_t checking for non-blocking I/O type... FCNTL checking for close-on-exec type... FCNTL checking executable type... ELF_AND_AOUT checking for remote shell program... checking for sendmail... /usr/sbin/sendmail checking for GNU make... gnumake WARNING: The GNU make program is required to build this software.. Use of other versions of make will not work. Please make sure to use "gnumake" when building this software. updating cache ./config.cache creating ./config.status creating Makefile creating GNUmakefile creating src/GNUmakefile creating dist/GNUmakefile creating doc/GNUmakefile creating include/GNUmakefile creating support/GNUmakefile creating mf/Vars.mf creating configvars.sh creating include/autoconfig.h =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for rdist7-7.0.0.a10 gmake[1]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10' Making "all" in "src" gmake[2]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/src' Building dependencies for common.c Building dependencies for message.c Building dependencies for setargs.c Building dependencies for protocmds.c byacc -d gram.y mv -f y.tab.c gram.c Building dependencies for gram.c Building dependencies for rdist.c Building dependencies for client.c Building dependencies for child.c Building dependencies for docmd.c Building dependencies for distopt.c Building dependencies for expand.c Building dependencies for lookup.c Building dependencies for isexec.c Building dependencies for rshrcmd.c Building dependencies for rdistd.c Building dependencies for server.c Building dependencies for filesys.c Building dependencies for filesys-os.c Building dependencies for relsymlink.c Building dependencies for common.c Building dependencies for message.c Building dependencies for setargs.c Building dependencies for protocmds.c cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o gram.o gram.c gram.y:373:12: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | if (any(c, quotechars)) | ^ gram.y:375:10: warning: implicit conversion from 'int' to 'char' changes value from 160 to -96 [-Wconstant-conversion] 374 | yytext = xappend(yytext, &yytextlen, | ~~~~~~~ 375 | QUOTECHAR); | ^~~~~~~~~ ../include/defs.h:143:19: note: expanded from macro 'QUOTECHAR' 143 | #define QUOTECHAR 160 /* quote next character */ | ^~~ gram.y:383:22: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 383 | if (c == EOF || any(c, " \"'\t()=;:\n")) { | ^ gram.y:401:21: warning: passing arguments to 'parsedistopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | if (parsedistopts(&yytext[2], &opt, TRUE)) { | ^ gram.y:452:28: warning: passing arguments to 'makesubcmd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | yylval.subcmd = makesubcmd(c); | ^ gram.y:460:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | extern int any(c, str) | ^ In file included from gram.y:88: ../include/defs.h:322:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 322 | extern int any(); | ^ gram.y:484:35: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | files, hosts, subcmds, getnlstr(files)); | ^ gram.y:486:16: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | files = expand(files, E_VARS|E_SHELL); | ^ gram.y:487:16: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | hosts = expand(hosts, E_ALL); | ^ gram.y:512:8: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 512 | nc = ALLOC(cmd); | ^ ../include/defs.h:179:39: note: expanded from macro 'ALLOC' 179 | #define ALLOC(x) (struct x *) xcalloc(1, sizeof(struct x)) | ^ gram.y:474:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | insert(label, files, hosts, subcmds) | ^ gram.y:549:6: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | c = ALLOC(cmd); | ^ ../include/defs.h:179:39: note: expanded from macro 'ALLOC' 179 | #define ALLOC(x) (struct x *) xcalloc(1, sizeof(struct x)) | ^ gram.y:553:21: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | c->c_files = expand(files, E_ALL); | ^ gram.y:541:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | append(label, files, stamp, subcmds) | ^ gram.y:568:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | yyerror(s) | ^ gram.y:606:7: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | nl = ALLOC(namelist); | ^ ../include/defs.h:179:39: note: expanded from macro 'ALLOC' 179 | #define ALLOC(x) (struct x *) xcalloc(1, sizeof(struct x)) | ^ gram.y:599:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | makenl(name) | ^ In file included from gram.y:88: ../include/defs.h:349:26: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 349 | struct namelist *makenl(); | ^ gram.y:618:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | innl(nl, p) | ^ gram.y:637:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 637 | n1 = expand(n1, E_VARS); | ^ gram.y:638:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 638 | n2 = expand(n2, E_VARS); | ^ gram.y:632:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | addnl(n1, n2) | ^ gram.y:97:25: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 97 | static struct namelist *addnl(), *subnl(), *andnl(); | ^ gram.y:661:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 661 | n1 = expand(n1, E_VARS); | ^ gram.y:662:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 662 | n2 = expand(n2, E_VARS); | ^ gram.y:656:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 656 | subnl(n1, n2) | ^ gram.y:97:35: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 97 | static struct namelist *addnl(), *subnl(), *andnl(); | ^ gram.y:681:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | n1 = expand(n1, E_VARS); | ^ gram.y:682:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | n2 = expand(n2, E_VARS); | ^ gram.y:676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | andnl(n1, n2) | ^ gram.y:97:45: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 97 | static struct namelist *addnl(), *subnl(), *andnl(); | ^ gram.y:701:7: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | sc = ALLOC(subcmd); | ^ ../include/defs.h:179:39: note: expanded from macro 'ALLOC' 179 | #define ALLOC(x) (struct x *) xcalloc(1, sizeof(struct x)) | ^ gram.y:696:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | makesubcmd(type) | ^ In file included from gram.y:88: ../include/defs.h:331:31: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 331 | extern struct subcmd *makesubcmd(); | ^ gram.y:138:17: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | (void) lookup(yystack.l_mark[-2].string, INSERT, yystack.l_mark[0].namel); | ^ gram.y:210:16: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | nl = expand(yystack.l_mark[-1].namel, E_VARS); | ^ gram.y:223:48: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | yystack.l_mark[-2].subcmd->sc_args = expand(yystack.l_mark[-1].namel, E_VARS); | ^ gram.y:228:48: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | yystack.l_mark[-2].subcmd->sc_args = expand(yystack.l_mark[-1].namel, E_ALL); | ^ gram.y:249:66: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | yystack.l_mark[-2].subcmd->sc_args = expand(yystack.l_mark[-1].namel, E_VARS); | ^ gram.y:263:48: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | yystack.l_mark[-3].subcmd->sc_args = expand(yystack.l_mark[-2].namel, E_ALL); | ^ gram.y:269:48: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | yystack.l_mark[-3].subcmd->sc_args = expand(yystack.l_mark[-2].namel, E_ALL); | ^ 42 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o rdist.o rdist.c rdist.c:113:35: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | new = (struct namelist *) xmalloc(sizeof(struct namelist)); | ^ rdist.c:104:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | static void addhostlist(name, hostlist) | ^ rdist.c:125:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 125 | main(argc, argv, envp) | ^ | int rdist.c:143:23: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | if (cp = msgparseopts(localmsglist, TRUE)) { | ^ rdist.c:143:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 143 | if (cp = msgparseopts(localmsglist, TRUE)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdist.c:143:9: note: place parentheses around the assignment to silence this warning 143 | if (cp = msgparseopts(localmsglist, TRUE)) { | ^ | ( ) rdist.c:143:9: note: use '==' to turn this assignment into an equality comparison 143 | if (cp = msgparseopts(localmsglist, TRUE)) { | ^ | == rdist.c:146:3: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 146 | usage(); | ^ rdist.c:150:20: warning: passing arguments to 'parsedistopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | if (parsedistopts(cp, &options, TRUE)) { | ^ rdist.c:156:10: warning: passing arguments to 'init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | if (init(argc, argv, envp) < 0) | ^ rdist.c:169:41: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | (void) execl(_PATH_OLDRDIST, xbasename(_PATH_OLDRDIST), | ^ rdist.c:194:25: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | if (cp = msgparseopts(optarg, TRUE)) { | ^ rdist.c:194:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 194 | if (cp = msgparseopts(optarg, TRUE)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdist.c:194:11: note: place parentheses around the assignment to silence this warning 194 | if (cp = msgparseopts(optarg, TRUE)) { | ^ | ( ) rdist.c:194:11: note: use '==' to turn this assignment into an equality comparison 194 | if (cp = msgparseopts(optarg, TRUE)) { | ^ | == rdist.c:196:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 196 | usage(); | ^ rdist.c:210:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 210 | usage(); | ^ rdist.c:247:4: warning: call to undeclared function 'define'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 247 | define(optarg); | ^ rdist.c:252:25: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | if (cp = msgparseopts("stdout=all,debug", TRUE)) { | ^ rdist.c:252:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 252 | if (cp = msgparseopts("stdout=all,debug", TRUE)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdist.c:252:11: note: place parentheses around the assignment to silence this warning 252 | if (cp = msgparseopts("stdout=all,debug", TRUE)) { | ^ | ( ) rdist.c:252:11: note: use '==' to turn this assignment into an equality comparison 252 | if (cp = msgparseopts("stdout=all,debug", TRUE)) { | ^ | == rdist.c:254:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 254 | usage(); | ^ rdist.c:271:21: warning: passing arguments to 'parsedistopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | if (parsedistopts(optarg, &options, TRUE)) { | ^ rdist.c:274:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 274 | usage(); | ^ rdist.c:281:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 281 | usage(); | ^ rdist.c:289:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 289 | usage(); | ^ rdist.c:291:23: warning: passing arguments to 'searchpath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | if (cp = searchpath(optarg)) | ^ rdist.c:291:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 291 | if (cp = searchpath(optarg)) | ~~~^~~~~~~~~~~~~~~~~~~~ rdist.c:291:11: note: place parentheses around the assignment to silence this warning 291 | if (cp = searchpath(optarg)) | ^ | ( ) rdist.c:291:11: note: use '==' to turn this assignment into an equality comparison 291 | if (cp = searchpath(optarg)) | ^ | == rdist.c:296:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 296 | usage(); | ^ rdist.c:321:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 321 | usage(); | ^ rdist.c:326:3: warning: call to undeclared function 'msgprconfig'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 326 | msgprconfig(); | ^ rdist.c:340:3: warning: call to undeclared function 'docmdargs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 340 | docmdargs(realargc - optind, &realargv[optind]); | ^ rdist.c:343:18: warning: passing arguments to 'opendist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | fin = opendist(distfile); | ^ rdist.c:344:10: warning: call to undeclared function 'yyparse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 344 | (void) yyparse(); | ^ rdist.c:351:10: warning: passing arguments to 'docmds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | docmds(hostlist, realargc-optind, &realargv[optind]); | ^ rdist.c:125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | main(argc, argv, envp) | ^ rdist.c:360:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 360 | FILE *opendist(distfile) | ^ rdist.c:97:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 97 | FILE *opendist(); | ^ rdist.c:395:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 395 | usage() | ^ | int rdist.c:426:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 426 | docmdargs(nargs, args) | ^ | int rdist.c:444:14: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | nl = makenl(args[i]); | ^ rdist.c:457:16: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 457 | hosts = expand(&tnl, E_ALL); | ^ rdist.c:464:20: warning: passing arguments to 'makesubcmd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | cmds = makesubcmd(INSTALL); | ^ rdist.c:469:55: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | debugmsg(DM_MISC, "docmdargs()\nfiles = %s", getnlstr(files)); | ^ rdist.c:470:41: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | debugmsg(DM_MISC, "host = %s", getnlstr(hosts)); | ^ rdist.c:472:2: warning: call to undeclared function 'insert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 472 | insert((char *)NULL, files, hosts, cmds); | ^ rdist.c:473:8: warning: passing arguments to 'docmds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | docmds(0, (char **)NULL, 0); | ^ rdist.c:426:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 426 | docmdargs(nargs, args) | ^ rdist.c:474:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 474 | } | ^ rdist.c:479:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | extern char *getnlstr(nl) | ^ In file included from rdist.c:80: ../include/defs.h:315:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 315 | extern char *getnlstr(); | ^ 46 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o client.o client.c client.c:111:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | char *remfilename(src, dest, path, rname, destdir) | ^ client.c:175:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | int inlist(list, file) | ^ client.c:187:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 187 | DumpNames(subcmd) | ^ | int client.c:187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] client.c:194:1: warning: non-void function does not return a value [-Wreturn-type] 194 | } | ^ client.c:223:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 223 | (void) sendcmd(C_SPECIAL, | ^ client.c:227:25: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | E_BASEFILE, xbasename(rfile), | ^ client.c:230:10: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 230 | while (response() > 0) | ^ client.c:199:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | static void runspecial(starget, opts, rname, destdir) | ^ client.c:260:36: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | new = (struct namelist *) xcalloc(1, sizeof(struct namelist)); | ^ client.c:239:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | static void addcmdspecialfile(starget, rname, destdir) | ^ client.c:307:12: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 307 | (void) sendcmd(C_CMDSPECIAL, NULL); | ^ client.c:308:9: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 308 | if (response() < 0) | ^ client.c:312:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 312 | (void) sendcmd(RC_FILE, f->n_name); | ^ client.c:313:8: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 313 | if (response() < 0) | ^ client.c:317:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 317 | (void) sendcmd(C_CMDSPECIAL, NULL); | ^ client.c:318:8: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 318 | if (response() < 0) | ^ client.c:323:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 323 | (void) sendcmd(RC_COMMAND, sc->sc_name); | ^ client.c:324:10: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 324 | while (response() > 0) | ^ client.c:289:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | extern void runcmdspecial(cmd, opts) | ^ In file included from client.c:84: ../include/defs.h:342:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 342 | extern void runcmdspecial(); | ^ client.c:334:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | int checkfilename(name) | ^ client.c:355:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | void freelinkinfo(lp) | ^ client.c:382:33: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | lp = (struct linkbuf *) xmalloc(sizeof(*lp)); | ^ client.c:370:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | static struct linkbuf *linkinfo(statp) | ^ client.c:426:2: warning: call to undeclared function 'namencode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | namencode(lname, strlen(lname), elname, sizeof(elname)); | ^ client.c:428:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 428 | (void) sendcmd(C_RECVHARDLINK, "%o %s %s", | ^ client.c:431:9: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 431 | return(response()); | ^ client.c:403:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | static int sendhardlink(opts, lp, rname, destdir) | ^ client.c:446:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 446 | if (cp = strrchr(file, '.')) { | ~~~^~~~~~~~~~~~~~~~~~~~ client.c:446:12: note: place parentheses around the assignment to silence this warning 446 | if (cp = strrchr(file, '.')) { | ^ | ( ) client.c:446:12: note: use '==' to turn this assignment into an equality comparison 446 | if (cp = strrchr(file, '.')) { | ^ | == client.c:437:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | static int iscompressed(file) | ^ client.c:486:2: warning: call to undeclared function 'namencode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 486 | namencode(rname, strlen(rname), ername, sizeof(ername)); | ^ client.c:497:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 497 | (void) sendcmd(C_RECVREG, "%o %04o %ld %ld %ld %s %s %s", | ^ client.c:501:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 501 | if (response() < 0) { | ^ client.c:507:24: warning: passing arguments to 'zopenfd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | if ((rem_wz = zopenfd(rem_w, "w", 16)) == NULL) { | ^ client.c:546:9: warning: call to undeclared function 'zwrite'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 546 | nw = zwrite(rem_wz, buf, (size_t) amt); | ^ client.c:548:15: warning: passing arguments to 'xwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | nw = xwrite(rem_w, buf, (size_t) amt); | ^ client.c:562:7: warning: call to undeclared function 'zclose'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 562 | if (zclose(rem_wz, siz) == -1) { | ^ client.c:459:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | static int sendfile(rname, opts, stb, user, group, destdir, siz) | ^ client.c:619:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 619 | (void) sendcmd(C_CLEAN, "%o", IS_ON(opts, DO_VERIFY)); | ^ client.c:620:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 620 | if (response() < 0) | ^ client.c:624:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | n = remline(s = respbuff, sizeof(respbuff), TRUE); | ^ client.c:637:8: warning: call to undeclared function 'namdecode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 637 | if (namdecode((char *) s, strlen((char *) s), | ^ client.c:648:8: warning: call to undeclared function 'except'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 648 | if (except(target)) | ^ client.c:605:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 605 | static int rmchk(opts) | ^ client.c:713:2: warning: call to undeclared function 'namencode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 713 | namencode(rname, strlen(rname), ername, sizeof(ername)); | ^ client.c:714:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 714 | (void) sendcmd(C_RECVDIR, "%o %04o 0 0 0 %s %s %s", | ^ client.c:716:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 716 | if (response() < 0) | ^ client.c:736:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 736 | while (dp = readdir(d)) { | ~~~^~~~~~~~~~~~ client.c:736:12: note: place parentheses around the assignment to silence this warning 736 | while (dp = readdir(d)) { | ^ | ( ) client.c:736:12: note: use '==' to turn this assignment into an equality comparison 736 | while (dp = readdir(d)) { | ^ | == client.c:749:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 749 | while (*ptarget++ = *cp++) | ~~~~~~~~~~~^~~~~~~ client.c:749:21: note: place parentheses around the assignment to silence this warning 749 | while (*ptarget++ = *cp++) | ^ | ( ) client.c:749:21: note: use '==' to turn this assignment into an equality comparison 749 | while (*ptarget++ = *cp++) | ^ | == client.c:752:13: warning: passing arguments to 'sendit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | if (sendit(dp->d_name, opts, destdir) > 0) | ^ client.c:696:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | static int senddir(rname, opts, stb, user, group, destdir) | ^ client.c:802:2: warning: call to undeclared function 'namencode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 802 | namencode(rname, strlen(rname), ername, sizeof(ername)); | ^ client.c:803:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 803 | (void) sendcmd(C_RECVSYMLINK, "%o %04o %ld %ld %ld %s %s %s", | ^ client.c:807:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 807 | if (response() < 0) | ^ client.c:839:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 839 | n = remline(s = respbuff, sizeof(respbuff), TRUE); | ^ client.c:775:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 775 | static int sendlink(rname, opts, stb, user, group, destdir) | ^ client.c:925:13: warning: passing arguments to 'isexec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 925 | if (isexec(target, statp)) { | ^ client.c:933:2: warning: call to undeclared function 'namencode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 933 | namencode(rname, strlen(rname), ername, sizeof(ername)); | ^ client.c:934:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 934 | (void) sendcmd(C_QUERY, "%s", ername); | ^ client.c:937:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 937 | n = remline(cp = respbuff, sizeof(respbuff), TRUE); | ^ client.c:1100:33: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1100 | if (strcmp(owner, getusername(statp->st_uid, | ^ client.c:1105:18: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1105 | getusername(statp->st_uid, | ^ client.c:1128:34: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1128 | if (strcmp(group, getgroupname(statp->st_gid, | ^ client.c:1133:19: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1133 | getgroupname(statp->st_gid, | ^ client.c:908:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 908 | static int update(rname, opts, statp) | ^ client.c:1157:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1157 | static int dostat(file, statbuf, opts) | ^ client.c:1208:4: warning: call to undeclared function 'namencode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1208 | namencode(rname, strlen(rname), | ^ client.c:1210:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1210 | (void) sendcmd(C_CHMOG, "%o %04o %s %s %s", | ^ client.c:1212:11: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1212 | (void) response(); | ^ client.c:1179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1179 | statupdate(u, target, opts, rname, destdir, st, user, group) | ^ client.c:1223:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1223 | fullupdate(u, target, opts, rname, destdir, st, user, group) | ^ client.c:1328:6: warning: call to undeclared function 'except'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1328 | if (except(target)) | ^ client.c:1351:20: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1351 | user = getusername(stb.st_uid, target, opts); | ^ client.c:1352:22: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1352 | group = getgroupname(stb.st_gid, target, opts); | ^ client.c:1307:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1307 | static int sendit(rname, opts, destdir) | ^ client.c:106:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 106 | static int sendit(); | ^ client.c:1381:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1381 | if (file = getnotifyfile()) | ~~~~~^~~~~~~~~~~~~~~~~ client.c:1381:11: note: place parentheses around the assignment to silence this warning 1381 | if (file = getnotifyfile()) | ^ | ( ) client.c:1381:11: note: use '==' to turn this assignment into an equality comparison 1381 | if (file = getnotifyfile()) | ^ | == client.c:1427:24: warning: passing arguments to 'getondistoptlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1427 | cp = getondistoptlist(opts); | ^ client.c:1439:18: warning: passing arguments to 'exptilde' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1439 | rname = exptilde(target, src); | ^ client.c:1473:2: warning: call to undeclared function 'namencode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1473 | namencode(dest, strlen(dest), ername, sizeof(ername)); | ^ client.c:1475:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1475 | (void) sendcmd(C_DIRTARGET, "%o %s", opts, ername); | ^ client.c:1478:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1478 | if (response() < 0) | ^ client.c:1394:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1394 | extern int install(src, dest, ddir, destdir, opts) | ^ In file included from client.c:84: ../include/defs.h:324:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 324 | extern int install(); | ^ 85 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o child.o child.c child.c:117:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | static void set_block_sigchld(block) | ^ child.c:147:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | static void removechild(child) | ^ child.c:192:26: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | newc = (CHILD *) xmalloc(sizeof(CHILD)); | ^ child.c:187:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | static CHILD *copychild(child) | ^ child.c:206:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | static void addchild(child) | ^ child.c:258:16: warning: passing arguments to 'xwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | (void) xwrite(fileno(stdout), rbuf, amt); | ^ child.c:232:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | static void readchild(child) | ^ child.c:281:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | static int waitproc(statval, block) | ^ child.c:327:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | static void reap(signum) | ^ child.c:597:7: warning: call to undeclared function 'setnonblocking'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 597 | if (setnonblocking(newchild.c_readfd, TRUE) < 0) { | ^ child.c:603:17: warning: passing arguments to 'setcloseonexec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | setcloseonexec(newchild.c_readfd, TRUE); | ^ child.c:609:15: warning: passing arguments to 'markassigned' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 609 | markassigned(cmd, cmdlist); | ^ child.c:550:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 550 | extern int spawn(cmd, cmdlist) | ^ In file included from child.c:84: ../include/defs.h:329:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 329 | extern int spawn(); | ^ child.c:666:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | int setnonblocking(fd, flag) | ^ child.c:705:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 705 | void setcloseonexec(fd, flag) | ^ In file included from child.c:84: ../include/defs.h:330:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 330 | extern void setcloseonexec(); | ^ 17 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o docmd.o docmd.c docmd.c:117:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | (void) sendcmd(C_FERRMSG, NULL); | ^ docmd.c:137:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 137 | FILE *pf, *popen(); | ^ /usr/include/stdio.h:327:7: note: conflicting prototype is here 327 | FILE *popen(const char *, const char *); | ^ docmd.c:152:34: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | (rhost) ? rhost : "", getnlstr(to)); | ^ docmd.c:194:10: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | if (!any('@', to->n_name) && rhost != NULL) | ^ docmd.c:200:11: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | if (!any('@', to->n_name) && rhost != NULL) | ^ docmd.c:220:54: warning: passing arguments to 'getondistoptlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | (void) fprintf(pf, "Options: %s\n", getondistoptlist(options)); | ^ docmd.c:130:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | static void notify(rhost, to, lmod) | ^ docmd.c:237:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | static void checkcmd(cmd) | ^ docmd.c:260:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | extern void markassigned(cmd, cmdlist) | ^ In file included from docmd.c:84: ../include/defs.h:339:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 339 | extern void markassigned(); | ^ docmd.c:277:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | static void markfailed(cmd, cmdlist) | ^ docmd.c:332:9: warning: call to undeclared function 'rshrcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 332 | desc = rshrcmd(&rhost, -1, luser, ruser, cmd, 0); | ^ docmd.c:298:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | static int remotecmd(rhost, luser, ruser, cmd) | ^ docmd.c:385:13: warning: call to undeclared function 'okname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 385 | else if (!okname(ruser)) | ^ docmd.c:393:39: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 393 | (void) snprintf(buf, sizeof(buf), "%.*s -S", | ~~^~ 394 | sizeof(buf)-5, path_rdistd); | ~~~~~~~~~~~~~ docmd.c:402:13: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | n = remline(respbuff, sizeof(respbuff), TRUE); | ^ docmd.c:419:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 419 | (void) sendcmd(S_VERSION, "%d", PROTO_VERSION); | ^ docmd.c:421:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 421 | if (response() < 0) | ^ docmd.c:442:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 442 | (void) sendcmd(C_SETCONFIG, "%c%s", SC_HOSTNAME, host); | ^ docmd.c:443:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 443 | if (response() < 0) | ^ docmd.c:447:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 447 | (void) sendcmd(C_SETCONFIG, "%c%lld", SC_FREESPACE, | ^ docmd.c:449:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 449 | if (response() < 0) | ^ docmd.c:453:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 453 | (void) sendcmd(C_SETCONFIG, "%c%lld", SC_FREEFILES, | ^ docmd.c:455:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 455 | if (response() < 0) | ^ docmd.c:459:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 459 | (void) sendcmd(C_SETCONFIG, "%c%s", SC_LOGGING, remotemsglist); | ^ docmd.c:460:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 460 | if (response() < 0) | ^ docmd.c:464:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 464 | (void) sendcmd(C_SETCONFIG, "%c%s", SC_DEFOWNER, defowner); | ^ docmd.c:465:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 465 | if (response() < 0) | ^ docmd.c:469:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 469 | (void) sendcmd(C_SETCONFIG, "%c%s", SC_DEFGROUP, defgroup); | ^ docmd.c:470:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 470 | if (response() < 0) | ^ docmd.c:346:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 346 | static int makeconn(rhost) | ^ docmd.c:572:29: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | ddir = !strcmp(xbasename(sc->sc_name),"."); | ^ docmd.c:598:14: warning: passing arguments to 'install' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | if (install(f->n_name, sc->sc_name, ddir, destdir, | ^ docmd.c:617:15: warning: passing arguments to 'install' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 617 | if (install(f->n_name, (char *) NULL, 0, 0, options) > 0) | ^ docmd.c:626:16: warning: passing arguments to 'runcmdspecial' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 626 | runcmdspecial(cmd, opts); | ^ docmd.c:640:30: warning: call to undeclared function 'freelinkinfo'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 640 | for (l = ihead; l != NULL; freelinkinfo(l), l = nextl) { | ^ docmd.c:480:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 480 | static void doarrow(cmd, filev) | ^ docmd.c:655:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 655 | okname(name) | ^ | int docmd.c:655:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] docmd.c:695:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 695 | while (dp = readdir(d)) { | ~~~^~~~~~~~~~~~ docmd.c:695:12: note: place parentheses around the assignment to silence this warning 695 | while (dp = readdir(d)) { | ^ | ( ) docmd.c:695:12: note: use '==' to turn this assignment into an equality comparison 695 | while (dp = readdir(d)) { | ^ | == docmd.c:705:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 705 | while (*ptarget++ = *cp++) | ~~~~~~~~~~~^~~~~~~ docmd.c:705:21: note: place parentheses around the assignment to silence this warning 705 | while (*ptarget++ = *cp++) | ^ | ( ) docmd.c:705:21: note: use '==' to turn this assignment into an equality comparison 705 | while (*ptarget++ = *cp++) | ^ | == docmd.c:708:10: warning: passing arguments to 'cmptime' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | cmptime(target, sbcmds, env); | ^ docmd.c:676:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | static void rcmptime(st, sbcmds, env) | ^ docmd.c:729:6: warning: call to undeclared function 'except'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 729 | if (except(name)) | ^ docmd.c:741:15: warning: passing arguments to 'exptilde' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 741 | if (exptilde(target, name) == NULL) | ^ docmd.c:766:38: warning: passing arguments to 'inlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 766 | if (sc->sc_args != NULL && !inlist(sc->sc_args, name)) | ^ docmd.c:773:29: warning: passing arguments to 'xrealloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 773 | *env = (char *) xrealloc(*env, len + | ^ docmd.c:782:14: warning: passing arguments to 'runcommand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 782 | runcommand(buf); | ^ docmd.c:718:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | static void cmptime(name, sbcmds, env) | ^ docmd.c:104:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 104 | static void cmptime(); | ^ docmd.c:819:26: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 819 | env = (char *) xmalloc(sizeof(E_FILES) + 3); | ^ docmd.c:834:21: warning: passing arguments to 'setfiletime' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 834 | (void) setfiletime(stamp, (time_t) 0, (time_t) 0); | ^ docmd.c:855:18: warning: passing arguments to 'xrealloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 855 | env = xrealloc(env, | ^ docmd.c:864:15: warning: passing arguments to 'runcommand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 864 | runcommand(env); | ^ docmd.c:790:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 790 | static void dodcolon(cmd, filev) | ^ docmd.c:876:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | extern int except(file) | ^ docmd.c:955:14: warning: passing arguments to 'spawn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 955 | pid = spawn(cmd, cmds); | ^ docmd.c:935:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | static void docmdhost(cmd, filev) | ^ docmd.c:992:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 992 | static void docmd(cmd, argc, argv) | ^ docmd.c:1051:15: warning: passing arguments to 'mysetlinebuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1051 | mysetlinebuf(stdout); /* Make output (mostly) clean */ | ^ docmd.c:1036:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1036 | extern void docmds(hostlist, argc, argv) | ^ In file included from docmd.c:84: ../include/defs.h:335:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 335 | extern void docmds(); | ^ 62 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o distopt.o distopt.c distopt.c:87:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | extern DISTOPTINFO *getdistopt(name) | ^ distopt.c:119:41: warning: too many arguments in call to 'getdistopt' 119 | if ((distopt = getdistopt(optstr, &len)) != NULL) { | ~~~~~~~~~~ ^ distopt.c:128:43: warning: too many arguments in call to 'getdistopt' 128 | if ((distopt = getdistopt(optstr+2, &len)) != NULL) { | ~~~~~~~~~~ ^ distopt.c:104:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | extern int parsedistopts(str, optptr, doerrs) | ^ In file included from distopt.c:49: ../include/defs.h:326:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 326 | extern int parsedistopts(); | ^ distopt.c:167:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | extern char *getondistoptlist(opts) | ^ In file included from distopt.c:49: ../include/defs.h:317:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 317 | extern char *getondistoptlist(); | ^ 7 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o expand.o expand.c expand.c:121:3: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 121 | yyerror("Too many names"); | ^ expand.c:126:33: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | eargv[eargc - 1] = cp = xmalloc(len); | ^ expand.c:131:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 131 | } while (*cp++ = *s1++); | ~~~~~~^~~~~~~ expand.c:131:17: note: place parentheses around the assignment to silence this warning 131 | } while (*cp++ = *s1++); | ^ | ( ) expand.c:131:17: note: use '==' to turn this assignment into an equality comparison 131 | } while (*cp++ = *s1++); | ^ | == expand.c:136:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 136 | } while (*cp++ = *s2++); | ~~~~~~^~~~~~~ expand.c:136:17: note: place parentheses around the assignment to silence this warning 136 | } while (*cp++ = *s2++); | ^ | ( ) expand.c:136:17: note: use '==' to turn this assignment into an equality comparison 136 | } while (*cp++ = *s2++); | ^ | == expand.c:114:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | static void Cat(s1, s2) /* quote in s1 and s2 */ | ^ expand.c:143:3: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 143 | yyerror("Pathname too long"); | ^ expand.c:139:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | static void addpath(c) | ^ expand.c:171:23: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | list, wh, getnlstr(list)); | ^ expand.c:189:9: warning: passing arguments to 'expstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | expstr((u_char *)nl->n_name); | ^ expand.c:195:14: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | nl = makenl((char *)NULL); | ^ expand.c:161:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | expand(list, wh) /* quote in list->n_name */ | ^ In file included from expand.c:80: ../include/defs.h:347:26: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 347 | struct namelist *expand(); | ^ expand.c:212:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | u_char *xstrchr(str, ch) | ^ expand.c:244:4: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 244 | yyerror("Variable is too large."); | ^ expand.c:269:4: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 269 | yyerror("no variable name after '$'"); | ^ expand.c:276:6: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 276 | yyerror("unmatched '{'"); | ^ expand.c:283:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 283 | yyerror("no variable name after '$'"); | ^ expand.c:291:14: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | tp = lookup((char *)cp, LOOKUP, (struct namelist *)NULL); | ^ expand.c:329:6: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 329 | yyerror((char *)ebuf+1); | ^ expand.c:336:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 336 | for (cp = (u_char *)path; *cp++ = *cp1++; ) | ~~~~~~^~~~~~~~ expand.c:336:35: note: place parentheses around the assignment to silence this warning 336 | for (cp = (u_char *)path; *cp++ = *cp1++; ) | ^ | ( ) expand.c:336:35: note: use '==' to turn this assignment into an equality comparison 336 | for (cp = (u_char *)path; *cp++ = *cp1++; ) | ^ | == expand.c:354:7: warning: passing arguments to 'expsh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | expsh(s); | ^ expand.c:225:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | void expstr(s) | ^ expand.c:107:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 107 | void expstr(); | ^ expand.c:384:13: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | while (!any(*cp, shchars)) { | ^ expand.c:404:10: warning: call to undeclared function 'execbrc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 404 | (void) execbrc(cp, (u_char *)NULL); | ^ expand.c:407:10: warning: passing arguments to 'matchdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | matchdir((char *)cp); | ^ expand.c:375:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | void expsh(s) /* quote in s */ | ^ expand.c:108:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 108 | void expsh(); | ^ expand.c:434:7: warning: call to undeclared function 'match'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 434 | if (match(dp->d_name, pattern)) { | ^ expand.c:451:2: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 451 | yyerror(path); | ^ expand.c:413:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | void matchdir(pattern) /* quote in pattern */ | ^ expand.c:109:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 109 | void matchdir(); | ^ expand.c:454:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 454 | execbrc(p, s) /* quote in p */ | ^ | int expand.c:483:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 483 | yyerror("Missing ']'"); | ^ expand.c:492:3: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 492 | yyerror("Missing '}'"); | ^ expand.c:524:15: warning: call to undeclared function 'amatch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 524 | } else if (amatch((char *)s, restbuf)) | ^ expand.c:534:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 534 | yyerror("Missing ']'"); | ^ expand.c:454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 454 | execbrc(p, s) /* quote in p */ | ^ expand.c:544:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 544 | match(s, p) /* quote in p */ | ^ | int expand.c:555:6: warning: call to undeclared function 'amatch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 555 | c = amatch(s, p); | ^ expand.c:544:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | match(s, p) /* quote in p */ | ^ expand.c:561:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 561 | amatch(s, p) /* quote in p */ | ^ | int expand.c:582:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 582 | while (cc = *p++) { | ~~~^~~~~~ expand.c:582:14: note: place parentheses around the assignment to silence this warning 582 | while (cc = *p++) { | ^ | ( ) expand.c:582:14: note: use '==' to turn this assignment into an equality comparison 582 | while (cc = *p++) { | ^ | == expand.c:597:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 597 | yyerror("Missing ']'"); | ^ expand.c:644:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 644 | } else | ^ expand.c:561:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 561 | amatch(s, p) /* quote in p */ | ^ 46 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o lookup.o lookup.c lookup.c:98:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 98 | define(name) | ^ | int lookup.c:115:17: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | value = makenl(cp); | ^ lookup.c:141:24: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | value = nl = makenl(cp); | ^ lookup.c:143:24: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | nl->n_next = makenl(cp); | ^ lookup.c:151:15: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | (void) lookup(name, REPLACE, value); | ^ lookup.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | define(name) | ^ lookup.c:152:1: warning: non-void function does not return a value [-Wreturn-type] 152 | } | ^ lookup.c:185:17: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 185 | "%.*s redefined", | ~~^~ 186 | sizeof(ebuf) - | ~~~~~~~~~~~~~~ 187 | sizeof(" redefined"), name); | ~~~~~~~~~~~~~~~~~~~~ lookup.c:188:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 188 | yyerror(ebuf); | ^ lookup.c:195:42: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 195 | (void) snprintf(ebuf, sizeof(ebuf), "%.*s undefined", | ~~^~ 196 | sizeof(ebuf) - sizeof(" undefined"), name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lookup.c:197:3: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 197 | yyerror(ebuf); | ^ lookup.c:201:6: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | s = ALLOC(syment); | ^ ../include/defs.h:179:39: note: expanded from macro 'ALLOC' 179 | #define ALLOC(x) (struct x *) xcalloc(1, sizeof(struct x)) | ^ lookup.c:162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | lookup(name, action, value) /* %% in name. Ignore quotas in name */ | ^ In file included from lookup.c:80: ../include/defs.h:348:26: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 348 | struct namelist *lookup(); | ^ 14 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o isexec.o isexec.c isexec.c:269:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | static int _isexec(fd) | ^ isexec.c:280:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | extern int isexec(file, statp) | ^ In file included from isexec.c:77: ../include/defs.h:325:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 325 | extern int isexec(); | ^ 3 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o rshrcmd.o rshrcmd.c rshrcmd.c:64:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 64 | rshrcmd(ahost, port, luser, ruser, cmd, fd2p) | ^ | int rshrcmd.c:78:6: warning: call to undeclared function 'getsocketpair'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 78 | if (getsocketpair(AF_UNIX, SOCK_STREAM, 0, sp) < 0) { | ^ rshrcmd.c:134:34: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | execlp(_PATH_BSHELL, xbasename(_PATH_BSHELL), "-c", | ^ rshrcmd.c:146:25: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | execlp(rsh, xbasename(rsh), | ^ rshrcmd.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | rshrcmd(ahost, port, luser, ruser, cmd, fd2p) | ^ rshrcmd.c:160:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 160 | } | ^ 6 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o common.o common.c common.c:123:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | extern WRITE_RETURN_T xwrite(fd, buf, len) | ^ In file included from common.c:84: ../include/defs.h:350:24: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 350 | extern WRITE_RETURN_T xwrite(); | ^ common.c:165:30: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | realargv = (char **) xmalloc(sizeof(char *) * (argc+1)); | ^ common.c:170:2: warning: call to undeclared function 'setargs_settup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 170 | setargs_settup(argc, argv, envp); | ^ common.c:146:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | extern int init(argc, argv, envp) | ^ In file included from common.c:84: ../include/defs.h:323:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 323 | extern int init(); | ^ common.c:269:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | extern void sighandler(sig) | ^ In file included from common.c:84: ../include/defs.h:345:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 345 | extern void sighandler(); | ^ common.c:319:30: warning: passing arguments to 'ProtoCmdGetByKey' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | if (pc = ProtoCmdGetByKey(cmd)) | ^ common.c:319:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 319 | if (pc = ProtoCmdGetByKey(cmd)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~ common.c:319:12: note: place parentheses around the assignment to silence this warning 319 | if (pc = ProtoCmdGetByKey(cmd)) | ^ | ( ) common.c:319:12: note: use '==' to turn this assignment into an equality comparison 319 | if (pc = ProtoCmdGetByKey(cmd)) | ^ | == common.c:306:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | static void debugmsgcmd(cmd, msg, msglen, dir) | ^ common.c:341:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | static int sendcmdmsg(cmd, msg) | ^ common.c:456:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | static ssize_t remread(fd, buf, bufsiz) | ^ common.c:524:27: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 524 | debugmsgcmd(buffer[0], buffer, 0, 2); | ^~~~~~ common.c:489:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | extern int remline(buffer, space, doclean) | ^ In file included from common.c:84: ../include/defs.h:327:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 327 | extern int remline(); | ^ common.c:541:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | ssize_t readrem(p, space) | ^ common.c:574:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 574 | readremz(p, space) | ^ | int common.c:584:10: warning: call to undeclared function 'zread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 584 | space = zread(rem_rz, p, space); | ^ common.c:574:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 574 | readremz(p, space) | ^ common.c:594:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | extern char *getusername(uid, file, opts) | ^ In file included from common.c:84: ../include/defs.h:318:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 318 | extern char *getusername(); | ^ common.c:643:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | extern char *getgroupname(gid, file, opts) | ^ In file included from common.c:84: ../include/defs.h:314:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 314 | extern char *getgroupname(); | ^ common.c:729:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 729 | } | ^ common.c:776:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 776 | for (s1 = ebuf; *s1++ = *s2++; ) | ~~~~~~^~~~~~~ common.c:776:24: note: place parentheses around the assignment to silence this warning 776 | for (s1 = ebuf; *s1++ = *s2++; ) | ^ | ( ) common.c:776:24: note: use '==' to turn this assignment into an equality comparison 776 | for (s1 = ebuf; *s1++ = *s2++; ) | ^ | == common.c:781:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 781 | while (*s1++ = *s3++) | ~~~~~~^~~~~~~ common.c:781:16: note: place parentheses around the assignment to silence this warning 781 | while (*s1++ = *s3++) | ^ | ( ) common.c:781:16: note: use '==' to turn this assignment into an equality comparison 781 | while (*s1++ = *s3++) | ^ | == common.c:739:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | extern char *exptilde(ebuf, file) | ^ In file included from common.c:84: ../include/defs.h:307:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 307 | char *exptilde(); | ^ common.c:835:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 835 | extern int setfiletime(file, atime, mtime) | ^ In file included from common.c:84: ../include/defs.h:328:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 328 | extern int setfiletime(); | ^ common.c:911:48: warning: missing sentinel in function call [-Wsentinel] 911 | (void) execl(_PATH_BSHELL, "sh", "-c", cmd, 0); | ^ | , NULL /usr/include/unistd.h:331:6: note: function has been explicitly marked sentinel here 331 | int execl(const char *, const char *, ...) __null_sentinel; | ^ ~~~~~~~~~~~~~~~ common.c:886:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 886 | void runcommand(cmd) | ^ In file included from common.c:84: ../include/defs.h:343:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 343 | extern void runcommand(); | ^ common.c:969:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 969 | extern POINTER *malloc(); | ^ common.c:965:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 965 | char *xmalloc(amt) | ^ In file included from common.c:84: ../include/defs.h:310:23: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 310 | char *xmalloc(); | ^ common.c:985:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 985 | extern POINTER *realloc(); | ^ common.c:980:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 980 | char *xrealloc(baseptr, amt) | ^ In file included from common.c:84: ../include/defs.h:311:23: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 311 | char *xrealloc(); | ^ common.c:1001:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 1001 | extern POINTER *calloc(); | ^ common.c:996:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 996 | char *xcalloc(num, esize) | ^ In file included from common.c:84: ../include/defs.h:309:23: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 309 | char *xcalloc(); | ^ common.c:1018:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1018 | if (cp = strrchr(path, '/')) | ~~~^~~~~~~~~~~~~~~~~~~~ common.c:1018:9: note: place parentheses around the assignment to silence this warning 1018 | if (cp = strrchr(path, '/')) | ^ | ( ) common.c:1018:9: note: use '==' to turn this assignment into an equality comparison 1018 | if (cp = strrchr(path, '/')) | ^ | == common.c:1013:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1013 | extern char *xbasename(path) | ^ In file included from common.c:84: ../include/defs.h:312:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 312 | extern char *xbasename(); | ^ common.c:1029:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1029 | extern char *searchpath(path) | ^ In file included from common.c:84: ../include/defs.h:321:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 321 | extern char *searchpath(); | ^ common.c:1058:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1058 | mysetlinebuf(fp) | ^ In file included from common.c:84: ../include/defs.h:286:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 286 | extern void mysetlinebuf(); /* set line buffering */ | ^ common.c:1081:9: warning: call to undeclared function 'socketpair'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1081 | return(socketpair(domain, type, protocol, sv)); | ^ common.c:1074:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1074 | getsocketpair(domain, type, protocol, sv) | ^ common.c:1094:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1094 | extern int namencode(name, namelen, dst, dstlen) | ^ common.c:1115:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1115 | extern int namdecode(name, namelen, dst, dstlen) | ^ 54 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o message.o message.c message.c:156:44: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 156 | (void) snprintf(buf, sizeof(buf), " %.*s=", | ~~^~ 157 | sizeof(buf) - 7, msgfacility[i].mf_name); | ~~~~~~~~~~~~~~~ message.c:173:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | static MSGFACILITY *getmsgfac(name) | ^ message.c:188:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | static MSGTYPE *getmsgtype(name) | ^ message.c:271:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 271 | if (cp = strchr(strptr, ',')) | ~~~^~~~~~~~~~~~~~~~~~~~~ message.c:271:10: note: place parentheses around the assignment to silence this warning 271 | if (cp = strchr(strptr, ',')) | ^ | ( ) message.c:271:10: note: use '==' to turn this assignment into an equality comparison 271 | if (cp = strchr(strptr, ',')) | ^ | == message.c:275:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 275 | if (mtp = getmsgtype(word)) { | ~~~~^~~~~~~~~~~~~~~~~~ message.c:275:11: note: place parentheses around the assignment to silence this warning 275 | if (mtp = getmsgtype(word)) { | ^ | ( ) message.c:275:11: note: use '==' to turn this assignment into an equality comparison 275 | if (mtp = getmsgtype(word)) { | ^ | == message.c:204:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | static char *setmsgtypes(msgfac, str) | ^ message.c:339:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 339 | if (mcp = setmsgtypes(msgfac, cp)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ message.c:339:12: note: place parentheses around the assignment to silence this warning 339 | if (mcp = setmsgtypes(msgfac, cp)) | ^ | ( ) message.c:339:12: note: use '==' to turn this assignment into an equality comparison 339 | if (mcp = setmsgtypes(msgfac, cp)) | ^ | == message.c:298:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | extern char *msgparseopts(msgstr, doset) | ^ In file included from message.c:84: ../include/defs.h:320:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 320 | extern char *msgparseopts(); | ^ message.c:379:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 379 | (void) sendcmd(cmd, "%s", msgbuf); | ^ message.c:356:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | static void msgsendstdout(msgfac, mtype, flags, msgbuf) | ^ message.c:109:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 109 | static void msgsendstdout(), msgsendfile(), msgsendsyslog(), | ^ message.c:414:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 414 | static void msgsendsyslog(msgfac, mtype, flags, msgbuf) | ^ message.c:109:45: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 109 | static void msgsendstdout(), msgsendfile(), msgsendsyslog(), | ^ message.c:459:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | static void msgsendfile(msgfac, mtype, flags, msgbuf) | ^ message.c:109:30: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 109 | static void msgsendstdout(), msgsendfile(), msgsendsyslog(), | ^ message.c:503:30: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | tempfile = (char *) xmalloc(len); | ^ message.c:479:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | static void msgsendnotify(msgfac, mtype, flags, msgbuf) | ^ message.c:110:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 110 | msgsendnotify(); | ^ message.c:558:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 558 | if (cp = strchr(msgbuf, '\n')) | ~~~^~~~~~~~~~~~~~~~~~~~~~ message.c:558:10: note: place parentheses around the assignment to silence this warning 558 | if (cp = strchr(msgbuf, '\n')) | ^ | ( ) message.c:558:10: note: use '==' to turn this assignment into an equality comparison 558 | if (cp = strchr(msgbuf, '\n')) | ^ | == message.c:608:34: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 608 | (*msgfacility[i].mf_sendfunc)(&msgfacility[i], | ^ message.c:546:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | static void _message(flags, msgbuf) | ^ message.c:675:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 675 | static void _debugmsg(lvl, buf) | ^ message.c:744:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 744 | static void _error(msg) | ^ message.c:827:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 827 | static void _fatalerr(msg) | ^ 25 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o setargs.o setargs.c setargs.c:95:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 95 | setargs_settup(argc, argv, envp) | ^ | int setargs.c:107:33: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | UserEnviron = (char **) xmalloc(i * sizeof(char *)); | ^ setargs.c:95:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | setargs_settup(argc, argv, envp) | ^ setargs.c:122:1: warning: non-void function does not return a value [-Wreturn-type] 122 | } | ^ setargs.c:129:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | extern void _setproctitle(msg) | ^ 5 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o protocmds.o protocmds.c protocmds.c:123:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | extern ProtoCmd_t *ProtoCmdGetByKey(Key) | ^ In file included from protocmds.c:48: ../include/protocmds.h:135:25: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 135 | extern ProtoCmd_t *ProtoCmdGetByKey(); | ^ 2 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o hasmntopt.o ../missing/hasmntopt.c ../missing/hasmntopt.c:58:9: warning: declaration of 'struct mntent' will not be visible outside of this function [-Wvisibility] 58 | struct mntent *mnt; | ^ ../missing/hasmntopt.c:57:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | hasmntopt(mnt, opt) | ^ In file included from ../missing/hasmntopt.c:47: ../include/defs.h:302:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 302 | char *hasmntopt(); | ^ 3 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o zopen.o ../missing/zopen.c ../missing/zopen.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | zwrite(cookie, wbp, num) | ^ ../missing/zopen.c:288:6: warning: call to undeclared function 'Fwrite'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 288 | if (Fwrite(magic_header, | ^ ../missing/zopen.c:356:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | zclose(cookie, st) | ^ ../missing/zopen.c:374:7: warning: call to undeclared function 'Fflush'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 374 | if (Fflush(&wcache, n_bits) <= 0) { | ^ ../missing/zopen.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | output(zs, ocode) | ^ ../missing/zopen.c:441:8: warning: call to undeclared function 'Fwrite'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 441 | if (Fwrite(bp, sizeof(char), bits, &wcache) != bits) | ^ ../missing/zopen.c:457:9: warning: call to undeclared function 'Fwrite'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 457 | if (Fwrite(buf, 1, n_bits, &wcache) != n_bits) | ^ ../missing/zopen.c:478:8: warning: call to undeclared function 'Fwrite'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 478 | if (Fwrite(buf, 1, offset, &wcache) != offset) | ^ ../missing/zopen.c:494:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | zread(cookie, rbp, num) | ^ ../missing/zopen.c:520:6: warning: call to undeclared function 'Fread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 520 | if (Fread(header, | ^ ../missing/zopen.c:605:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 605 | getcode(zs) | ^ ../missing/zopen.c:630:10: warning: call to undeclared function 'Fread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 630 | size = Fread(gbuf, 1, n_bits, &rcache); | ^ ../missing/zopen.c:664:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 664 | cl_block(zs) /* Table clear for block compress. */ | ^ ../missing/zopen.c:693:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 693 | cl_hash(zs, cl_hsize) /* Reset code table. */ | ^ ../missing/zopen.c:727:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 727 | zopenfd(f, mode, bits) | ^ ../missing/zopen.c:771:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 771 | sread(f, b, s) | ^ ../missing/zopen.c:807:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 807 | swrite(f, b, s) | ^ ../missing/zopen.c:843:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 843 | Fread(bf, siz, nelem, ca) | ^ ../missing/zopen.c:895:3: warning: call to undeclared function 'debugmsg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 895 | debugmsg(0x10, "write: c_size = %d, nw = %d\n", ca->c_size, nw); | ^ ../missing/zopen.c:882:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 882 | Fwrite(bf, siz, nelem, ca) | ^ ../missing/zopen.c:911:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 911 | Fflush(ca, bts) | ^ 21 warnings generated. cc -o rdist gram.o rdist.o client.o child.o docmd.o distopt.o expand.o lookup.o isexec.o rshrcmd.o common.o message.o setargs.o protocmds.o hasmntopt.o zopen.o cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o rdistd.o rdistd.c rdistd.c:96:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 96 | main(argc, argv, envp) | ^ | int rdistd.c:104:10: warning: passing arguments to 'init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | if (init(argc, argv, envp) < 0) | ^ rdistd.c:137:23: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | if (cp = msgparseopts(localmsglist, TRUE)) | ^ rdistd.c:137:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 137 | if (cp = msgparseopts(localmsglist, TRUE)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdistd.c:137:9: note: place parentheses around the assignment to silence this warning 137 | if (cp = msgparseopts(localmsglist, TRUE)) | ^ | ( ) rdistd.c:137:9: note: use '==' to turn this assignment into an equality comparison 137 | if (cp = msgparseopts(localmsglist, TRUE)) | ^ | == rdistd.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | main(argc, argv, envp) | ^ 5 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o server.o server.c server.c:101:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | static int cattarget(string) | ^ server.c:122:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | static int setownership(file, fd, uid, gid, link) | ^ server.c:199:15: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] 199 | if (fd != -1 & !link) | ~~~~~~~~~^ server.c:199:15: note: place parentheses around the '!=' expression to silence this warning 199 | if (fd != -1 & !link) | ^ | ( ) server.c:199:15: note: place parentheses around the & expression to evaluate it first 199 | if (fd != -1 & !link) | ^ | ( ) server.c:203:17: warning: & has lower precedence than <; < will be evaluated first [-Wparentheses] 203 | if (status < 0 & !link) | ~~~~~~~~~~~^ server.c:203:17: note: place parentheses around the '<' expression to silence this warning 203 | if (status < 0 & !link) | ^ | ( ) server.c:203:17: note: place parentheses around the & expression to evaluate it first 203 | if (status < 0 & !link) | ^ | ( ) server.c:175:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | static int rdist_setmode(file, fd, mode, link) | ^ server.c:219:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | static struct group *mygetgroup(name) | ^ server.c:296:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 296 | if (gr = mygetgroup(group)) { | ~~~^~~~~~~~~~~~~~~~~~~ server.c:296:10: note: place parentheses around the assignment to silence this warning 296 | if (gr = mygetgroup(group)) { | ^ | ( ) server.c:296:10: note: use '==' to turn this assignment into an equality comparison 296 | if (gr = mygetgroup(group)) { | ^ | == server.c:235:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | static int fchog(fd, file, owner, group, mode) | ^ server.c:420:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 420 | while (dp = readdir(d)) { | ~~~^~~~~~~~~~~~ server.c:420:12: note: place parentheses around the assignment to silence this warning 420 | while (dp = readdir(d)) { | ^ | ( ) server.c:420:12: note: use '==' to turn this assignment into an equality comparison 420 | while (dp = readdir(d)) { | ^ | == server.c:436:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 436 | while (*ptarget++ = *cp++) | ~~~~~~~~~~~^~~~~~~ server.c:436:21: note: place parentheses around the assignment to silence this warning 436 | while (*ptarget++ = *cp++) | ^ | ( ) server.c:436:21: note: use '==' to turn this assignment into an equality comparison 436 | while (*ptarget++ = *cp++) | ^ | == server.c:367:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | static int removefile(target, statb, silent) | ^ server.c:508:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 508 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:512:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 512 | while (dp = readdir(d)) { | ~~~^~~~~~~~~~~~ server.c:512:12: note: place parentheses around the assignment to silence this warning 512 | while (dp = readdir(d)) { | ^ | ( ) server.c:512:12: note: use '==' to turn this assignment into an equality comparison 512 | while (dp = readdir(d)) { | ^ | == server.c:526:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 526 | while (*ptarget++ = *cp++) | ~~~~~~~~~~~^~~~~~~ server.c:526:21: note: place parentheses around the assignment to silence this warning 526 | while (*ptarget++ = *cp++) | ^ | ( ) server.c:526:21: note: use '==' to turn this assignment into an equality comparison 526 | while (*ptarget++ = *cp++) | ^ | == server.c:535:3: warning: call to undeclared function 'namencode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 535 | namencode(dp->d_name, strlen(dp->d_name), targ, sizeof(targ)); | ^ server.c:537:17: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 537 | (void) remline(cp = buf, sizeof(buf), TRUE); | ^ server.c:488:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | static void doclean(cp) | ^ server.c:564:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 564 | (void) sendcmd(CC_END, NULL); | ^ server.c:565:9: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 565 | (void) response(); | ^ server.c:560:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | static void clean(cp) | ^ server.c:577:6: warning: call to undeclared function 'namdecode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 577 | if (namdecode(xcmd, strlen(xcmd), cmd, sizeof(cmd)) == -1) { | ^ server.c:581:12: warning: passing arguments to 'runcommand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | runcommand(cmd); | ^ server.c:573:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 573 | static void dospecial(xcmd) | ^ server.c:600:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 600 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:603:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | n = remline(cp = buf, sizeof(buf), FALSE); | ^ server.c:613:27: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 613 | env = (char *) xmalloc(len); | ^ server.c:618:28: warning: passing arguments to 'xrealloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | env = (char *) xrealloc(env, | ^ server.c:631:28: warning: passing arguments to 'xrealloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 631 | env = (char *) xrealloc(env, | ^ server.c:673:6: warning: call to undeclared function 'namdecode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 673 | if (namdecode(xname, strlen(xname), name, sizeof(name)) == -1) { | ^ server.c:683:7: warning: call to undeclared function 'is_nfs_mounted'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 683 | s = is_nfs_mounted(target, &stb, &stbvalid); | ^ server.c:685:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 685 | (void) sendcmd(QC_ONNFS, NULL); | ^ server.c:698:7: warning: call to undeclared function 'is_ro_mounted'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 698 | s = is_ro_mounted(target, &stb, &stbvalid); | ^ server.c:700:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 700 | (void) sendcmd(QC_ONRO, NULL); | ^ server.c:712:7: warning: call to undeclared function 'is_symlinked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 712 | if (is_symlinked(target, &stb, &stbvalid) > 0) { | ^ server.c:713:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 713 | (void) sendcmd(QC_SYM, NULL); | ^ server.c:726:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 726 | (void) sendcmd(QC_NO, NULL); | ^ server.c:747:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 747 | (void) sendcmd(QC_YES, "%ld %ld %o %s %s", | ^ server.c:750:22: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 750 | getusername(stb.st_uid, target, options), | ^ server.c:751:23: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | getgroupname(stb.st_gid, target, options)); | ^ server.c:666:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | static void query(xname) | ^ server.c:764:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 764 | static int chkparent(name, opts) | ^ server.c:814:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 814 | static char *savetarget(file, opts) | ^ server.c:871:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 871 | static int iszeros (buf, size) | ^ server.c:910:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 910 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:914:24: warning: passing arguments to 'zopenfd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 914 | if ((rem_rz = zopenfd(rem_r, "r", 16)) == NULL) { | ^ server.c:933:12: warning: call to undeclared function 'readremz'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 933 | j = readremz(cp, amt); | ^ server.c:935:12: warning: call to undeclared function 'readrem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 935 | j = readrem(cp, amt); | ^ server.c:957:32: warning: passing arguments to 'xwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | if (wrerr == 0 && xwrite(newfd, buf, amt) != amt) { | ^ server.c:967:7: warning: call to undeclared function 'zclose'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 967 | if (zclose(rem_rz, &tot) == -1) { | ^ server.c:988:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 988 | if (response() < 0) { | ^ server.c:1077:17: warning: passing arguments to 'setfiletime' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1077 | if (setfiletime(new, time((time_t *) 0), mtime) < 0) | ^ server.c:888:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 888 | static void recvfile(new, newfd, opts, mode, owner, group, mtime, atime, size) | ^ server.c:1246:25: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1246 | if (cp = getusername(stb.st_uid, target, o)) | ^ server.c:1246:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1246 | if (cp = getusername(stb.st_uid, target, o)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1246:12: note: place parentheses around the assignment to silence this warning 1246 | if (cp = getusername(stb.st_uid, target, o)) | ^ | ( ) server.c:1246:12: note: use '==' to turn this assignment into an equality comparison 1246 | if (cp = getusername(stb.st_uid, target, o)) | ^ | == server.c:1255:26: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1255 | if (cp = getgroupname(stb.st_gid, target, o)) | ^ server.c:1255:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1255 | if (cp = getgroupname(stb.st_gid, target, o)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1255:12: note: place parentheses around the assignment to silence this warning 1255 | if (cp = getgroupname(stb.st_gid, target, o)) | ^ | ( ) server.c:1255:12: note: use '==' to turn this assignment into an equality comparison 1255 | if (cp = getgroupname(stb.st_gid, target, o)) | ^ | == server.c:1266:26: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1266 | (cp = getusername(stb.st_uid, | ^ server.c:1270:27: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1270 | (cp = getgroupname(stb.st_gid, | ^ server.c:1293:4: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1293 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1299:3: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1299 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1313:5: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1313 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1179:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1179 | static void recvdir(opts, mode, owner, group) | ^ server.c:1351:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1351 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1352:16: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1352 | (void) remline(buf, sizeof(buf), TRUE); | ^ server.c:1354:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1354 | if (response() < 0) { | ^ server.c:1330:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1330 | static void recvlink(new, newfd, opts, mode, size) | ^ server.c:1470:6: warning: call to undeclared function 'namdecode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1470 | if (namdecode(xoldname, strlen(xoldname), | ^ server.c:1488:14: warning: passing arguments to 'exptilde' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1488 | if (exptilde(expbuf, oldname) == NULL) { | ^ server.c:1518:8: warning: call to undeclared function 'relsymlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1518 | relsymlink(oldname, target); | ^ server.c:1525:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1525 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1447:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1447 | static void hardlink(cmd) | ^ server.c:1570:26: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1570 | if (estr = msgparseopts(cp, TRUE)) { | ^ server.c:1570:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1570 | if (estr = msgparseopts(cp, TRUE)) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ server.c:1570:12: note: place parentheses around the assignment to silence this warning 1570 | if (estr = msgparseopts(cp, TRUE)) { | ^ | ( ) server.c:1570:12: note: use '==' to turn this assignment into an equality comparison 1570 | if (estr = msgparseopts(cp, TRUE)) { | ^ | == server.c:1536:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1536 | static void setconfig(cmd) | ^ server.c:1680:6: warning: call to undeclared function 'namdecode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1680 | if (namdecode(name, strlen(name), fileb, sizeof(fileb)) == -1) { | ^ server.c:1706:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1706 | while (*ptarget++ = *file++) | ~~~~~~~~~~~^~~~~~~~~ server.c:1706:22: note: place parentheses around the assignment to silence this warning 1706 | while (*ptarget++ = *file++) | ^ | ( ) server.c:1706:22: note: use '==' to turn this assignment into an equality comparison 1706 | while (*ptarget++ = *file++) | ^ | == server.c:1751:7: warning: call to undeclared function 'getfilesysinfo'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1751 | if (getfilesysinfo(target, &freespace, &freefiles) != 0) { | ^ server.c:1596:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1596 | static void recvit(cmd, type) | ^ server.c:1862:6: warning: call to undeclared function 'namdecode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1862 | if (namdecode(name, strlen(name), fileb, sizeof(fileb)) == -1) { | ^ server.c:1886:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1886 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1811:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1811 | static void dochmog(cmd) | ^ server.c:1912:6: warning: call to undeclared function 'namdecode'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1912 | if (namdecode(cp, strlen(cp), file, sizeof(file)) == -1) { | ^ server.c:1920:14: warning: passing arguments to 'exptilde' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1920 | if (exptilde(target, cp) == NULL) | ^ server.c:1926:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1926 | ack(); | ^ ../include/protocmds.h:72:24: note: expanded from macro 'ack' 72 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1892:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1892 | static void settarget(cmd, isdir) | ^ server.c:1941:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1941 | static int serverrun(proto) | ^ server.c:2004:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2004 | (void) sendcmd(S_VERSION, NULL); | ^ server.c:2006:13: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2006 | if (remline(cmdbuf, sizeof(cmdbuf), TRUE) < 0) { | ^ server.c:2016:14: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2016 | msgparseopts("file=/tmp/rdist.debug=debug,all", 1); /* XXX Temp for debug */ | ^ server.c:2039:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2039 | n = remline(cp = cmdbuf, sizeof(cmdbuf), TRUE); | ^ 90 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o filesys.o filesys.c filesys.c:155:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 155 | if (p = (char *) strrchr(file, '/')) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ filesys.c:155:10: note: place parentheses around the assignment to silence this warning 155 | if (p = (char *) strrchr(file, '/')) { | ^ | ( ) filesys.c:155:10: note: use '==' to turn this assignment into an equality comparison 155 | if (p = (char *) strrchr(file, '/')) { | ^ | == filesys.c:205:10: warning: address of array 'file' will always evaluate to 'true' [-Wpointer-bool-conversion] 205 | return((file && *file) ? file : (char *)NULL); | ^~~~ ~~ filesys.c:94:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | char *find_file(pathname, statbuf, isvalid) | ^ filesys.c:213:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | mntent_t *findmnt(filest, mntinfo) | ^ filesys.c:232:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | int isdupmnt(mnt, mntinfo) | ^ filesys.c:250:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | void wakeup(signum) | ^ filesys.c:270:25: warning: passing arguments to 'setmountent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | if (!(mfp = setmountent(MOUNTED_FILE, "r"))) { | ^ filesys.c:284:26: warning: passing arguments to 'getmountent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | while (mnt = getmountent(mfp)) { | ^ filesys.c:284:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 284 | while (mnt = getmountent(mfp)) { | ~~~~^~~~~~~~~~~~~~~~~~ filesys.c:284:13: note: place parentheses around the assignment to silence this warning 284 | while (mnt = getmountent(mfp)) { | ^ | ( ) filesys.c:284:13: note: use '==' to turn this assignment into an equality comparison 284 | while (mnt = getmountent(mfp)) { | ^ | == filesys.c:306:37: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | newmi = (struct mntinfo *) xcalloc(1, sizeof(struct mntinfo)); | ^ filesys.c:307:30: warning: passing arguments to 'newmountent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | newmi->mi_mnt = newmountent(mnt); | ^ filesys.c:309:30: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | (struct stat *) xcalloc(1, sizeof(struct stat)); | ^ filesys.c:324:20: warning: passing arguments to 'endmountent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | (void) endmountent(mfp); | ^ filesys.c:261:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | struct mntinfo *makemntinfo(mi) | ^ filesys.c:367:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 367 | if (mnt = findmnt(pstat, mntinfo)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ filesys.c:367:10: note: place parentheses around the assignment to silence this warning 367 | if (mnt = findmnt(pstat, mntinfo)) | ^ | ( ) filesys.c:367:10: note: use '==' to turn this assignment into an equality comparison 367 | if (mnt = findmnt(pstat, mntinfo)) | ^ | == filesys.c:374:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 374 | if (tmpmi = makemntinfo(mntinfo)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ filesys.c:374:12: note: place parentheses around the assignment to silence this warning 374 | if (tmpmi = makemntinfo(mntinfo)) { | ^ | ( ) filesys.c:374:12: note: use '==' to turn this assignment into an equality comparison 374 | if (tmpmi = makemntinfo(mntinfo)) { | ^ | == filesys.c:376:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 376 | if (mnt = findmnt(pstat, mntinfo)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ filesys.c:376:11: note: place parentheses around the assignment to silence this warning 376 | if (mnt = findmnt(pstat, mntinfo)) | ^ | ( ) filesys.c:376:11: note: use '==' to turn this assignment into an equality comparison 376 | if (mnt = findmnt(pstat, mntinfo)) | ^ | == filesys.c:336:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | mntent_t *getmntpt(pathname, statbuf, isvalid) | ^ filesys.c:390:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | int is_nfs_mounted(path, statbuf, isvalid) | ^ filesys.c:416:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | int is_ro_mounted(path, statbuf, isvalid) | ^ filesys.c:437:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | int is_symlinked(path, statbuf, isvalid) | ^ filesys.c:465:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | int getfilesysinfo(file, freespace, freefiles) | ^ 22 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o filesys-os.o filesys-os.c filesys-os.c:190:27: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | mntbuf = (char *) xmalloc(size); | ^ filesys-os.c:178:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | FILE *setmountent(file, mode) | ^ In file included from filesys-os.c:85: ../include/filesys.h:172:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 172 | FILE *setmountent(); | ^ filesys-os.c:204:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | mntent_t *getmountent(fptr) | ^ In file included from filesys-os.c:85: ../include/filesys.h:173:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 173 | mntent_t *getmountent(); | ^ filesys-os.c:298:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | void endmountent(fptr) | ^ In file included from filesys-os.c:85: ../include/filesys.h:175:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 175 | void endmountent(); | ^ filesys-os.c:470:28: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | new = (mntent_t *) xcalloc(1, sizeof(mntent_t)); | ^ filesys-os.c:462:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 462 | mntent_t *newmountent(old) | ^ In file included from filesys-os.c:85: ../include/filesys.h:174:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 174 | mntent_t *newmountent(); | ^ 10 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DHAVE_AUTOCONFIG_H -I. -I../include -I../missing -I../include -c -o relsymlink.o relsymlink.c relsymlink.c:97:16: warning: passing arguments to 'ncmp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | while (ncmp(s1,s2) == 0){ | ^ relsymlink.c:88:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | void relsymlink(s1,s2) | ^ relsymlink.c:124:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | char *rellookup(s) | ^ relsymlink.c:139:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | static int ncmp(s1,s2) | ^ relsymlink.c:83:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 83 | static int ncmp(); | ^ 5 warnings generated. cc -o rdistd rdistd.o server.o filesys.o filesys-os.o relsymlink.o common.o message.o setargs.o protocmds.o hasmntopt.o zopen.o gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/src' Making "all" in "include" gmake[2]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/include' gmake[2]: Nothing to be done for 'all'. gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/include' Making "all" in "support" gmake[2]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/support' gmake[2]: Nothing to be done for 'all'. gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/support' Making "all" in "doc" gmake[2]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/doc' gmake[2]: Nothing to be done for 'all'. gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/doc' gmake[1]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10' =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> rdist7-7.0.0.a10 depends on executable: rsh - not found ===> Installing existing package /packages/All/bsdrcmds-20171003.01_1.pkg [pkg.DaveG.ca] Installing bsdrcmds-20171003.01_1... [pkg.DaveG.ca] Extracting bsdrcmds-20171003.01_1: .......... done ===> rdist7-7.0.0.a10 depends on executable: rsh - found ===> Returning to build of rdist7-7.0.0.a10 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for rdist7-7.0.0.a10 ===> Generating temporary packing list gmake[1]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10' Making "install" in "src" gmake[2]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/src' /usr/bin/install -c -m 555 \ rdist /wrkdirs/usr/ports/net/rdist7/work/stage//usr/local/bin/rdist /usr/bin/install -c -m 555 \ rdistd /wrkdirs/usr/ports/net/rdist7/work/stage//usr/local/bin/rdistd gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/src' Making "install" in "include" gmake[2]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/include' gmake[2]: Nothing to be done for 'install'. gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/include' Making "install" in "support" gmake[2]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/support' gmake[2]: Nothing to be done for 'install'. gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/support' Making "install" in "doc" gmake[2]: Entering directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/doc' /usr/bin/install -c -m 444 ./rdist.man /wrkdirs/usr/ports/net/rdist7/work/stage//usr/local/share/man/man1/rdist.1 /usr/bin/install -c -m 444 ./rdistd.man /wrkdirs/usr/ports/net/rdist7/work/stage//usr/local/share/man/man8/rdistd.8 gmake[2]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10/doc' gmake[1]: Leaving directory '/wrkdirs/usr/ports/net/rdist7/work/rdist-7.0.0-alpha10' ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2026-03-13T15:52:03+0000' 'PKG_NOTE_ports_top_git_hash=26b198eb3ee3' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=274b151af7de' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for rdist7-7.0.0.a10 ===> Building rdist7-7.0.0.a10 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for rdist7-7.0.0.a10 build of net/rdist7 | rdist7-7.0.0.a10 ended at Fri Mar 13 11:54:11 EDT 2026 build time: 00:02:15