D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/c-client-2007f-11.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.zdpmkJ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf imap-2007f + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/imap-2007f.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd imap-2007f + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (imap-2002e-ssl.patch):' Patch #0 (imap-2002e-ssl.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .ssl --fuzz=0 patching file src/osdep/unix/Makefile Hunk #1 succeeded at 54 (offset 26 lines). + echo 'Patch #1 (imap-2007a-linux.diff):' Patch #1 (imap-2007a-linux.diff): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .linux --fuzz=0 patching file src/osdep/unix/Makefile Hunk #3 succeeded at 496 (offset 8 lines). Hunk #4 succeeded at 509 (offset 8 lines). + echo 'Patch #3 (imap-2001a-disable-mbox.patch):' Patch #3 (imap-2001a-disable-mbox.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .mbox --fuzz=0 patching file Makefile Hunk #1 succeeded at 145 (offset 1 line). patching file src/osdep/unix/Makefile + echo 'Patch #4 (imap-2001a-redhat.patch):' Patch #4 (imap-2001a-redhat.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .redhat --fuzz=0 patching file Makefile Hunk #1 succeeded at 253 (offset 1 line). + echo 'Patch #5 (imap-2006c1-flock.diff):' Patch #5 (imap-2006c1-flock.diff): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .flock --fuzz=0 patching file src/osdep/unix/Makefile Hunk #1 succeeded at 152 (offset 10 lines). + install -m 0644 /home/pterjan/rpmbuild/SOURCES/flock.c src/osdep/unix/flock.c + echo 'Patch #9 (imap-2006c1-glibc-2.2.2.diff):' Patch #9 (imap-2006c1-glibc-2.2.2.diff): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .glibc --fuzz=0 patching file src/osdep/unix/env_unix.c patching file src/osdep/unix/mh.c patching file src/osdep/unix/mx.c patching file src/osdep/unix/news.c patching file src/osdep/unix/phile.c + echo 'Patch #12 (imap-2001a-overflow.patch):' Patch #12 (imap-2001a-overflow.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .overflow --fuzz=0 patching file src/c-client/rfc822.c + echo 'Patch #17 (imap-mail-spool-perms.diff):' Patch #17 (imap-mail-spool-perms.diff): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .lock-warning --fuzz=0 patching file src/osdep/unix/env_unix.c Hunk #1 succeeded at 224 (offset 6 lines). + echo 'Patch #21 (imap-2004a-shared.patch):' Patch #21 (imap-2004a-shared.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .shared --fuzz=0 patching file src/osdep/unix/Makefile Hunk #2 succeeded at 856 (offset 8 lines). Hunk #3 succeeded at 913 (offset 8 lines). Hunk #4 succeeded at 927 (offset 8 lines). + echo 'Patch #22 (imap-2002e-authmd5.patch):' Patch #22 (imap-2002e-authmd5.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .authmd5 --fuzz=0 patching file src/c-client/auth_md5.c Hunk #1 succeeded at 42 (offset 8 lines). + echo 'Patch #23 (imap-2006c1-annotate.diff):' Patch #23 (imap-2006c1-annotate.diff): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .annotate --fuzz=0 patching file src/c-client/imap4r1.c Hunk #1 succeeded at 133 (offset -5 lines). Hunk #2 succeeded at 204 (offset -5 lines). Hunk #3 succeeded at 2767 (offset 16 lines). Hunk #4 succeeded at 2897 (offset 16 lines). Hunk #5 succeeded at 3039 (offset 16 lines). Hunk #6 succeeded at 3060 (offset 16 lines). Hunk #7 succeeded at 3239 (offset 16 lines). Hunk #8 succeeded at 4194 (offset 28 lines). patching file src/c-client/imap4r1.h Hunk #1 succeeded at 279 (offset 39 lines). patching file src/c-client/mail.c Hunk #1 succeeded at 67 (offset -5 lines). Hunk #2 succeeded at 597 (offset 11 lines). Hunk #3 succeeded at 5720 (offset 50 lines). Hunk #4 succeeded at 6051 (offset 50 lines). patching file src/c-client/mail.h Hunk #1 succeeded at 353 (offset 8 lines). Hunk #2 succeeded at 1050 (offset 15 lines). Hunk #3 succeeded at 1376 (offset 15 lines). Hunk #4 succeeded at 1795 (offset 17 lines). patching file src/mtest/mtest.c Hunk #4 succeeded at 624 (offset 5 lines). + echo 'Patch #24 (imap-2004g-hash_reset.diff):' Patch #24 (imap-2004g-hash_reset.diff): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .hash_reset --fuzz=0 patching file src/c-client/mail.c patching file src/c-client/misc.c patching file src/c-client/misc.h + echo 'Patch #25 (imap-yes.diff):' Patch #25 (imap-yes.diff): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .yes --fuzz=0 patching file Makefile Hunk #1 succeeded at 579 (offset 28 lines). Hunk #2 succeeded at 602 (offset 28 lines). + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.NgvNVI + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd imap-2007f + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables' + export 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables' + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables' + RPM_OPT_FLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables' + touch ip6 + export 'EXTRACFLAGS= -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 -I/usr/include/openssl -D_GNU_SOURCE' + EXTRACFLAGS=' -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 -I/usr/include/openssl -D_GNU_SOURCE' + export 'EXTRALDFLAGS= -L/usr/lib64 -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + EXTRALDFLAGS=' -L/usr/lib64 -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + make 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -D_REENTRANT -DDIC -fPIC -fno-omit-frame-pointer -D_GNU_SOURCE' slx 'EXTRACFLAGS= -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 -I/usr/include/openssl -D_GNU_SOURCE' 'EXTRALDFLAGS= -L/usr/lib64 -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' SSLDIR=/usr/lib64/ssl SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib64 LOCKPGM=/usr/sbin/mlock SSLTYPE=unix SHLIBBASE=c-client SHLIBNAME=libc-client.so.0 'BASECFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -D_REENTRANT -DDIC -fPIC -fno-omit-frame-pointer -D_GNU_SOURCE' IP=6 make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f' +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Building in PARTIAL compliance with RFC 3501 security + requirements: + Compliant: ++ TLS/SSL encryption is supported + Non-compliant: ++ Unencrypted plaintext passwords are permitted + + In order to rectify this problem, you MUST build with: ++ SSLTYPE=unix.nopwd +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f' Applying an process to sources... tools/an "ln -s" src/c-client c-client tools/an "ln -s" src/ansilib c-client tools/an "ln -s" src/charset c-client tools/an "ln -s" src/osdep/unix c-client tools/an "ln -s" src/mtest mtest tools/an "ln -s" src/ipopd ipopd tools/an "ln -s" src/imapd imapd tools/an "ln -s" src/mailutil mailutil tools/an "ln -s" src/mlock mlock tools/an "ln -s" src/dmail dmail tools/an "ln -s" src/tmail tmail ln -s tools/an . make build EXTRACFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 -I/usr/include/openssl -D_GNU_SOURCE' EXTRALDFLAGS='-L/usr/lib64 -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' EXTRADRIVERS='' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix IP=6 EXTRASPECIALS='' BUILDTYPE=slx make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f' make[2]: 'ip6' is up to date. make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f' Building c-client for slx... echo `cat SPECIALS` > c-client/SPECIALS cd c-client;make slx EXTRACFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 -I/usr/include/openssl -D_GNU_SOURCE'\ EXTRALDFLAGS='-L/usr/lib64 -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'\ EXTRADRIVERS=''\ EXTRAAUTHENTICATORS=''\ PASSWDTYPE=std SSLTYPE=unix IP=6\ make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/c-client' You are building for libc6/glibc versions of Secure Linux If you want libc5 versions you must use sl5 instead! If you want libc4 versions you must use sl4 instead! make build EXTRACFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 -I/usr/include/openssl -D_GNU_SOURCE' EXTRALDFLAGS='-L/usr/lib64 -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' EXTRADRIVERS='' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=unix IP=6 `cat SPECIALS` OS=slx \ SIGTYPE=psx CHECKPW=psx CRXTYPE=nfs \ SPOOLDIR=/var/spool \ ACTIVEFILE=/var/lib/news/active \ RSHPATH=/usr/bin/rsh \ BASECFLAGS="-g -pipe -fno-omit-frame-pointer" \ BASELDFLAGS="-lcrypt" make[3]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/c-client' sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE *FLAGS *TYPE c-client.a || true' Once-only environment setup... echo cc > CCTYPE echo -g -pipe -fno-omit-frame-pointer '-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -fasynchronous-unwind-tables -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 -I/usr/include/openssl -D_GNU_SOURCE' -DCHUNKSIZE=65536 > CFLAGS echo -DCREATEPROTO=unixproto -DEMPTYPROTO=unixproto \ -DMD5ENABLE=\"/etc/cram-md5.pwd\" -DMAILSPOOL=\"/var/spool/mail\" \ -DANONYMOUSHOME=\"/var/spool/mail/anonymous\" \ -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \ -DRSHPATH=\"/usr/bin/rsh\" -DLOCKPGM=\"/usr/sbin/mlock\" \ -DLOCKPGM1=\"\" -DLOCKPGM2=\"\" \ -DLOCKPGM3=\"\" > OSCFLAGS echo -lcrypt -L/usr/lib64 -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags > LDFLAGS echo "ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o flock.o;ranlib c-client.a" > ARCHIVE echo slx > OSTYPE ./drivers imap nntp pop3 mix mx mbx tenex mtx mh mmdf unix news phile dummy ./mkauths ext md5 pla log echo " mail_versioncheck (CCLIENTVERSION);" >> linkage.c ln -s os_slx.h osdep.h ln -s os_slx.c osdepbas.c ln -s log_std.c osdeplog.c ln -s sig_psx.c siglocal.c ln -s crx_nfs.c crexcl.c ln -s ip6_unix.c ip_unix.c sh -c '(test slx = sc5 -o slx = sco -o ! -f /usr/include/sys/statvfs.h) && echo -DNOFSTATVFS >> OSCFLAGS || fgrep statvfs64 /usr/include/sys/statvfs.h > /dev/null || echo -DNOFSTATVFS64 >> OSCFLAGS' Standard password authentication ln -s ckp_psx.c osdepckp.c Building with SSL ln -s ssl_unix.c osdepssl.c echo -I/usr/include/openssl -I/usr/include/openssl/openssl -DSSL_CERT_DIRECTORY=\"/etc/ssl/imap\" -DSSL_KEY_DIRECTORY=\"/etc/ssl/imap\" >> OSCFLAGS echo " ssl_onceonlyinit ();" >> linkage.c echo -L/usr/lib64 -lssl -lcrypto >> LDFLAGS cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c cc -D_REENTRANT -fPIC -DPIC -g `cat OSCFLAGS` -c osdep.c In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdlib.h:25, from osdep.h:43, from osdep.c:31: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from osdep.c:31:0: env_unix.c: In function 'lock_work': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ env_unix.c:1375:27: note: in expansion of macro 'flock' if (op & LOCK_NB) i = flock (fd,op); ^~~~~ ======================================================================== Building OS-dependent module If you get No such file error messages for files x509.h, ssl.h, pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL is not installed on your system. Either install OpenSSL first or build with command: make slx SSLTYPE=none ======================================================================== cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mail.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` misc.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` newsrc.c newsrc.c: In function 'newsrc_state': newsrc.c:468:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (s,(size_t) 1,size,f); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` smanager.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` utf8.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` utf8aux.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` siglocal.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` dummy.c dummy.c: In function 'dummy_scan_contents': dummy.c:383:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dummy.c: In function 'dummy_delete': dummy.c:523:48: warning: '%.80s' directive argument is null [-Wformat-overflow=] sprintf (tmp,"Can't delete - invalid name: %.80s",s); ^~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` pseudo.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` netmsg.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` flstring.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` fdstring.c In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdlib.h:25, from osdep.h:43, from fdstring.c:30: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ fdstring.c: In function 'fd_string_setpos': fdstring.c:97:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read ((long) s->data,s->curpos,(size_t) s->cursize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdstring.c: In function 'fd_string_init': fdstring.c:67:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (d->fd,s->chunk,(size_t) s->cursize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` rfc822.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` nntp.c nntp.c: In function 'nntp_mopen': nntp.c:764:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (LOCAL->over_fmt = (char *) fs_get ((size_t) k + 3), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (size_t) 1,(size_t) k,f); ~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c: In function 'nntp_header': nntp.c:1100:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (elt->private.msg.header.text.data = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (unsigned char *) fs_get ((size_t) *size + 3), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (size_t) 1,(size_t) *size,f); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` smtp.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` imap4r1.c cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` pop3.c pop3.c: In function 'pop3_header': pop3.c:848:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (elt->private.msg.header.text.data = (unsigned char *) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs_get ((size_t) elt->private.msg.header.text.size + 1), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (size_t) 1,(size_t) elt->private.msg.header.text.size,f); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` unix.c unix.c: In function 'unix_valid': unix.c:231:2: warning: implicit declaration of function 'utime'; did you mean 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime In file included from unix.c:46:0: unix.c: In function 'unix_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ unix.c:530:5: note: in expansion of macro 'flock' flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^~~~~ unix.c:519:7: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,i); /* make sure tied off */ ^~~~~~~~~~~~~~~~ unix.c: In function 'unix_header': unix.c:630:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.header.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:640:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elt->private.msg.header.text.size); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_text_work': unix.c:707:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.text.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_copy': unix.c:956:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:982:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_append': unix.c:1152:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_rewrite': unix.c:2139:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2239:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize = size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_extend': unix.c:2285:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'mbox_ping': unix.c:2611:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (sfd,s = (char *) fs_get (size + 1),size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2621:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2629:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2640:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (sfd,0); /* truncate sysinbox to zero bytes */ ^~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mbx.c In file included from mbx.c:42:0: mbx.c: In function 'mbx_isvalid': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mbx.c:233:12: note: in expansion of macro 'flock' if (flock (fd,LOCK_SH) || ^~~~~ mbx.c:303:7: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] utime (tmp,tp); /* set the times */ ^~~~~ utimes mbx.c: In function 'mbx_header': mbx.c:709:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = LOCAL->buf,*length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_snarf': mbx.c:965:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_copy': mbx.c:1046:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1060:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_append': mbx.c:1195:7: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_parse': mbx.c:1269:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,HDRSIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_rewrite': mbx.c:1757:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1781:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mmdf.c mmdf.c: In function 'mmdf_isvalid': mmdf.c:382:2: warning: implicit declaration of function 'utime'; did you mean 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime In file included from mmdf.c:34:0: mmdf.c: In function 'mmdf_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mmdf.c:669:5: note: in expansion of macro 'flock' flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^~~~~ mmdf.c:658:7: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,i); /* make sure tied off */ ^~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_header': mmdf.c:769:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.header.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:779:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elt->private.msg.header.text.size); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_text_work': mmdf.c:846:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.text.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_copy': mmdf.c:1091:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1118:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_append': mmdf.c:1288:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_rewrite': mmdf.c:2302:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:2385:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize = size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_extend': mmdf.c:2431:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` tenex.c tenex.c: In function 'tenex_isvalid': tenex.c:206:2: warning: implicit declaration of function 'utime'; did you mean 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime In file included from tenex.c:47:0: tenex.c: In function 'tenex_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ tenex.c:315:7: note: in expansion of macro 'flock' if (flock (fd,LOCK_EX|LOCK_NB)) { ^~~~~ tenex.c: In function 'tenex_fast': tenex.c:516:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.full.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_header': tenex.c:567:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,*length = i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:572:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s,i); /* slurp the data */ ^~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_text': tenex.c:614:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:629:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s,i); /* slurp the data */ ^~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_snarf': tenex.c:799:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_expunge': tenex.c:890:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:917:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_copy': tenex.c:1008:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:1016:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_append': tenex.c:1150:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size);/* revert file */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_hdrpos': tenex.c:1456:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = LOCAL->buf,i = min (msiz-siz,(long) MAILTMPLEN)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mtx.c mtx.c: In function 'mtx_isvalid': mtx.c:199:2: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ utimes In file included from mtx.c:42:0: mtx.c: In function 'mtx_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mtx.c:308:7: note: in expansion of macro 'flock' if (flock (fd,LOCK_EX|LOCK_NB)) { ^~~~~ mtx.c: In function 'mtx_header': mtx.c:515:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,*length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_snarf': mtx.c:710:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_expunge': mtx.c:801:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:827:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_copy': mtx.c:918:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:926:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_append': mtx.c:1053:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size);/* revert file */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` news.c news.c: In function 'news_open': news.c:371:36: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~ In file included from osdep.h:47:0, from news.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ news.c:371:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~~ In file included from osdep.h:47:0, from news.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ news.c: In function 'news_valid': news.c:162:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,t = s = (char *) fs_get (sbuf.st_size+1),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ news.c: In function 'news_list': news.c:229:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,s = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` phile.c phile.c: In function 'phile_open': phile.c:318:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,buf->data = (unsigned char *) fs_get (buf->size + 1),buf->size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mh.c mh.c: In function 'mh_ping': mh.c:865:46: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:865:56: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:939:17: warning: too many arguments for format [-Wformat-extra-args] sprintf (tmp,"Message copy to MH mailbox failed: %.80s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c: In function 'mh_append': mh.c:1131:37: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:1131:47: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c: In function 'mh_setdate': mh.c:1282:3: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ utimes mh.c: In function 'mh_path': mh.c:251:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,(t = (char *) fs_get (sbuf.st_size + 1)),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mx.c mx.c: In function 'mx_scan_contents': mx.c:278:38: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:278:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c: In function 'mx_rename': mx.c:463:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:463:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c: In function 'mx_ping': mx.c:732:51: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:732:61: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:804:17: warning: too many arguments for format [-Wformat-extra-args] sprintf (tmp,"Message copy to MX mailbox failed: %.80s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mx.c:35:0: mx.c: In function 'mx_lockindex': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mx.c:1174:5: note: in expansion of macro 'flock' flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ ^~~~~ mx.c: In function 'mx_setdate': mx.c:1287:3: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ utimes mx.c: In function 'mx_header': mx.c:637:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,LOCAL->buf,elt->rfc822_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_lockindex': mx.c:1178:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = idx = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_unlockindex': mx.c:1270:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,size); ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mix.c mix.c: In function 'mix_scan_contents': mix.c:324:38: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) ^~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:324:49: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) ^~~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c: In function 'mix_create': mix.c:63:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" ^ mix.c:63:16: note: in definition of macro 'MTAFMT' #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mix.c:33:0: mix.c: In function 'mix_delete': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mix.c:471:50: note: in expansion of macro 'flock' else if (((fd = open (tmp,O_RDWR,NIL)) < 0) || flock (fd,LOCK_EX|LOCK_NB)) ^~~~~ mix.c: In function 'mix_rename': mix.c:556:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mix_rselect,alphasort); ^~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c: In function 'mix_expunge': mix.c:1054:53: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:1054:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); ^~~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c: In function 'mix_copy': mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^ mix.c:69:16: note: in definition of macro 'MSRFMT' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^ mix.c:69:16: note: in definition of macro 'MSRFMT' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_append': mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^ mix.c:69:16: note: in definition of macro 'MSRFMT' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^ mix.c:69:16: note: in definition of macro 'MSRFMT' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_index_update': mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 15 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 16 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 17 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_status_update': mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_copy': mix.c:1477:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,size); /* revert file */ ^~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_append': mix.c:1594:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,size); /* revert all writes to file*/ ^~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_meta_update': mix.c:2209:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->mfd,i); /* and tie off at that point */ ^~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_index_update': mix.c:2255:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fileno (idxf),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2288:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] if (ret) ftruncate (fileno (idxf),ftell (idxf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_status_update': mix.c:2335:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fileno (statf),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2369:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] if (ret) ftruncate (fileno (statf),ftell (statf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_sortcache_update': mix.c:2697:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] if (ret) ftruncate (fileno (f),ftell (f)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` flock.c sh -c 'rm -rf c-client.a || true' ar rc c-client.a osdep.o mail.o misc.o newsrc.o smanager.o utf8.o utf8aux.o siglocal.o dummy.o pseudo.o netmsg.o flstring.o fdstring.o rfc822.o nntp.o smtp.o imap4r1.o pop3.o unix.o mbx.o mmdf.o tenex.o mtx.o news.o phile.o mh.o mx.o mix.o flock.o;ranlib c-client.a cc -D_REENTRANT -fPIC -DPIC -c -g `cat OSCFLAGS` osdep.c -o osdep.so In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdlib.h:25, from osdep.h:43, from osdep.c:31: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ In file included from osdep.c:31:0: env_unix.c: In function 'lock_work': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ env_unix.c:1375:27: note: in expansion of macro 'flock' if (op & LOCK_NB) i = flock (fd,op); ^~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mail.c -o mail.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` misc.c -o misc.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` newsrc.c -o newsrc.so newsrc.c: In function 'newsrc_state': newsrc.c:468:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (s,(size_t) 1,size,f); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` smanager.c -o smanager.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` utf8.c -o utf8.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` utf8aux.c -o utf8aux.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` siglocal.c -o siglocal.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` dummy.c -o dummy.so dummy.c: In function 'dummy_scan_contents': dummy.c:383:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dummy.c: In function 'dummy_delete': dummy.c:523:48: warning: '%.80s' directive argument is null [-Wformat-overflow=] sprintf (tmp,"Can't delete - invalid name: %.80s",s); ^~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` pseudo.c -o pseudo.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` netmsg.c -o netmsg.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` flstring.c -o flstring.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` fdstring.c -o fdstring.so In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdlib.h:25, from osdep.h:43, from fdstring.c:30: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ fdstring.c: In function 'fd_string_setpos': fdstring.c:97:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read ((long) s->data,s->curpos,(size_t) s->cursize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fdstring.c: In function 'fd_string_init': fdstring.c:67:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (d->fd,s->chunk,(size_t) s->cursize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` rfc822.c -o rfc822.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` nntp.c -o nntp.so nntp.c: In function 'nntp_mopen': nntp.c:764:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (LOCAL->over_fmt = (char *) fs_get ((size_t) k + 3), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (size_t) 1,(size_t) k,f); ~~~~~~~~~~~~~~~~~~~~~~~~ nntp.c: In function 'nntp_header': nntp.c:1100:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (elt->private.msg.header.text.data = ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (unsigned char *) fs_get ((size_t) *size + 3), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (size_t) 1,(size_t) *size,f); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` smtp.c -o smtp.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` imap4r1.c -o imap4r1.so cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` pop3.c -o pop3.so pop3.c: In function 'pop3_header': pop3.c:848:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (elt->private.msg.header.text.data = (unsigned char *) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs_get ((size_t) elt->private.msg.header.text.size + 1), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (size_t) 1,(size_t) elt->private.msg.header.text.size,f); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` unix.c -o unix.so unix.c: In function 'unix_valid': unix.c:231:2: warning: implicit declaration of function 'utime'; did you mean 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime In file included from unix.c:46:0: unix.c: In function 'unix_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ unix.c:530:5: note: in expansion of macro 'flock' flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^~~~~ unix.c:519:7: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,i); /* make sure tied off */ ^~~~~~~~~~~~~~~~ unix.c: In function 'unix_header': unix.c:630:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.header.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:640:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elt->private.msg.header.text.size); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_text_work': unix.c:707:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.text.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_copy': unix.c:956:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:982:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_append': unix.c:1152:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_rewrite': unix.c:2139:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2239:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize = size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'unix_extend': unix.c:2285:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c: In function 'mbox_ping': unix.c:2611:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (sfd,s = (char *) fs_get (size + 1),size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2621:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2629:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unix.c:2640:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (sfd,0); /* truncate sysinbox to zero bytes */ ^~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mbx.c -o mbx.so In file included from mbx.c:42:0: mbx.c: In function 'mbx_isvalid': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mbx.c:233:12: note: in expansion of macro 'flock' if (flock (fd,LOCK_SH) || ^~~~~ mbx.c:303:7: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] utime (tmp,tp); /* set the times */ ^~~~~ utimes mbx.c: In function 'mbx_header': mbx.c:709:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = LOCAL->buf,*length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_snarf': mbx.c:965:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_copy': mbx.c:1046:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1060:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_append': mbx.c:1195:7: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_parse': mbx.c:1269:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,HDRSIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c: In function 'mbx_rewrite': mbx.c:1757:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mbx.c:1781:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mmdf.c -o mmdf.so mmdf.c: In function 'mmdf_isvalid': mmdf.c:382:2: warning: implicit declaration of function 'utime'; did you mean 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime In file included from mmdf.c:34:0: mmdf.c: In function 'mmdf_open': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mmdf.c:669:5: note: in expansion of macro 'flock' flock (LOCAL->ld,LOCK_UN); /* release the lock */ ^~~~~ mmdf.c:658:7: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,i); /* make sure tied off */ ^~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_header': mmdf.c:769:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.header.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:779:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ elt->private.msg.header.text.size); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_text_work': mmdf.c:846:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.text.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_copy': mmdf.c:1091:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:1118:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_append': mmdf.c:1288:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_rewrite': mmdf.c:2302:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.special.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c:2385:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize = size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mmdf.c: In function 'mmdf_extend': mmdf.c:2431:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` tenex.c -o tenex.so tenex.c: In function 'tenex_isvalid': tenex.c:206:2: warning: implicit declaration of function 'utime'; did you mean 'stime'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ stime In file included from tenex.c:47:0: tenex.c: In function 'tenex_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ tenex.c:315:7: note: in expansion of macro 'flock' if (flock (fd,LOCK_EX|LOCK_NB)) { ^~~~~ tenex.c: In function 'tenex_fast': tenex.c:516:4: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,elt->private.msg.full.text.size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_header': tenex.c:567:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,*length = i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:572:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s,i); /* slurp the data */ ^~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_text': tenex.c:614:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:629:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s,i); /* slurp the data */ ^~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_snarf': tenex.c:799:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_expunge': tenex.c:890:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:917:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_copy': tenex.c:1008:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c:1016:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_append': tenex.c:1150:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size);/* revert file */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ tenex.c: In function 'tenex_hdrpos': tenex.c:1456:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = LOCAL->buf,i = min (msiz-siz,(long) MAILTMPLEN)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mtx.c -o mtx.so mtx.c: In function 'mtx_isvalid': mtx.c:199:2: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ utimes In file included from mtx.c:42:0: mtx.c: In function 'mtx_rename': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mtx.c:308:7: note: in expansion of macro 'flock' if (flock (fd,LOCK_EX|LOCK_NB)) { ^~~~~ mtx.c: In function 'mtx_header': mtx.c:515:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,*length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_snarf': mtx.c:710:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_expunge': mtx.c:801:6: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,m); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:827:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,LOCAL->filesize); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_copy': mtx.c:918:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,LOCAL->buf,j); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c:926:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ mtx.c: In function 'mtx_append': mtx.c:1053:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,sbuf.st_size);/* revert file */ ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` news.c -o news.so news.c: In function 'news_open': news.c:371:36: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~ In file included from osdep.h:47:0, from news.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ news.c:371:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) { ^~~~~~~~~~~~ In file included from osdep.h:47:0, from news.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ news.c: In function 'news_valid': news.c:162:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,t = s = (char *) fs_get (sbuf.st_size+1),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ news.c: In function 'news_list': news.c:229:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,s = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` phile.c -o phile.so phile.c: In function 'phile_open': phile.c:318:3: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,buf->data = (unsigned char *) fs_get (buf->size + 1),buf->size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mh.c -o mh.so mh.c: In function 'mh_ping': mh.c:865:46: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:865:56: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:939:17: warning: too many arguments for format [-Wformat-extra-args] sprintf (tmp,"Message copy to MH mailbox failed: %.80s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mh.c: In function 'mh_append': mh.c:1131:37: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c:1131:47: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (tmp,&names,mh_select,mh_numsort)) > 0) { ^~~~~~~~~~ In file included from osdep.h:47:0, from mh.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mh.c: In function 'mh_setdate': mh.c:1282:3: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ utimes mh.c: In function 'mh_path': mh.c:251:7: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,(t = (char *) fs_get (sbuf.st_size + 1)),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mx.c -o mx.so mx.c: In function 'mx_scan_contents': mx.c:278:38: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:278:48: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mx_select,mx_numsort)) > 0) ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c: In function 'mx_rename': mx.c:463:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:463:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mx_select,mx_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c: In function 'mx_ping': mx.c:732:51: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); ^~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:732:61: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mx_select,mx_numsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mx.c:35: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mx.c:804:17: warning: too many arguments for format [-Wformat-extra-args] sprintf (tmp,"Message copy to MX mailbox failed: %.80s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mx.c:35:0: mx.c: In function 'mx_lockindex': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mx.c:1174:5: note: in expansion of macro 'flock' flock (LOCAL->fd,LOCK_EX); /* get exclusive lock */ ^~~~~ mx.c: In function 'mx_setdate': mx.c:1287:3: warning: implicit declaration of function 'utime'; did you mean 'utimes'? [-Wimplicit-function-declaration] utime (file,tp); /* set the times */ ^~~~~ utimes mx.c: In function 'mx_header': mx.c:637:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (fd,LOCAL->buf,elt->rfc822_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_lockindex': mx.c:1178:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] read (LOCAL->fd,s = idx = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mx.c: In function 'mx_unlockindex': mx.c:1270:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->fd,size); ^~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` mix.c -o mix.so mix.c: In function 'mix_scan_contents': mix.c:324:38: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) ^~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:324:49: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] if ((nfiles = scandir (name,&names,mix_select,mix_msgfsort)) > 0) ^~~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c: In function 'mix_create': mix.c:63:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" ^ mix.c:63:16: note: in definition of macro 'MTAFMT' #define MTAFMT "V%08lx\015\012L%08lx\015\012N%08lx\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from mix.c:33:0: mix.c: In function 'mix_delete': osdep.h:60:15: warning: implicit declaration of function 'safe_flock'; did you mean 'mail_lock'? [-Wimplicit-function-declaration] #define flock safe_flock ^ mix.c:471:50: note: in expansion of macro 'flock' else if (((fd = open (tmp,O_RDWR,NIL)) < 0) || flock (fd,LOCK_EX|LOCK_NB)) ^~~~~ mix.c: In function 'mix_rename': mix.c:556:54: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] for (i = lasterror = 0,n = scandir (tmp,&names,mix_rselect,alphasort); ^~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c: In function 'mix_expunge': mix.c:1054:53: warning: passing argument 3 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); ^~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent *)' but argument is of type 'int (*)(struct dirent *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c:1054:64: warning: passing argument 4 of 'scandir' from incompatible pointer type [-Wincompatible-pointer-types] long nfiles = scandir (stream->mailbox,&names,mix_select,mix_msgfsort); ^~~~~~~~~~~~ In file included from osdep.h:47:0, from mix.c:33: /usr/include/dirent.h:255:12: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' extern int scandir (const char *__restrict __dir, ^~~~~~~ mix.c: In function 'mix_copy': mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^ mix.c:69:16: note: in definition of macro 'MSRFMT' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^ mix.c:69:16: note: in definition of macro 'MSRFMT' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_append': mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^ mix.c:69:16: note: in definition of macro 'MSRFMT' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:69:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^ mix.c:69:16: note: in definition of macro 'MSRFMT' #define MSRFMT "%s%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_index_update': mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 13 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 14 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 15 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 16 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:65:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 17 has type 'int' [-Wformat=] #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^ mix.c:65:16: note: in definition of macro 'IXRFMT' #define IXRFMT ":%08lx:%04d%02d%02d%02d%02d%02d%c%02d%02d:%08lx:%08lx:%08lx:%08lx:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_status_update': mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:67:16: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'int' [-Wformat=] #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^ mix.c:67:16: note: in definition of macro 'STRFMT' #define STRFMT ":%08lx:%08lx:%04x:%08lx:\015\012" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_copy': mix.c:1477:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,size); /* revert file */ ^~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_append': mix.c:1594:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fd,size); /* revert all writes to file*/ ^~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_meta_update': mix.c:2209:5: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (LOCAL->mfd,i); /* and tie off at that point */ ^~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_index_update': mix.c:2255:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fileno (idxf),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2288:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] if (ret) ftruncate (fileno (idxf),ftell (idxf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_status_update': mix.c:2335:4: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] ftruncate (fileno (statf),sbuf.st_size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c:2369:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] if (ret) ftruncate (fileno (statf),ftell (statf)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mix.c: In function 'mix_sortcache_update': mix.c:2697:16: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result] if (ret) ftruncate (fileno (f),ftell (f)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -D_REENTRANT -fPIC -DPIC -c `cat CFLAGS` flock.c -o flock.so gcc -shared -Wl,-soname,libc-client.so.0 -o libc-client.so.0 osdep.so mail.so misc.so newsrc.so smanager.so utf8.so utf8aux.so siglocal.so dummy.so pseudo.so netmsg.so flstring.so fdstring.so rfc822.so nntp.so smtp.so imap4r1.so pop3.so unix.so mbx.so mmdf.so tenex.so mtx.so news.so phile.so mh.so mx.so mix.so flock.so `cat LDFLAGS` osdep.so: In function `ssl_onceonlyinit': /home/pterjan/rpmbuild/BUILD/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' ln -s libc-client.so.0 libc-client.so make[3]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/c-client' make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/c-client' echo slx > OSTYPE touch rebuild sh -c 'rm -rf rebuild || true' Building bundled tools... cd mtest;make make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/mtest' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mtest.o mtest.c mtest.c: In function 'prompt': mtest.c:622:3: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] gets (txt); ^~~~ fgets mtest.c: In function 'mm_login': mtest.c:744:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets (user,NETMAXUSER-1,stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mtest mtest.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /home/pterjan/rpmbuild/BUILD/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' mtest.o: In function `prompt': /home/pterjan/rpmbuild/BUILD/imap-2007f/mtest/mtest.c:622: warning: the `gets' function is dangerous and should not be used. make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/mtest' cd ipopd;make make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/ipopd' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o ipop2d.o ipop2d.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop2d ipop2d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /home/pterjan/rpmbuild/BUILD/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o ipop3d.o ipop3d.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o ipop3d ipop3d.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /home/pterjan/rpmbuild/BUILD/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/ipopd' cd imapd;make make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/imapd' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\" -DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/etc/nologin\" -c -o imapd.o imapd.c `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -DANOFILE=\"/etc/anonymous.newsgroups\" -DALERTFILE=\"/etc/imapd.alert\" -DNNTPFILE=\"/etc/imapd.nntp\" -DUSERALERTFILE=\".imapalert\" -DSHUTDOWNFILE=\"/etc/nologin\" -o imapd imapd.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /home/pterjan/rpmbuild/BUILD/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/imapd' cd mailutil;make make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/mailutil' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o mailutil.o mailutil.c mailutil.c: In function 'mbxcopy': mailutil.c:594:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets (tmp,MAILTMPLEN-1,stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mailutil.c: In function 'mm_login': mailutil.c:893:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets (username,NETMAXUSER-1,stdin); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o mailutil mailutil.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /home/pterjan/rpmbuild/BUILD/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/mailutil' cd mlock;make || true make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/mlock' `cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -c -o mlock.o mlock.c mlock.c: In function 'die': mlock.c:60:3: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] write (1,"?",1); /* indicate "impossible" failure */ ^~~~~ fwrite mlock.c: In function 'main': mlock.c:75:31: warning: implicit declaration of function 'getegid'; did you mean 'getgrgid'? [-Wimplicit-function-declaration] if (!grp || (grp->gr_gid != getegid ())) ^~~~~~~ getgrgid mlock.c:94:3: warning: implicit declaration of function 'chdir'; did you mean 'mkdir'? [-Wimplicit-function-declaration] chdir (dir); ^~~~~ mkdir mlock.c:113:30: warning: implicit declaration of function 'time'; did you mean 'die'? [-Wimplicit-function-declaration] if (!stat (lock,&sb) && (time (0) > (sb.st_ctime + LOCKTIMEOUT * 60))) ^~~~ die mlock.c:114:7: warning: implicit declaration of function 'unlink'; did you mean 'unix'? [-Wimplicit-function-declaration] unlink (lock); /* time out lock if enough time has passed */ ^~~~~~ unix mlock.c:123:23: warning: implicit declaration of function 'getpid'; did you mean 'getpt'? [-Wimplicit-function-declaration] (unsigned long) getpid ()); ^~~~~~ getpt mlock.c:125:5: warning: implicit declaration of function 'gethostname'; did you mean 'gethostbyname'? [-Wimplicit-function-declaration] gethostname (hitch + len,MAXHOSTNAMELEN); ^~~~~~~~~~~ gethostbyname mlock.c:132:7: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] close (ld); /* close the hitching-post */ ^~~~~ pclose mlock.c:138:11: warning: implicit declaration of function 'link'; did you mean 'bind'? [-Wimplicit-function-declaration] i = link (hitch,lock) ? errno : 0; ^~~~ bind mlock.c:161:20: warning: implicit declaration of function 'sleep'; did you mean 'strsep'? [-Wimplicit-function-declaration] if (tries--) sleep (1); /* sleep 1 second and try again */ ^~~~~ strsep mlock.c:169:3: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] read (0,tmp,1); /* read continue signal from parent */ ^~~~ fread `cat ../c-client/CCTYPE` `cat ../c-client/CFLAGS` -o mlock mlock.o make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/mlock' cd dmail;make || true make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/dmail' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dmail.o dmail.c dmail.c: In function 'main': dmail.c:162:35: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] if (s[2] && ((s[2] == '-') || isdigit (s[2]))) precedence = atol (s + 2); ^~~~~~~ dmail.c: In function 'file_string_setpos': dmail.c:123:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (s->curpos,sizeof (char),(unsigned int) s->cursize,(FILE *) s->data); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o dquota.o dquota.c In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdlib.h:25, from ../c-client/osdep.h:43, from ../c-client/c-client.h:42, from dquota.c:29: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o dmail dmail.o dquota.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /home/pterjan/rpmbuild/BUILD/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/dmail' cd tmail;make || true make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/tmail' `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tmail.o tmail.c tmail.c: In function 'main': tmail.c:171:37: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration] if (s[2] && ((s[2] == '-') || isdigit (s[2]))) precedence = atol (s + 2); ^~~~~~~ tmail.c: In function 'file_string_setpos': tmail.c:124:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result] fread (s->curpos,sizeof (char),(unsigned int) s->cursize,(FILE *) s->data); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -c -o tquota.o tquota.c In file included from /usr/include/bits/libc-header-start.h:33:0, from /usr/include/stdlib.h:25, from ../c-client/osdep.h:43, from ../c-client/c-client.h:42, from tquota.c:29: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ `cat ../c-client/CCTYPE` -I../c-client `cat ../c-client/CFLAGS` -o tmail tmail.o tquota.o ../c-client/c-client.a `cat ../c-client/LDFLAGS` ../c-client/c-client.a(osdep.o): In function `ssl_onceonlyinit': /home/pterjan/rpmbuild/BUILD/imap-2007f/c-client/osdep.c:302: warning: the use of `tmpnam' is dangerous, better use `mkstemp' make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f/tmail' make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/imap-2007f' + mv -f c-client/c-client.a c-client.a + mv -f c-client/libc-client.so.0 . + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.J3t0J1 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64 '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64 ++ dirname /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64 + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64 + cd imap-2007f + '[' 1 -eq 1 ']' + install -d /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/lib64 + install -d /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/include/imap + install -m0644 c-client/c-client.h c-client/dummy.h c-client/env.h c-client/env_unix.h c-client/fdstring.h c-client/flockcyg.h c-client/flocksim.h c-client/flstring.h c-client/fs.h c-client/ftl.h c-client/imap4r1.h c-client/linkage.h c-client/mail.h c-client/misc.h c-client/netmsg.h c-client/newsrc.h c-client/nl.h c-client/nntp.h c-client/os_a32.h c-client/os_a41.h c-client/os_a52.h c-client/os_aix.h c-client/os_aos.h c-client/os_art.h c-client/os_asv.h c-client/os_aux.h c-client/os_bsd.h c-client/os_bsf.h c-client/os_bsi.h c-client/os_cvx.h c-client/os_cyg.h c-client/os_d-g.h c-client/os_do4.h c-client/os_drs.h c-client/os_dyn.h c-client/os_hpp.h c-client/os_isc.h c-client/os_lnx.h c-client/os_lyn.h c-client/os_mct.h c-client/os_mnt.h c-client/os_nto.h c-client/os_nxt.h c-client/os_os4.h c-client/os_osf.h c-client/os_osx.h c-client/os_ptx.h c-client/os_pyr.h c-client/os_qnx.h c-client/os_s40.h c-client/os_sc5.h c-client/os_sco.h c-client/os_sgi.h c-client/os_shp.h c-client/os_slx.h c-client/os_soln.h c-client/os_solo.h c-client/os_sos.h c-client/os_sua.h c-client/os_sun.h c-client/os_sv2.h c-client/os_sv4.h c-client/os_ult.h c-client/os_vu2.h c-client/osdep.h c-client/pseudo.h c-client/rfc822.h c-client/smtp.h c-client/sslio.h c-client/tcp.h c-client/tcp_unix.h c-client/unix.h c-client/utf8.h c-client/utf8aux.h /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/include/imap/ + install -m0644 src/osdep/tops-20/shortsym.h /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/include/imap/ + install -m0644 src/osdep/tops-20/linkage.c /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/include/imap/ + install -m0755 libc-client.so.0 /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/lib64/ + ln -snf libc-client.so.0 /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/lib64/libc-client.so + install -m0644 c-client.a /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/lib64/libc-client.a + /usr/lib/rpm/find-debuginfo.sh -j4 -m -i --build-id-seed 2007f-11.mga7 --unique-debug-suffix -2007f-11.mga7.x86_64 --unique-debug-src-base c-client-2007f-11.mga7.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/imap-2007f extracting debug info from /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64/usr/lib64/libc-client.so.0 /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 6729 blocks + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/translate_menu + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + '[' 1 -eq 1 ']' + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink Processing files: lib64c-client0-2007f-11.mga7.x86_64 Provides: c-client = 2007f-11.mga7 lib64c-client0 = 2007f-11.mga7 lib64c-client0(x86-64) = 2007f-11.mga7 libc-client.so.0()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcrypt.so.1()(64bit) libcrypt.so.1(GLIBC_2.2.5)(64bit) libcrypto.so.1.0.0()(64bit) libcrypto.so.1.0.0(libcrypto.so.1.0.0)(64bit) libssl.so.1.0.0()(64bit) libssl.so.1.0.0(libssl.so.1.0.0)(64bit) Processing files: lib64c-client-devel-2007f-11.mga7.x86_64 Provides: c-client-devel = 2007f-11.mga7 devel(libc-client(64bit)) lib64c-client-devel = 2007f-11.mga7 lib64c-client-devel(x86-64) = 2007f-11.mga7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: devel(libcrypt(64bit)) devel(libcrypto(64bit)) devel(libssl(64bit)) Obsoletes: imap-devel lib64c-client-php0-devel libc-client-php-devel Processing files: c-client-debugsource-2007f-11.mga7.x86_64 Provides: c-client-debugsource = 2007f-11.mga7 c-client-debugsource(x86-64) = 2007f-11.mga7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: lib64c-client0-debuginfo-2007f-11.mga7.x86_64 Provides: debuginfo(build-id) = 61ccadb49de8dfd0d8db30ef5b3dc5aed583dafd lib64c-client0-debuginfo = 2007f-11.mga7 lib64c-client0-debuginfo(x86-64) = 2007f-11.mga7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: c-client-debugsource(x86-64) = 2007f-11.mga7 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64 Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64c-client0-2007f-11.mga7.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64c-client-devel-2007f-11.mga7.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/c-client-debugsource-2007f-11.mga7.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/lib64c-client0-debuginfo-2007f-11.mga7.x86_64.rpm Executing(%clean): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bzIfIw + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd imap-2007f + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILDROOT/c-client-2007f-11.mga7.x86_64 + exit 0 Executing(--clean): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.puRcI1 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + rm -rf imap-2007f + exit 0 D: [iurt_root_command] Success!