* Package: net-libs/c-client-2007f-r6 * Repository: gentoo * USE: abi_x86_64 amd64 elibc_glibc ipv6 kernel_linux libressl pam ssl userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking imap-2007f.tar.Z to /var/tmp/portage/net-libs/c-client-2007f-r6/work >>> Source unpacked in /var/tmp/portage/net-libs/c-client-2007f-r6/work >>> Preparing source in /var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f ... * Applying c-client-2006k_GENTOO_Makefile.patch ... [ ok ] * Applying c-client-2006k_GENTOO_amd64-so-fix.patch ... patching file src/osdep/unix/Makefile Hunk #1 succeeded at 977 with fuzz 1 (offset 15 lines). [ ok ] * Applying c-client-2007f-ldflags.patch ... [ ok ] * Applying c-client-2007f-openssl-1.1.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f ... make -j1 -j1 SSLTYPE=unix lnp PASSWDTYPE=pam IP=6 'EXTRACFLAGS=-O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -fPIC' 'EXTRALDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' EXTRALIBS= GSSDIR=/usr make[1]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/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 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Do you want to continue this build anyway? Type y or n please: make[1]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/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 ln -s tools/an . make build EXTRACFLAGS='-O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -fPIC' EXTRALDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=unix IP=6 EXTRASPECIALS='' BUILDTYPE=lnp make[1]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f' make[2]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f' make[2]: 'ip6' is up to date. make[2]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f' Building c-client for lnp... echo `cat SPECIALS` > c-client/SPECIALS cd c-client;make lnp EXTRACFLAGS='-O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -fPIC'\ EXTRALDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0'\ EXTRADRIVERS='mbox'\ EXTRAAUTHENTICATORS=''\ PASSWDTYPE=pam SSLTYPE=unix IP=6\ make[2]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f/c-client' make build EXTRACFLAGS='-O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -fPIC' EXTRALDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=unix IP=6 `cat SPECIALS` OS=slx \ SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \ SPOOLDIR=/var/spool \ ACTIVEFILE=/var/lib/news/active \ RSHPATH=/usr/bin/rsh \ BASECFLAGS= \ BASELDFLAGS="-lpam -ldl" make[3]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/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' Building with SSL ln -s ssl_unix.c osdepssl.c echo -I/usr/include -I/usr/include/openssl -DSSL_CERT_DIRECTORY=\"/etc/ssl/certs\" -DSSL_KEY_DIRECTORY=\"/etc/ssl/certs\" >> OSCFLAGS echo " ssl_onceonlyinit ();" >> linkage.c echo -L/usr/lib64 -lssl -lcrypto >> LDFLAGS Once-only environment setup... echo x86_64-pc-linux-gnu-gcc > CCTYPE echo `cat CFLAGS` '-O2 -pipe -march=native -falign-functions=32:25:16 -fno-common -Werror=format-security -Wformat -fPIC' -DCHUNKSIZE=65536 > CFLAGS cat: CFLAGS: No such file or directory echo `cat OSCFLAGS` -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=\"\" \ -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" \ -DLOCKPGM3=\"/etc/mlock\" > OSCFLAGS echo `cat LDFLAGS` > LIBS echo -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 `cat LDFLAGS` -lcrypt -lpam -ldl > LDFLAGS echo "x86_64-pc-linux-gnu-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;x86_64-pc-linux-gnu-ranlib c-client.a" > ARCHIVE echo "`cat CCTYPE` `cat CFLAGS` -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 `cat OSFLAGS` -shared \ -Wl,-soname,libc-client.so.1 -o libc-client.so.1.0.0 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" `cat LIBS` -lpam -ldl \ >> ARCHIVE cat: OSFLAGS: No such file or directory echo slx > OSTYPE ./drivers mbox 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' PAM password authentication echo -lpam -ldl >> LDFLAGS ln -s ckp_pam.c osdepckp.c cat osdepbas.c osdepckp.c osdeplog.c osdepssl.c > osdep.c 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 `cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:25, from osdep.h:43, from osdep.c:31: /usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from osdep.c:31: env_unix.c: In function ‘lock_work’: osdep.h:60:15: warning: implicit declaration of function ‘safe_flock’ [-Wimplicit-function-declaration] 60 | #define flock safe_flock | ^~~~~~~~~~ env_unix.c:1374:27: note: in expansion of macro ‘flock’ 1374 | if (op & LOCK_NB) i = flock (fd,op); | ^~~~~ In file included from osdep.c:56: flocklnx.c: In function ‘safe_flock’: flocklnx.c:60:38: error: format not a string literal and no format arguments [-Werror=format-security] 60 | if (!logged++) syslog (LOG_ERR,tmp); | ^~~ In file included from auths.c:2, from env_unix.c:260, from osdep.c:50: auth_md5.c: In function ‘auth_md5_pwd’: auth_md5.c:195:5: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result] 195 | read (fd,buf = (char *) fs_get (sbuf.st_size + 1),sbuf.st_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:50: env_unix.c: In function ‘pw_login’: env_unix.c:785:37: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result] 785 | (ret = env_init (user,home))) chdir (myhomedir ()); | ^~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:53: tcp_unix.c: In function ‘tcp_name’: tcp_unix.c:979:44: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1001 [-Wformat-overflow=] 979 | sprintf (tmp,"Reverse DNS resolution %s",adr); | ^~ ~~~ In file included from /usr/include/stdio.h:867, from osdep.c:32: /usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 24 and 1047 bytes into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from osdep.c:53: tcp_unix.c:987:42: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 987 | if (flag) sprintf (ret = tmp,"%s %s",t,adr); | ^ In file included from /usr/include/stdio.h:867, from osdep.c:32: /usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 2 or more bytes (assuming 1025) into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[3]: *** [Makefile:926: osdep.o] Error 1 make[3]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f/c-client' make[2]: *** [Makefile:495: lnp] Error 2 make[2]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f/c-client' make[1]: *** [Makefile:674: OSTYPE] Error 2 make[1]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f' make: *** [Makefile:311: lnp] Error 2 * ERROR: net-libs/c-client-2007f-r6::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-libs/c-client-2007f-r6::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-libs/c-client-2007f-r6::gentoo'`. * The complete build log is located at '/var/log/portage/net-libs:c-client-2007f-r6:20200324-100218.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-libs/c-client-2007f-r6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-libs/c-client-2007f-r6/temp/environment'. * Working directory: '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f' * S: '/var/tmp/portage/net-libs/c-client-2007f-r6/work/imap-2007f'