Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc-14 - cannot build net-libs/c-client
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 586

PostPosted: Tue Nov 26, 2024 9:53 am    Post subject: gcc-14 - cannot build net-libs/c-client Reply with quote

Code:

>>> Emerging (350 of 1068) net-libs/c-client-2007f_p7::gentoo
 * imap-2007f.tar.Z BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                    [ ok ]
 * uw-imap_2007f~dfsg-7.debian.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                  [ ok ]
>>> Unpacking source...
>>> Unpacking imap-2007f.tar.Z to /var/tmp/portage/net-libs/c-client-2007f_p7/work
>>> Unpacking uw-imap_2007f~dfsg-7.debian.tar.xz to /var/tmp/portage/net-libs/c-client-2007f_p7/work
>>> Source unpacked in /var/tmp/portage/net-libs/c-client-2007f_p7/work
>>> Preparing source in /var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f ...
 * Applying patches from /var/tmp/portage/net-libs/c-client-2007f_p7/work/debian/patches ...
 *   1001_shlibs.patch ...                                                                                                                                                                                                                                                         [ ok ]
 *   1002_flock_fix_syslog_args.patch ...                                                                                                                                                                                                                                          [ ok ]
 *   1003_fix_zero_len_when_mail_fetch_body_is_empty.patch ...                                                                                                                                                                                                                     [ ok ]
 *   1004_support_rfc5464_METADATA.patch ...                                                                                                                                                                                                                                       [ ok ]
 *   1005_poll.patch ...                                                                                                                                                                                                                                                           [ ok ]
 *   1006_openssl1.1_autoverify.patch ...                                                                                                                                                                                                                                          [ ok ]
 *   2002_mailspool.patch ...                                                                                                                                                                                                                                                      [ ok ]
 *   2004_no_binaries_below_etc.patch ...                                                                                                                                                                                                                                          [ ok ]
 *   2010_disallow_escaping_home.patch ...                                                                                                                                                                                                                                         [ ok ]
 *   2011_disable_version_check.patch ...                                                                                                                                                                                                                                          [ ok ]
 *   2012_krb5_multidev.patch ...                                                                                                                                                                                                                                                  [ ok ]
 *   2013_disable_rsh.patch ...                                                                                                                                                                                                                                                    [ ok ]
 *   2014_openssl1.1.1_sni.patch ...                                                                                                                                                                                                                                               [ ok ]
 * Applying c-client-2006k_GENTOO_Makefile.patch ...                                                                                                                                                                                                                               [ ok ]
 * Applying c-client-2007f_GENTOO_amd64-so-fix.patch ...                                                                                                                                                                                                                           [ ok ]
 * Applying c-client-2007f_p7-ldflags.patch ...                                                                                                                                                                                                                                    [ ok ]
 * Applying c-client-2007f-scandir-callback-types.patch ...                                                                                                                                                                                                                        [ ok ]
 * Applying c-client-2007f_p7-implicit-declaration-fix.patch ...                                                                                                                                                                                                                   [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f ...
make -j2 -j1 SSLTYPE=unix lnps PASSWDTYPE=pam IP=6 'EXTRACFLAGS=-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -fPIC' 'EXTRALDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs' EXTRALIBS= GSSDIR=/usr
make[1]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f_p7/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_p7/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='-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -fPIC' EXTRALDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=unix IP=6 EXTRASPECIALS='' BUILDTYPE=lnps
make[1]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f'
make[2]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f'
make[2]: 'ip6' is up to date.
make[2]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f'
Building c-client for lnps...
echo `cat SPECIALS`  > c-client/SPECIALS
cd c-client;make lnps EXTRACFLAGS='-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -fPIC'\
 EXTRALDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs'\
 EXTRADRIVERS='mbox'\
 EXTRAAUTHENTICATORS=''\
 PASSWDTYPE=pam SSLTYPE=unix IP=6\
 
make[2]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f/c-client'
make[2]: krb5-config.mit: No such file or directory
make build EXTRACFLAGS='-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -fPIC' EXTRALDFLAGS='-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=pam SSLTYPE=unix IP=6 `cat SPECIALS` OS=lnx \
 SIGTYPE=psx CHECKPW=pam CRXTYPE=nfs \
 SPOOLDIR=/var/spool MAILSPOOL=/var/mail \
 ACTIVEFILE=/var/lib/news/active \
 RSHPATH=/usr/bin/rsh \
 BASECFLAGS= \
 ARCHIVE="libc-client.so" \
 BASELDFLAGS="-L../c-client -lc-client -lpam -ldl -lc" \
 ARRC="x86_64-pc-linux-gnu-gcc --shared -Wl,-soname,libc-client.so. -o" \
 LIBRARIES="-lpam -ldl -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -L/usr/lib64 -lssl -lcrypto  " \
 RANLIB=true
make[3]: Entering directory '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f/c-client'
sh -c 'rm -rf auths.c crexcl.c ip_unix.c linkage.[ch] siglocal.c osdep*.[ch] *.o ARCHIVE ARCHIVENAME *FLAGS *TYPE libc-client.so || 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`  '-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -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/mail\" \
 -DANONYMOUSHOME=\"/var/mail/anonymous\" \
 -DACTIVEFILE=\"/var/lib/news/active\" -DNEWSSPOOL=\"/var/spool/news\" \
 -DLOCKPGM=\"\" \
 -DLOCKPGM1=\"/usr/libexec/mlock\" -DLOCKPGM2=\"/usr/sbin/mlock\" \
 -DLOCKPGM3=\"/etc/mlock\" > OSCFLAGS
echo  `cat LDFLAGS` > LIBS
echo -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs `cat LDFLAGS` -lcrypt -L../c-client -lc-client -lpam -ldl -lc > LDFLAGS
echo "x86_64-pc-linux-gnu-gcc --shared -Wl,-soname,libc-client.so. -o libc-client.so 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 -lpam -ldl -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -L/usr/lib64 -lssl -lcrypto  ;true libc-client.so" > ARCHIVE
echo "`cat CCTYPE` `cat CFLAGS` -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs `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` -L../c-client -lc-client -lpam -ldl -lc \
>> ARCHIVE
cat: OSFLAGS: No such file or directory
echo libc-client.so > ARCHIVENAME
echo lnx > 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_lnx.h osdep.h
ln -s os_lnx.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 lnx = sc5 -o lnx = 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 lnx 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:26,
                 from osdep.h:43,
                 from osdep.c:31:
/usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
osdep.c: In function ‘ssl_start_work’:
osdep.c:458:40: warning: ‘TLSv1_client_method’ is deprecated: Since OpenSSL 1.1.0 [-Wdeprecated-declarations]
  458 |                                        TLSv1_client_method () :
      |                                        ^~~~~~~~~~~~~~~~~~~
In file included from osdep.c:266:
/usr/include/openssl/ssl.h:2065:50: note: declared here
 2065 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_client_method(void);
      |                                                  ^~~~~~~~~~~~~~~~~~~
osdep.c: In function ‘ssl_server_init’:
osdep.c:956:40: warning: ‘TLSv1_server_method’ is deprecated: Since OpenSSL 1.1.0 [-Wdeprecated-declarations]
  956 |                                        TLSv1_server_method () :
      |                                        ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:2064:50: note: declared here
 2064 | OSSL_DEPRECATEDIN_1_1_0 __owur const SSL_METHOD *TLSv1_server_method(void);
      |                                                  ^~~~~~~~~~~~~~~~~~~
osdep.c:971:5: warning: ‘SSL_CTX_use_RSAPrivateKey_file’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  971 |     else if (!(SSL_CTX_use_RSAPrivateKey_file (stream->context,key,
      |     ^~~~
/usr/include/openssl/ssl.h:1728:12: note: declared here
 1728 | __owur int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file,
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
osdep.c: In function ‘ssl_genkey’:
osdep.c:1027:5: warning: ‘RSA_generate_key’ is deprecated: Since OpenSSL 0.9.8 [-Wdeprecated-declarations]
 1027 |     if (!(key = RSA_generate_key (export ? keylength : 1024,RSA_F4,NIL,NIL))) {
      |     ^~
In file included from /usr/include/openssl/x509.h:36,
                 from /usr/include/openssl/x509v3.h:25,
                 from osdep.c:265:
/usr/include/openssl/rsa.h:264:30: note: declared here
  264 | OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void
      |                              ^~~~~~~~~~~~~~~~
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);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
env_unix.c: In function ‘pw_login’:
env_unix.c:785:44: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  785 |              (ret = env_init (user,home))) chdir (myhomedir ());
      |                                            ^~~~~~~~~~~~~~~~~~~~
`cat CCTYPE` -c `cat CFLAGS` mail.c
`cat CCTYPE` -c `cat CFLAGS` misc.c
`cat CCTYPE` -c `cat CFLAGS` newsrc.c
newsrc.c: In function ‘newsrc_state’:
newsrc.c:468:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  468 |         fread (s,(size_t) 1,size,f);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
`cat CCTYPE` -c `cat CFLAGS` smanager.c
`cat CCTYPE` -c `cat CFLAGS` utf8.c
`cat CCTYPE` -c `cat CFLAGS` utf8aux.c
`cat CCTYPE` -c `cat CFLAGS` siglocal.c
`cat CCTYPE` -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]
  383 |       read (fd,buf+ssiz,bsiz = min (fsiz,BUFSIZE));
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`cat CCTYPE` -c `cat CFLAGS` pseudo.c
`cat CCTYPE` -c `cat CFLAGS` netmsg.c
`cat CCTYPE` -c `cat CFLAGS` flstring.c
`cat CCTYPE` -c `cat CFLAGS` fdstring.c
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdlib.h:26,
                 from osdep.h:43,
                 from fdstring.c:30:
/usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  197 | # 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]
   97 |     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]
   67 |   read (d->fd,s->chunk,(size_t) s->cursize);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`cat CCTYPE` -c `cat CFLAGS` rfc822.c
`cat CCTYPE` -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]
  764 |     fread (LOCAL->over_fmt = (char *) fs_get ((size_t) k + 3),
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  765 |            (size_t) 1,(size_t) k,f);
      |            ~~~~~~~~~~~~~~~~~~~~~~~~
nntp.c: In function ‘nntp_header’:
nntp.c:1100:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1100 |         fread (elt->private.msg.header.text.data =
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1101 |                (unsigned char *) fs_get ((size_t) *size + 3),
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1102 |                (size_t) 1,(size_t) *size,f);
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`cat CCTYPE` -c `cat CFLAGS` smtp.c
`cat CCTYPE` -c `cat CFLAGS` imap4r1.c
`cat CCTYPE` -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]
  848 |       fread (elt->private.msg.header.text.data = (unsigned char *)
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  849 |              fs_get ((size_t) elt->private.msg.header.text.size + 1),
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  850 |              (size_t) 1,(size_t) elt->private.msg.header.text.size,f);
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`cat CCTYPE` -c `cat CFLAGS` unix.c
unix.c: In function ‘unix_valid’:
unix.c:231:21: error: passing argument 2 of ‘utime’ from incompatible pointer type [-Wincompatible-pointer-types]
  231 |         utime (file,tp);        /* set the times */
      |                     ^~
      |                     |
      |                     time_t * {aka long int *}
In file included from osdep.h:49,
                 from unix.c:46:
/usr/include/utime.h:51:41: note: expected ‘const struct utimbuf *’ but argument is of type ‘time_t *’ {aka ‘long int *’}
   51 |                   const struct utimbuf *__file_times)
      |                   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
unix.c: In function ‘unix_copy’:
unix.c:998:15: error: passing argument 2 of ‘utime’ from incompatible pointer type [-Wincompatible-pointer-types]
  998 |   utime (file,tp);              /* set the times */
      |               ^~
      |               |
      |               time_t * {aka long int *}
/usr/include/utime.h:51:41: note: expected ‘const struct utimbuf *’ but argument is of type ‘time_t *’ {aka ‘long int *’}
   51 |                   const struct utimbuf *__file_times)
      |                   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
unix.c: In function ‘unix_append’:
unix.c:1159:15: error: passing argument 2 of ‘utime’ from incompatible pointer type [-Wincompatible-pointer-types]
 1159 |   utime (file,tp);              /* set the times */
      |               ^~
      |               |
      |               time_t * {aka long int *}
/usr/include/utime.h:51:41: note: expected ‘const struct utimbuf *’ but argument is of type ‘time_t *’ {aka ‘long int *’}
   51 |                   const struct utimbuf *__file_times)
      |                   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
unix.c: In function ‘unix_unlock’:
unix.c:1424:40: error: passing argument 2 of ‘utime’ from incompatible pointer type [-Wincompatible-pointer-types]
 1424 |     if (now && !utime (stream->mailbox,tp)) LOCAL->filetime = tp[1];
      |                                        ^~
      |                                        |
      |                                        time_t * {aka long int *}
/usr/include/utime.h:51:41: note: expected ‘const struct utimbuf *’ but argument is of type ‘time_t *’ {aka ‘long int *’}
   51 |                   const struct utimbuf *__file_times)
      |                   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
unix.c: In function ‘unix_rewrite’:
unix.c:2250:33: error: passing argument 2 of ‘utime’ from incompatible pointer type [-Wincompatible-pointer-types]
 2250 |     if (!utime (stream->mailbox,tp)) LOCAL->filetime = tp[1];
      |                                 ^~
      |                                 |
      |                                 time_t * {aka long int *}
/usr/include/utime.h:51:41: note: expected ‘const struct utimbuf *’ but argument is of type ‘time_t *’ {aka ‘long int *’}
   51 |                   const struct utimbuf *__file_times)
      |                   ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
unix.c: In function ‘unix_open’:
unix.c:519:7: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  519 |       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]
  630 |     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]
  640 |     read (LOCAL->fd,s = (char *) fs_get (elt->private.msg.header.text.size+1),
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  641 |           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]
  707 |     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]
  956 |       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]
  982 |     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]
 1152 |     ftruncate (fd,sbuf.st_size);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
unix.c: In function ‘unix_rewrite’:
unix.c:2139:11: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2139 |           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]
 2239 |     ftruncate (LOCAL->fd,LOCAL->filesize = size);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unix.c: In function ‘unix_extend’:
unix.c:2285:9: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2285 |         ftruncate (LOCAL->fd,LOCAL->filesize);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unix.c: In function ‘mbox_ping’:
unix.c:2611:9: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2611 |         read (sfd,s = (char *) fs_get (size + 1),size);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unix.c:2621:11: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2621 |           ftruncate (LOCAL->fd,LOCAL->filesize);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unix.c:2629:11: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2629 |           ftruncate (LOCAL->fd,LOCAL->filesize);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unix.c:2640:11: warning: ignoring return value of ‘ftruncate’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2640 |           ftruncate (sfd,0);    /* truncate sysinbox to zero bytes */
      |           ^~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:879: unix.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f/c-client'
make[2]: *** [Makefile:504: lnps] Error 2
make[2]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f/c-client'
make[1]: *** [Makefile:680: OSTYPE] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f'
make: *** [Makefile:313: lnps] Error 2
 * ERROR: net-libs/c-client-2007f_p7::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-libs/c-client-2007f_p7::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/c-client-2007f_p7::gentoo'`.
 * The complete build log is located at '/var/log/portage/build/net-libs/c-client-2007f_p7:20241126-094322.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-libs/c-client-2007f_p7/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/c-client-2007f_p7/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f'
 * S: '/var/tmp/portage/net-libs/c-client-2007f_p7/work/imap-2007f'

>>> Failed to emerge net-libs/c-client-2007f_p7, Log file:

>>>  '/var/log/portage/build/net-libs/c-client-2007f_p7:20241126-094322.log'



Code:

g64 ~ # emerge --info net-libs/c-client
Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/split-usr/desktop/gnome, gcc-14, glibc-2.40-r5, 6.6.62-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.62-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-8550U_CPU_@_1.80GHz-with-glibc2.40
KiB Mem:    16389464 total,   2183864 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Sun, 24 Nov 2024 23:50:32 +0000
Head commit of repository gentoo: eb65bf7df4f898e146d6a3064f6dbefda2b1e13b

Timestamp of repository arrans-overlay: Sun, 24 Nov 2024 16:18:33 +0000
Head commit of repository arrans-overlay: d186379618d5e50c205e0afef46e3c817a22309a

Timestamp of repository pentoo: Fri, 22 Nov 2024 20:33:59 +0000
Head commit of repository pentoo: 5c24b4cfda4ceee8420a139d50c8694184f10ebc

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust-bin:         1.81.0-r100::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-devel/binutils:        2.42-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang:           18.1.8::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            18.1.8-r1::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

arrans-overlay
    location: /var/db/repos/arrans-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/arrans-overlay.git
    masters: gentoo
    volatile: False

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64-v3

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe"
GENTOO_MIRRORS="http://gentoo.aditsu.net:8000/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet colord crypt cups dbus dri dts dvd dvdr eds egl elogind encode evo exif flac gdbm gdk-pixbuf gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qml qt5 qt6 readline sdl seccomp sound spell split-usr ssl startup-notification svg sysprof test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="actions alias auth_basic authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers http2 include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias access_compat asis auth_digest auth_form authn_dbd authz_dbd cern_meta dbd dumpio ident imagemap lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_fcgi proxy_ftp proxy_hcheck proxy_html proxy_http proxy_http2 proxy_scgi proxy_uwsgi proxy_wstunnel ratelimit remoteip reqtimeout session session_cookie session_crypto session_dbd slotmem_shm substitute version watchdog xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput evdev synaptics vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="WebAssembly DirectX" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu dummy fbdev intel nouveau radeon radeonsi vesa i915 qxl vmware d3d12 virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

net-libs/c-client-2007f_p7::gentoo was built with the following:
USE="ipv6 pam ssl -doc -kerberos -static-libs -topal" ABI_X86="(64)"
CFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -fPIC"
CXXFLAGS="-O3 -march=native -mtune=native -fomit-frame-pointer -pipe -fPIC"


_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1958
Location: 127.0.0.1

PostPosted: Tue Nov 26, 2024 10:05 am    Post subject: Reply with quote

https://bugs.gentoo.org/919252
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 586

PostPosted: Tue Nov 26, 2024 10:11 am    Post subject: Reply with quote

it was compiled ok in gcc-13

:oops: :roll:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22771

PostPosted: Tue Nov 26, 2024 2:41 pm    Post subject: Reply with quote

Newer compilers are often stricter about language conformance. Based on the log you showed, this package needs attention from a qualified C programmer. It is still using features that were deprecated years ago, and its version number suggests it has not had a release in more than 10 years. As such, I am not at all surprised that it fails to build under a stricter compiler.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1935

PostPosted: Tue Nov 26, 2024 3:34 pm    Post subject: Reply with quote

Errors on old code can sometimes be avoided by using -std= CFLAG that was common at the time. e.g. -std=gnu90 (which was the old default until gcc-5.x in 2015)
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 586

PostPosted: Wed Nov 27, 2024 1:02 am    Post subject: Reply with quote

i learnt from other distro there is -fpermissive

will gentoo go to that route?

:roll: :oops:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22771

PostPosted: Wed Nov 27, 2024 2:14 am    Post subject: Reply with quote

Using -fpermissive is the wrong response. As the compiler explained to you, the code is using an incompatible pointer. As I read the patch in the linked Gentoo bug report, the program is probably getting the right result for the wrong reason. However, every failing call site would need to be checked to verify that they are all practically correct. It would be simpler to fix this code so that the compiler can check that the function is used properly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum