=>> Building mail/xmail build started at Fri Apr 5 11:27:05 BST 2024 port directory: /usr/ports/mail/xmail package name: xmail-1.6_3 building for: FreeBSD pkg-builder.dan.net.uk 13.2-RELEASE-p10 FreeBSD 13.2-RELEASE-p10 amd64 maintained by: cy@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 612 Feb 8 11:33 /usr/ports/mail/xmail/Makefile Ports top last git commit: c2c35d895e Ports top unclean checkout: yes Port dir last git commit: e427ab10bf Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.99.20240122_1 Host OSVERSION: 1400097 Jail OSVERSION: 1302001 Job Id: 06 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1302001 UNAME_v=FreeBSD 13.2-RELEASE-p10 UNAME_r=13.2-RELEASE-p10 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.99.20240122_1 MASTERMNT=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/06/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/13-amd64-default-dan/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.99.20240122_1 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-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- IMAKECPP=tradcpp IMAKECPPFLAGS="-DCppCmd=tradcpp -DCcCmd=cc -DCplusplusCmd=c++" XDG_DATA_HOME=/wrkdirs/usr/ports/mail/xmail/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/xmail/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/xmail/work/.cache HOME=/wrkdirs/usr/ports/mail/xmail/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/mail/xmail/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/xmail/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCACHE_DIR="/root/.ccache" --End CONFIGURE_ENV-- --MAKE_ENV-- IMAKECPP=tradcpp IMAKECPPFLAGS="-DCppCmd=tradcpp -DCcCmd=cc -DCplusplusCmd=c++" XDG_DATA_HOME=/wrkdirs/usr/ports/mail/xmail/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/xmail/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/xmail/work/.cache HOME=/wrkdirs/usr/ports/mail/xmail/work TMPDIR="/tmp" PATH=/ccache/libexec/ccache:/wrkdirs/usr/ports/mail/xmail/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/xmail/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 -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing " CCACHE_DIR="/root/.ccache" 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=13.2 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/xmail" EXAMPLESDIR="share/examples/xmail" DATADIR="share/xmail" WWWDIR="www/xmail" ETCDIR="etc/xmail" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/xmail DOCSDIR=/usr/local/share/doc/xmail EXAMPLESDIR=/usr/local/share/examples/xmail WWWDIR=/usr/local/www/xmail ETCDIR=/usr/local/etc/xmail --End SUB_LIST-- ---Begin make.conf--- 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 #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl mysql=8.0 imagemagick=7 samba=4.13 java=18 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache NO_CCACHE_DEPEND=1 CCACHE_WRAPPER_PATH= /ccache/libexec/ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---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 --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 ===> xmail-1.6_3 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-builder.dan.net.uk] Installing pkg-1.20.9_1... [pkg-builder.dan.net.uk] Extracting pkg-1.20.9_1: .......... done ===> xmail-1.6_3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of xmail-1.6_3 =========================================================================== =================================================== ===== 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 xmail-1.6_3 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by xmail-1.6_3 for building => SHA256 Checksum OK for xmail_1.6.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 xmail-1.6_3 for building ===> Extracting for xmail-1.6_3 => SHA256 Checksum OK for xmail_1.6.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 xmail-1.6_3 ===> Applying FreeBSD patches for xmail-1.6_3 from /usr/ports/mail/xmail/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> xmail-1.6_3 depends on executable: imake - not found ===> Installing existing package /packages/All/imake-1.0.10_1,1.pkg [pkg-builder.dan.net.uk] Installing imake-1.0.10_1,1... [pkg-builder.dan.net.uk] `-- Installing gccmakedep-1.0.4... [pkg-builder.dan.net.uk] `-- Extracting gccmakedep-1.0.4: .. done [pkg-builder.dan.net.uk] `-- Installing makedepend-1.0.9,1... [pkg-builder.dan.net.uk] `-- Extracting makedepend-1.0.9,1: .. done [pkg-builder.dan.net.uk] `-- Installing perl5-5.36.3_1... [pkg-builder.dan.net.uk] `-- Extracting perl5-5.36.3_1: .......... done [pkg-builder.dan.net.uk] `-- Installing xorg-cf-files-1.0.8_1... [pkg-builder.dan.net.uk] `-- Extracting xorg-cf-files-1.0.8_1: .......... done [pkg-builder.dan.net.uk] Extracting imake-1.0.10_1,1: .......... done ===> xmail-1.6_3 depends on executable: imake - found ===> Returning to build of xmail-1.6_3 ===> xmail-1.6_3 depends on executable: tradcpp - not found ===> Installing existing package /packages/All/tradcpp-0.5.3.pkg [pkg-builder.dan.net.uk] Installing tradcpp-0.5.3... [pkg-builder.dan.net.uk] Extracting tradcpp-0.5.3: .. done ===> xmail-1.6_3 depends on executable: tradcpp - found ===> Returning to build of xmail-1.6_3 ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/ice.pc - not found ===> Installing existing package /packages/All/libICE-1.1.0_2,1.pkg [pkg-builder.dan.net.uk] Installing libICE-1.1.0_2,1... [pkg-builder.dan.net.uk] Extracting libICE-1.1.0_2,1: .......... done ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/ice.pc - found ===> Returning to build of xmail-1.6_3 ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/sm.pc - not found ===> Installing existing package /packages/All/libSM-1.2.3_1,1.pkg [pkg-builder.dan.net.uk] Installing libSM-1.2.3_1,1... [pkg-builder.dan.net.uk] Extracting libSM-1.2.3_1,1: ........ done ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/sm.pc - found ===> Returning to build of xmail-1.6_3 ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/x11.pc - not found ===> Installing existing package /packages/All/libX11-1.8.7_1,1.pkg [pkg-builder.dan.net.uk] Installing libX11-1.8.7_1,1... [pkg-builder.dan.net.uk] `-- Installing libxcb-1.16.1... [pkg-builder.dan.net.uk] | `-- Installing libXau-1.0.9_1... [pkg-builder.dan.net.uk] | `-- Extracting libXau-1.0.9_1: .......... done [pkg-builder.dan.net.uk] | `-- Installing libXdmcp-1.1.5... [pkg-builder.dan.net.uk] | | `-- Installing xorgproto-2023.2... [pkg-builder.dan.net.uk] | | `-- Extracting xorgproto-2023.2: .......... done [pkg-builder.dan.net.uk] | `-- Extracting libXdmcp-1.1.5: ...... done [pkg-builder.dan.net.uk] `-- Extracting libxcb-1.16.1: .......... done [pkg-builder.dan.net.uk] Extracting libX11-1.8.7_1,1: .......... done ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found ===> Returning to build of xmail-1.6_3 ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - not found ===> Installing existing package /packages/All/libXaw-1.0.14_1,2.pkg [pkg-builder.dan.net.uk] Installing libXaw-1.0.14_1,2... [pkg-builder.dan.net.uk] `-- Installing libXext-1.3.6,1... [pkg-builder.dan.net.uk] `-- Extracting libXext-1.3.6,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libXmu-1.1.4,1... [pkg-builder.dan.net.uk] | `-- Installing libXt-1.3.0,1... [pkg-builder.dan.net.uk] | `-- Extracting libXt-1.3.0,1: .......... done [pkg-builder.dan.net.uk] `-- Extracting libXmu-1.1.4,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libXpm-3.5.17_1... [pkg-builder.dan.net.uk] | `-- Installing gettext-runtime-0.22.3_1... [pkg-builder.dan.net.uk] | | `-- Installing indexinfo-0.3.1... [pkg-builder.dan.net.uk] | | `-- Extracting indexinfo-0.3.1: . done [pkg-builder.dan.net.uk] | `-- Extracting gettext-runtime-0.22.3_1: .......... done [pkg-builder.dan.net.uk] `-- Extracting libXpm-3.5.17_1: .......... done [pkg-builder.dan.net.uk] Extracting libXaw-1.0.14_1,2: .......... done ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found ===> Returning to build of xmail-1.6_3 ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xbitmaps.pc - not found ===> Installing existing package /packages/All/xbitmaps-1.1.2.pkg [pkg-builder.dan.net.uk] Installing xbitmaps-1.1.2... [pkg-builder.dan.net.uk] Extracting xbitmaps-1.1.2: .......... done ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xbitmaps.pc - found ===> Returning to build of xmail-1.6_3 ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for xmail-1.6_3 mv -f Makefile Makefile.bak imake -DUseInstalled -I/usr/local/lib/X11/config make Makefiles make includes make depend rm -f .depend gccmakedep -f- -- -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -- Mailwatch.c HelpText.c actions.c callMail.c callbacks.c confirm.c directory.c environs.c handler.c mail.c parser.c utils.c windows.c xmail.c > .depend =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for xmail-1.6_3 cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c Mailwatch.c -o Mailwatch.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] In file included from Mailwatch.c:88: ./MailwatchP.h:65:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _XtMailwatchP_h ^ // Mailwatch.c:145:9: warning: 'min' macro redefined [-Wmacro-redefined] #define min(a,b) ((a) < (b) ? (a) : (b)) ^ /usr/local/include/X11/Xlibint.h:707:9: note: previous definition is here #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ Mailwatch.c:146:9: warning: 'max' macro redefined [-Wmacro-redefined] #define max(a,b) ((a) > (b) ? (a) : (b)) ^ /usr/local/include/X11/Xlibint.h:708:9: note: previous definition is here #define max(a,b) (((a) > (b)) ? (a) : (b)) ^ Mailwatch.c:258:9: warning: implicit declaration of function 'XmuCreatePixmapFromBitmap' is invalid in C99 [-Wimplicit-function-declaration] return XmuCreatePixmapFromBitmap(dpy, w->core.window, bitmap, ^ Mailwatch.c:441:1: warning: non-void function does not return a value [-Wreturn-type] } ^ Mailwatch.c:455:1: warning: non-void function does not return a value [-Wreturn-type] } ^ Mailwatch.c:534:19: warning: cast to smaller integer type 'XrmName' (aka 'int') from 'void *' [-Wvoid-pointer-to-int-cast] xrm_name[1] = (XrmName) NULL; ^~~~~~~~~~~~~~ Mailwatch.c:536:20: warning: cast to smaller integer type 'XrmClass' (aka 'int') from 'void *' [-Wvoid-pointer-to-int-cast] xrm_class[1] = (XrmClass) NULL; ^~~~~~~~~~~~~~~ Mailwatch.c:644:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (bitmap = XmuLocateBitmapFile(w->core.screen, w->mailbox.mail.bitmap, ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mailwatch.c:644:16: note: place parentheses around the assignment to silence this warning if (bitmap = XmuLocateBitmapFile(w->core.screen, w->mailbox.mail.bitmap, ^ ( Mailwatch.c:644:16: note: use '==' to turn this assignment into an equality comparison if (bitmap = XmuLocateBitmapFile(w->core.screen, w->mailbox.mail.bitmap, ^ == Mailwatch.c:683:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (bitmap = XmuLocateBitmapFile(w->core.screen, w->mailbox.nomail.bitmap, ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mailwatch.c:683:16: note: place parentheses around the assignment to silence this warning if (bitmap = XmuLocateBitmapFile(w->core.screen, w->mailbox.nomail.bitmap, ^ ( Mailwatch.c:683:16: note: use '==' to turn this assignment into an equality comparison if (bitmap = XmuLocateBitmapFile(w->core.screen, w->mailbox.nomail.bitmap, ^ == Mailwatch.c:770:8: warning: implicit declaration of function 'UnsetNewmail' is invalid in C99 [-Wimplicit-function-declaration] UnsetNewmail(w, NULL, NULL); ^ Mailwatch.c:778:11: warning: implicit declaration of function 'UnsetNewmail' is invalid in C99 [-Wimplicit-function-declaration] UnsetNewmail(w, NULL, NULL); ^ Mailwatch.c:787:33: warning: implicit declaration of function 'GetMailrc' is invalid in C99 [-Wimplicit-function-declaration] if (p = (char *)GetMailrc("bell")) ^ Mailwatch.c:787:25: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] if (p = (char *)GetMailrc("bell")) ^~~~~~~~~~~~~~~~~~~~~~~~~ Mailwatch.c:787:23: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = (char *)GetMailrc("bell")) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ Mailwatch.c:787:23: note: place parentheses around the assignment to silence this warning if (p = (char *)GetMailrc("bell")) ^ ( ) Mailwatch.c:787:23: note: use '==' to turn this assignment into an equality comparison if (p = (char *)GetMailrc("bell")) ^ == Mailwatch.c:815:40: warning: implicit declaration of function 'GetMailEnv' is invalid in C99 [-Wimplicit-function-declaration] if (! (w->mailbox.filename = (String) GetMailEnv("MAIL"))) { ^ Mailwatch.c:815:31: warning: cast to 'String' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] if (! (w->mailbox.filename = (String) GetMailEnv("MAIL"))) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Mailwatch.c:821:47: warning: format string contains '\0' within the string body [-Wformat] (void) sprintf(w->mailbox.filename, "%s/%s\0", MAILBOX_DIRECTORY, w->mailbox.username); ~~~~~~^~~ Mailwatch.c:950:27: warning: implicit declaration of function 'GetMailrc' is invalid in C99 [-Wimplicit-function-declaration] if (p = (char *)GetMailrc("bell")) ^ Mailwatch.c:950:19: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] if (p = (char *)GetMailrc("bell")) ^~~~~~~~~~~~~~~~~~~~~~~~~ Mailwatch.c:950:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = (char *)GetMailrc("bell")) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ Mailwatch.c:950:17: note: place parentheses around the assignment to silence this warning if (p = (char *)GetMailrc("bell")) ^ ( ) Mailwatch.c:950:17: note: use '==' to turn this assignment into an equality comparison if (p = (char *)GetMailrc("bell")) ^ == 21 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c HelpText.c -o HelpText.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c actions.c -o actions.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] actions.c:89:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = GetMailEnv("folder")) { ~~~^~~~~~~~~~~~~~~~~~~~~~ actions.c:89:12: note: place parentheses around the assignment to silence this warning if (cp = GetMailEnv("folder")) { ^ ( ) actions.c:89:12: note: use '==' to turn this assignment into an equality comparison if (cp = GetMailEnv("folder")) { ^ == actions.c:105:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] str_compare(char **s1, char **s2) ^ actions.c:510:18: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] (void) system(buf); ^ actions.c:609:12: warning: implicit declaration of function 'AddInfoHandler' is invalid in C99 [-Wimplicit-function-declaration] AddInfoHandler(bw, "Copy this alias to the current header field"); ^ actions.c:749:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (dirp = opendir((char *)foldir)) { /* and folder is readable... */ ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ actions.c:749:20: note: place parentheses around the assignment to silence this warning if (dirp = opendir((char *)foldir)) { /* and folder is readable... */ ^ ( ) actions.c:749:20: note: use '==' to turn this assignment into an equality comparison if (dirp = opendir((char *)foldir)) { /* and folder is readable... */ ^ == actions.c:808:11: warning: implicit declaration of function 'qsort' is invalid in C99 [-Wimplicit-function-declaration] qsort((String) ftbl, total, sizeof(String), str_compare); ^ actions.c:857:19: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else isAdir = FALSE; ^ actions.c:876:15: warning: implicit declaration of function 'AddInfoHandler' is invalid in C99 [-Wimplicit-function-declaration] AddInfoHandler(this_one, Folder_Info[2]); ^ actions.c:878:15: warning: implicit declaration of function 'AddInfoHandler' is invalid in C99 [-Wimplicit-function-declaration] AddInfoHandler(this_one, Folder_Info[1]); ^ actions.c:1004:9: warning: implicit declaration of function 'AddInfoHandler' is invalid in C99 [-Wimplicit-function-declaration] AddInfoHandler(next, info); ^ 10 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c callMail.c -o callMail.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] In file included from callMail.c:51: /usr/include/sys/termios.h:3:2: warning: "this file includes which is deprecated, use instead" [-W#warnings] #warning "this file includes which is deprecated, use instead" ^ callMail.c:320:21: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] (void) exit(1); ^ callMail.c:320:21: note: include the header or explicitly provide a declaration for 'exit' 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c callbacks.c -o callbacks.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] In file included from callbacks.c:31: ./MailwatchP.h:65:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _XtMailwatchP_h ^ // callbacks.c:177:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] DoCopy(file, to, subject, inreply, cc, bcc, outfolder, edits, add_face) ^ callbacks.c:210:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pw = getpwnam(tmp)) ~~~^~~~~~~~~~~~~~~ callbacks.c:210:21: note: place parentheses around the assignment to silence this warning if (pw = getpwnam(tmp)) ^ ( ) callbacks.c:210:21: note: use '==' to turn this assignment into an equality comparison if (pw = getpwnam(tmp)) ^ == callbacks.c:246:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security] (void) fprintf(stderr, tmp); ^~~ callbacks.c:246:31: note: treat the string as an argument to avoid this (void) fprintf(stderr, tmp); ^ "%s", callbacks.c:248:41: warning: format string is not a string literal (potentially insecure) [-Wformat-security] (void) fprintf(fp, From); ^~~~ callbacks.c:248:41: note: treat the string as an argument to avoid this (void) fprintf(fp, From); ^ "%s", callbacks.c:276:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:276:20: note: place parentheses around the assignment to silence this warning if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ^ ( ) callbacks.c:276:20: note: use '==' to turn this assignment into an equality comparison if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ^ == callbacks.c:289:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:289:14: note: place parentheses around the assignment to silence this warning if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) { ^ ( ) callbacks.c:289:14: note: use '==' to turn this assignment into an equality comparison if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) { ^ == callbacks.c:337:18: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] (void) system(tmp); ^ callbacks.c:342:1: warning: non-void function does not return a value [-Wreturn-type] } /* end - DoCopy */ ^ callbacks.c:411:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (pw = getpwnam(tmp)) ~~~^~~~~~~~~~~~~~~ callbacks.c:411:27: note: place parentheses around the assignment to silence this warning if (pw = getpwnam(tmp)) ^ ( ) callbacks.c:411:27: note: use '==' to turn this assignment into an equality comparison if (pw = getpwnam(tmp)) ^ == callbacks.c:419:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(Copy, "a")) { ~~~^~~~~~~~~~~~~~~~~~ callbacks.c:419:18: note: place parentheses around the assignment to silence this warning if (fp = fopen(Copy, "a")) { ^ ( ) callbacks.c:419:18: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(Copy, "a")) { ^ == callbacks.c:510:31: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else len--; /* break at a word boundary */ ^ callbacks.c:564:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (z = strchr(q, ',')) { /* find the end of next alias in list */ ~~^~~~~~~~~~~~~~~~ callbacks.c:564:18: note: place parentheses around the assignment to silence this warning if (z = strchr(q, ',')) { /* find the end of next alias in list */ ^ ( ) callbacks.c:564:18: note: use '==' to turn this assignment into an equality comparison if (z = strchr(q, ',')) { /* find the end of next alias in list */ ^ == callbacks.c:583:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (q = strchr(q, ',')) q--; ~~^~~~~~~~~~~~~~~~ callbacks.c:583:30: note: place parentheses around the assignment to silence this warning if (q = strchr(q, ',')) q--; ^ ( ) callbacks.c:583:30: note: use '==' to turn this assignment into an equality comparison if (q = strchr(q, ',')) q--; ^ == callbacks.c:588:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (q = strchr(q, ',')) q--; ~~^~~~~~~~~~~~~~~~ callbacks.c:588:30: note: place parentheses around the assignment to silence this warning if (q = strchr(q, ',')) q--; ^ ( ) callbacks.c:588:30: note: use '==' to turn this assignment into an equality comparison if (q = strchr(q, ',')) q--; ^ == callbacks.c:631:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = GetMailEnv("outfolder")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:631:14: note: place parentheses around the assignment to silence this warning if (m = GetMailEnv("outfolder")) { ^ ( ) callbacks.c:631:14: note: use '==' to turn this assignment into an equality comparison if (m = GetMailEnv("outfolder")) { ^ == callbacks.c:636:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = GetMailEnv("record")) { ~~^~~~~~~~~~~~~~~~~~~~~~ callbacks.c:636:14: note: place parentheses around the assignment to silence this warning if (m = GetMailEnv("record")) { ^ ( ) callbacks.c:636:14: note: use '==' to turn this assignment into an equality comparison if (m = GetMailEnv("record")) { ^ == callbacks.c:641:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = GetMailEnv("editheaders")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:641:14: note: place parentheses around the assignment to silence this warning if (m = GetMailEnv("editheaders")) { ^ ( ) callbacks.c:641:14: note: use '==' to turn this assignment into an equality comparison if (m = GetMailEnv("editheaders")) { ^ == callbacks.c:700:26: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:700:26: note: place parentheses around the assignment to silence this warning if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ^ ( ) callbacks.c:700:26: note: use '==' to turn this assignment into an equality comparison if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ^ == callbacks.c:713:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:713:20: note: place parentheses around the assignment to silence this warning if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ^ ( ) callbacks.c:713:20: note: use '==' to turn this assignment into an equality comparison if (m = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) ^ == callbacks.c:802:8: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(1); /* the delivery child sub-process */ ^ callbacks.c:802:8: note: include the header or explicitly provide a declaration for 'exit' callbacks.c:825:34: warning: format specifies type 'char *' but the argument has type 'XtPointer' (aka 'void *') [-Wformat] (void) sprintf(Command, "%s\n", closure); ~~ ^~~~~~~ callbacks.c:1126:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = GetMailEnv("editheaders")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:1126:8: note: place parentheses around the assignment to silence this warning if (p = GetMailEnv("editheaders")) { ^ ( ) callbacks.c:1126:8: note: use '==' to turn this assignment into an equality comparison if (p = GetMailEnv("editheaders")) { ^ == callbacks.c:1137:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = GetMailEnv("alwaysignore")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:1137:11: note: place parentheses around the assignment to silence this warning if (p = GetMailEnv("alwaysignore")) { ^ ( ) callbacks.c:1137:11: note: use '==' to turn this assignment into an equality comparison if (p = GetMailEnv("alwaysignore")) { ^ == callbacks.c:1161:46: warning: for loop has empty body [-Wempty-body] for (; *r && *r != '\n'; r++); ^ callbacks.c:1161:46: note: put the semicolon on a separate line to silence this warning callbacks.c:1182:46: warning: for loop has empty body [-Wempty-body] for (; *r && *r != '\n'; r++); ^ callbacks.c:1182:46: note: put the semicolon on a separate line to silence this warning callbacks.c:1373:52: warning: field width should have type 'int', but argument has type 'unsigned long' [-Wformat] (void) sprintf(InReply, "%s: Mail from '%s'\n%*sdated: %s", r, author, ~~^ callbacks.c:1435:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:1435:14: note: place parentheses around the assignment to silence this warning if (p = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) { ^ ( ) callbacks.c:1435:14: note: use '==' to turn this assignment into an equality comparison if (p = XGetDefault(XtDisplay(toplevel), "XMail", "customHeader")) { ^ == callbacks.c:1472:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (n = read(erasable, Command, BUFSIZ)) ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ callbacks.c:1472:14: note: place parentheses around the assignment to silence this warning while (n = read(erasable, Command, BUFSIZ)) ^ ( ) callbacks.c:1472:14: note: use '==' to turn this assignment into an equality comparison while (n = read(erasable, Command, BUFSIZ)) ^ == callbacks.c:1565:5: warning: implicit declaration of function 'reset_mailbox' is invalid in C99 [-Wimplicit-function-declaration] reset_mailbox(XtNameToWidget(toplevel, "icon.mailbox"), 0); ^ callbacks.c:1587:5: warning: implicit declaration of function 'reset_mailbox' is invalid in C99 [-Wimplicit-function-declaration] reset_mailbox(XtNameToWidget(toplevel, "icon.mailbox"), 1); ^ 31 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c confirm.c -o confirm.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] confirm.c:129:43: warning: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] &root_x, &root_y, &child_x, &child_y, &buttons); ^~~~~~~~ /usr/local/include/X11/Xlib.h:3007:1: note: passing argument to parameter here ); ^ confirm.c:141:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (query = (String) XtMalloc((unsigned) strlen(prompt) + 2)) { ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ confirm.c:141:15: note: place parentheses around the assignment to silence this warning if (query = (String) XtMalloc((unsigned) strlen(prompt) + 2)) { ^ ( ) confirm.c:141:15: note: use '==' to turn this assignment into an equality comparison if (query = (String) XtMalloc((unsigned) strlen(prompt) + 2)) { ^ == 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c directory.c -o directory.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] directory.c:144:8: warning: implicit declaration of function 'qsort' is invalid in C99 [-Wimplicit-function-declaration] qsort((char *)ftbl, total, sizeof(char *), str_compare); ^ directory.c:188:15: warning: implicit declaration of function 'AddInfoHandler' is invalid in C99 [-Wimplicit-function-declaration] AddInfoHandler(bw, Folder_Info[1]); ^ 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c environs.c -o environs.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] environs.c:36:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] alias_compare(AliasRec **a1, AliasRec **a2) ^ environs.c:59:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (last_line = strrchr(buffer, '\t')) last_line++; ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ environs.c:59:19: note: place parentheses around the assignment to silence this warning if (last_line = strrchr(buffer, '\t')) last_line++; ^ ( ) environs.c:59:19: note: use '==' to turn this assignment into an equality comparison if (last_line = strrchr(buffer, '\t')) last_line++; ^ == environs.c:84:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (cp = strchr(next_alias, ',')) *cp++ = '\0'; ~~~^~~~~~~~~~~~~~~~~~~~~~~~~ environs.c:84:16: note: place parentheses around the assignment to silence this warning if (cp = strchr(next_alias, ',')) *cp++ = '\0'; ^ ( ) environs.c:84:16: note: use '==' to turn this assignment into an equality comparison if (cp = strchr(next_alias, ',')) *cp++ = '\0'; ^ == environs.c:140:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = strchr(p, '\n')) ~~^~~~~~~~~~~~~~~~~ environs.c:140:22: note: place parentheses around the assignment to silence this warning if (s = strchr(p, '\n')) ^ ( ) environs.c:140:22: note: use '==' to turn this assignment into an equality comparison if (s = strchr(p, '\n')) ^ == environs.c:147:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (value = strchr(p, '\n')) { /* could be more than one */ ~~~~~~^~~~~~~~~~~~~~~~~ environs.c:147:29: note: place parentheses around the assignment to silence this warning if (value = strchr(p, '\n')) { /* could be more than one */ ^ ( ) environs.c:147:29: note: use '==' to turn this assignment into an equality comparison if (value = strchr(p, '\n')) { /* could be more than one */ ^ == environs.c:179:8: warning: implicit declaration of function 'qsort' is invalid in C99 [-Wimplicit-function-declaration] qsort((char *)aliases, n, sizeof(char *), alias_compare); ^ environs.c:281:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = getenv(buf)) ~~^~~~~~~~~~~~~ environs.c:281:14: note: place parentheses around the assignment to silence this warning if (s = getenv(buf)) ^ ( ) environs.c:281:14: note: use '==' to turn this assignment into an equality comparison if (s = getenv(buf)) ^ == environs.c:289:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (c = strchr(s, '\n')) *c = '\0'; ~~^~~~~~~~~~~~~~~~~ environs.c:289:14: note: place parentheses around the assignment to silence this warning if (c = strchr(s, '\n')) *c = '\0'; ^ ( ) environs.c:289:14: note: use '==' to turn this assignment into an equality comparison if (c = strchr(s, '\n')) *c = '\0'; ^ == environs.c:325:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = strchr(value, '$')) { ~~^~~~~~~~~~~~~~~~~~~~ environs.c:325:15: note: place parentheses around the assignment to silence this warning while (s = strchr(value, '$')) { ^ ( ) environs.c:325:15: note: use '==' to turn this assignment into an equality comparison while (s = strchr(value, '$')) { ^ == environs.c:336:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (nvalue = (String) XtMalloc((unsigned) strlen(value) - length + strlen(e) + 2)) { ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ environs.c:336:20: note: place parentheses around the assignment to silence this warning if (nvalue = (String) XtMalloc((unsigned) strlen(value) - length + strlen(e) + 2)) { ^ ( ) environs.c:336:20: note: use '==' to turn this assignment into an equality comparison if (nvalue = (String) XtMalloc((unsigned) strlen(value) - length + strlen(e) + 2)) { ^ == environs.c:359:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = getenv("MAILRC")) ~~^~~~~~~~~~~~~~~~~~ environs.c:359:8: note: place parentheses around the assignment to silence this warning if (s = getenv("MAILRC")) ^ ( ) environs.c:359:8: note: use '==' to turn this assignment into an equality comparison if (s = getenv("MAILRC")) ^ == environs.c:438:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (s = fgets(buf, BUFSIZ, fp)) { ~~^~~~~~~~~~~~~~~~~~~~~~~~ environs.c:438:29: note: place parentheses around the assignment to silence this warning while (s = fgets(buf, BUFSIZ, fp)) { ^ ( ) environs.c:438:29: note: use '==' to turn this assignment into an equality comparison while (s = fgets(buf, BUFSIZ, fp)) { ^ == 12 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c handler.c -o handler.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] In file included from handler.c:41: ./MailwatchP.h:65:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _XtMailwatchP_h ^ // handler.c:99:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(cmd, "w")) { /* create a bogus mail file */ ~~~^~~~~~~~~~~~~~~~~ handler.c:99:27: note: place parentheses around the assignment to silence this warning if (fp = fopen(cmd, "w")) { /* create a bogus mail file */ ^ ( ) handler.c:99:27: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(cmd, "w")) { /* create a bogus mail file */ ^ == handler.c:249:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] file_handler(void) ^ handler.c:269:29: warning: format string is not a string literal (potentially insecure) [-Wformat-security] (void) sprintf(msgnum_str, c); ^ handler.c:269:29: note: treat the string as an argument to avoid this (void) sprintf(msgnum_str, c); ^ "%s", handler.c:285:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (c = strrchr(headers, '\n')) c++; ~~^~~~~~~~~~~~~~~~~~~~~~~~ handler.c:285:14: note: place parentheses around the assignment to silence this warning if (c = strrchr(headers, '\n')) c++; ^ ( ) handler.c:285:14: note: use '==' to turn this assignment into an equality comparison if (c = strrchr(headers, '\n')) c++; ^ == handler.c:306:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = strrchr(headers, '\n')) p++; ~~^~~~~~~~~~~~~~~~~~~~~~~~ handler.c:306:17: note: place parentheses around the assignment to silence this warning if (p = strrchr(headers, '\n')) p++; ^ ( ) handler.c:306:17: note: use '==' to turn this assignment into an equality comparison if (p = strrchr(headers, '\n')) p++; ^ == handler.c:334:15: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] msg_num = atoi(msgnum_str); ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c mail.c -o mail.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] mail.c:144:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = GetMailEnv("editheaders")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ mail.c:144:8: note: place parentheses around the assignment to silence this warning if (p = GetMailEnv("editheaders")) { ^ ( ) mail.c:144:8: note: use '==' to turn this assignment into an equality comparison if (p = GetMailEnv("editheaders")) { ^ == mail.c:292:52: warning: missing sentinel in function call [-Wsentinel] (void) execl("/bin/sh", "sh", "-c", cmd, 0); ^ , NULL /usr/include/unistd.h:332:6: note: function has been explicitly marked sentinel here int execl(const char *, const char *, ...) __null_sentinel; ^ mail.c:353:2: warning: implicit declaration of function 'AddInfoHandler' is invalid in C99 [-Wimplicit-function-declaration] AddInfoHandler(input_window, info); ^ mail.c:380:2: warning: implicit declaration of function 'AddInfoHandler' is invalid in C99 [-Wimplicit-function-declaration] AddInfoHandler(button, info); ^ 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c parser.c -o parser.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] In file included from parser.c:46: ./MailwatchP.h:65:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _XtMailwatchP_h ^ // parser.c:136:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (bp = (char *)re_comp(cp->pat)) { ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ parser.c:136:13: note: place parentheses around the assignment to silence this warning if (bp = (char *)re_comp(cp->pat)) { ^ ( ) parser.c:136:13: note: use '==' to turn this assignment into an equality comparison if (bp = (char *)re_comp(cp->pat)) { ^ == parser.c:172:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] update_times(void) ^ parser.c:194:1: warning: non-void function does not return a value [-Wreturn-type] } /* end - update_times */ ^ parser.c:240:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (h = strrchr(buf, '!')) /* UUCP - host![host!]user[@host]... */ ~~^~~~~~~~~~~~~~~~~~~ parser.c:240:11: note: place parentheses around the assignment to silence this warning if (h = strrchr(buf, '!')) /* UUCP - host![host!]user[@host]... */ ^ ( ) parser.c:240:11: note: use '==' to turn this assignment into an equality comparison if (h = strrchr(buf, '!')) /* UUCP - host![host!]user[@host]... */ ^ == parser.c:243:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (h = strchr(buf, '@')) { /* ARPA address - user[%host]@host */ ~~^~~~~~~~~~~~~~~~~~ parser.c:243:14: note: place parentheses around the assignment to silence this warning if (h = strchr(buf, '@')) { /* ARPA address - user[%host]@host */ ^ ( ) parser.c:243:14: note: use '==' to turn this assignment into an equality comparison if (h = strchr(buf, '@')) { /* ARPA address - user[%host]@host */ ^ == parser.c:245:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (h = strchr(buf, '%')) ~~^~~~~~~~~~~~~~~~~~ parser.c:245:17: note: place parentheses around the assignment to silence this warning if (h = strchr(buf, '%')) ^ ( ) parser.c:245:17: note: use '==' to turn this assignment into an equality comparison if (h = strchr(buf, '%')) ^ == parser.c:247:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (h = strrchr(buf, ':')) /* DECNet form - host::user%host@host */ ~~^~~~~~~~~~~~~~~~~~~ parser.c:247:17: note: place parentheses around the assignment to silence this warning if (h = strrchr(buf, ':')) /* DECNet form - host::user%host@host */ ^ ( ) parser.c:247:17: note: use '==' to turn this assignment into an equality comparison if (h = strrchr(buf, ':')) /* DECNet form - host::user%host@host */ ^ == parser.c:254:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (h = GetMailEnv("outfolder")) { ~~^~~~~~~~~~~~~~~~~~~~~~~~~ parser.c:254:8: note: place parentheses around the assignment to silence this warning if (h = GetMailEnv("outfolder")) { ^ ( ) parser.c:254:8: note: use '==' to turn this assignment into an equality comparison if (h = GetMailEnv("outfolder")) { ^ == parser.c:397:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (c = GetMailEnv("screen")) { ~~^~~~~~~~~~~~~~~~~~~~~~ parser.c:397:30: note: place parentheses around the assignment to silence this warning if (c = GetMailEnv("screen")) { ^ ( ) parser.c:397:30: note: use '==' to turn this assignment into an equality comparison if (c = GetMailEnv("screen")) { ^ == parser.c:407:33: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (c = GetMailrc("nohold")) XtFree((String) c); ~~^~~~~~~~~~~~~~~~~~~~~ parser.c:407:33: note: place parentheses around the assignment to silence this warning if (c = GetMailrc("nohold")) XtFree((String) c); ^ ( ) parser.c:407:33: note: use '==' to turn this assignment into an equality comparison if (c = GetMailrc("nohold")) XtFree((String) c); ^ == parser.c:430:38: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (msgnum = file_handler()) { ~~~~~~~^~~~~~~~~~~~~~~~ parser.c:430:38: note: place parentheses around the assignment to silence this warning if (msgnum = file_handler()) { ^ ( ) parser.c:430:38: note: use '==' to turn this assignment into an equality comparison if (msgnum = file_handler()) { ^ == parser.c:471:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (endOfLine = strchr(msg, '\n')) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ parser.c:471:21: note: place parentheses around the assignment to silence this warning if (endOfLine = strchr(msg, '\n')) ^ ( ) parser.c:471:21: note: use '==' to turn this assignment into an equality comparison if (endOfLine = strchr(msg, '\n')) ^ == parser.c:740:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (endOfLine = strchr(output,'\n')) ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ parser.c:740:19: note: place parentheses around the assignment to silence this warning if (endOfLine = strchr(output,'\n')) ^ ( ) parser.c:740:19: note: use '==' to turn this assignment into an equality comparison if (endOfLine = strchr(output,'\n')) ^ == 14 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c utils.c -o utils.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] utils.c:121:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c windows.c -o windows.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] In file included from windows.c:41: ./MailwatchP.h:65:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] #endif _XtMailwatchP_h ^ // windows.c:655:25: warning: passing 'unsigned char[60]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] national_bits, national_width, national_height); ^~~~~~~~~~~~~ /usr/local/include/X11/Xlib.h:1607:29: note: passing argument to parameter here _Xconst char* /* data */, ^ windows.c:719:28: warning: passing 'Cardinal *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] res = XParseGeometry(str, x, y, &w, &h); ^ /usr/local/include/X11/Xlib.h:2873:25: note: passing argument to parameter here int* /* x_return */, ^ windows.c:719:31: warning: passing 'Cardinal *' (aka 'unsigned int *') to parameter of type 'int *' converts between pointers to integer types with different sign [-Wpointer-sign] res = XParseGeometry(str, x, y, &w, &h); ^ /usr/local/include/X11/Xlib.h:2874:25: note: passing argument to parameter here int* /* y_return */, ^ 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -lutil -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSE_DIRENT -DXPM -DMAILBOX_DIRECTORY=\"/var/mail\" -DDEFAULT_VISUAL=\"/usr/bin/vi\" -DDEFAULT_MAILER=\"/usr/bin/Mail\" -DSIGACTION -c xmail.c -o xmail.o cc: warning: -lutil: 'linker' input unused [-Wunused-command-line-argument] xmail.c:155:20: warning: implicit declaration of function 'getenv' is invalid in C99 [-Wimplicit-function-declaration] if ((cp = (char *)getenv("XMAILER")) == NULL) /* first looks up env var */ ^ xmail.c:155:12: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] if ((cp = (char *)getenv("XMAILER")) == NULL) /* first looks up env var */ ^~~~~~~~~~~~~~~~~~~~~~~~~ xmail.c:172:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (fp = fopen(InReply, "w")) { /* create our bogus mail file */ ~~~^~~~~~~~~~~~~~~~~~~~~ xmail.c:172:12: note: place parentheses around the assignment to silence this warning if (fp = fopen(InReply, "w")) { /* create our bogus mail file */ ^ ( ) xmail.c:172:12: note: use '==' to turn this assignment into an equality comparison if (fp = fopen(InReply, "w")) { /* create our bogus mail file */ ^ == xmail.c:204:14: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] if ((i = atoi(value.addr)) > XMail.borderWidth) ^ xmail.c:210:14: warning: implicit declaration of function 'atoi' is invalid in C99 [-Wimplicit-function-declaration] if ((i = atoi(value.addr)) > XMail.borderWidth) ^ xmail.c:292:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] SetHints(void) ^ xmail.c:367:1: warning: non-void function does not return a value [-Wreturn-type] } /* SetHints */ ^ xmail.c:373:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main(int argc, String *argv) ^ xmail.c:486:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration] exit(-1); ^ xmail.c:486:5: note: include the header or explicitly provide a declaration for 'exit' 9 warnings generated. rm -f xmail cc -o xmail -L/usr/local/lib Mailwatch.o HelpText.o actions.o callMail.o callbacks.o confirm.o directory.o environs.o handler.o mail.o parser.o utils.o windows.o xmail.o -lXpm -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lXt -lSM -lICE -lXext -lX11 -lcompat -lutil -Wl,-rpath,/usr/local/lib rm -f xmail._man if test -z "" ; then cd `dirname xmail` && ln -s `basename xmail.man` `basename xmail._man`; else tradcpp -undef -traditional -D__apploaddir__=/usr/local/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr/local -D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/local/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'` X.Org" < xmail.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\\/' >xmail._man; fi =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/ice.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/sm.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xaw7.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xbitmaps.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xext.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xmu.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> xmail-1.6_3 depends on file: /usr/local/libdata/pkgconfig/xt.pc - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for xmail-1.6_3 ===> Generating temporary packing list /usr/bin/install -c -s xmail /wrkdirs/usr/ports/mail/xmail/work/stage/usr/local/bin/xmail /usr/bin/install -c -m 0444 XMail.ad /wrkdirs/usr/ports/mail/xmail/work/stage/usr/local/lib/X11/app-defaults/XMail install in . done rm -f /wrkdirs/usr/ports/mail/xmail/work/stage/usr/local/share/man/man1/xmail.1* /usr/bin/install -c -m 0444 xmail._man /wrkdirs/usr/ports/mail/xmail/work/stage/usr/local/share/man/man1/xmail.1 gzip -n /wrkdirs/usr/ports/mail/xmail/work/stage/usr/local/share/man/man1/xmail.1 install.man in . done ====> 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=2024-04-05T10:27:05+0000' 'PKG_NOTE_ports_top_git_hash=c2c35d895e' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=e427ab10bf' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.99.20240122_1' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for xmail-1.6_3 ===> Building xmail-1.6_3 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for xmail-1.6_3 build of mail/xmail | xmail-1.6_3 ended at Fri Apr 5 11:27:23 BST 2024 build time: 00:00:19