Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944041 - app-arch/zip-3.0-r7 fails to compile with gcc15.0.0_pre20241117-r2::gentoo
Summary: app-arch/zip-3.0-r7 fails to compile with gcc15.0.0_pre20241117-r2::gentoo
Status: RESOLVED DUPLICATE of bug 943727
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-19 20:23 UTC by OldManSeph
Modified: 2024-11-20 03:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
zip-3.0-r7 build log (zip-3.0-r7.build.log,12.34 KB, text/x-log)
2024-11-19 20:23 UTC, OldManSeph
Details
OldManSeph emerge --info (emerge_info.txt,6.93 KB, text/plain)
2024-11-19 20:23 UTC, OldManSeph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description OldManSeph 2024-11-19 20:23:00 UTC
Created attachment 910336 [details]
zip-3.0-r7 build log

-DUNICODE_SUPPORT -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H ttyio.c
ttyio.c: In function ‘getp’:
ttyio.c:628:13: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  628 |             read(f, &c, 1);
      |             ^~~~~~~~~~~~~~
In file included from zipup.c:109:
zipup.c: In function ‘file_read’:
unix/zipup.h:21:22: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   21 | #define zread(f,b,n) read(f,b,n)
      |                      ^~~~~~~~~~~
zipup.c:1264:10: note: in expansion of macro ‘zread’
 1264 |          zread(ifile, buf, 1); len = 1; /* keep single \r if EOF */
      |          ^~~~~
fileio.c: In function ‘ask_for_split_read_path’:
fileio.c:2120:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2120 |     fgets(buf, SPLIT_MAXPATH, stdin);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fileio.c:2143:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2143 |       fgets(buf, SPLIT_MAXPATH, stdin);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -c -I. -DUNIX -O2 -pipe -std=gnu89 -DLARGE_FILE_SUPPORT -DUIDGID_NOT_16BIT -DBZIP2_SUPPORT -DCRYPT -DUNICODE_SUPPORT -DUIDGID_NOT_16BIT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H unix/unix.c
fileio.c: In function ‘ask_for_split_write_path’:
fileio.c:2324:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2324 |     fgets(buf, FNMAX, stdin);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -c -I. -DUNIX -O2 -pipe -std=gnu89 -DLARGE_FILE_SUPPORT -DUIDGID_NOT_16BIT -DBZIP2_SUPPORT -DCRYPT -DUNICODE_SUPPORT -DUIDGID_NOT_16BIT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H crc32.c
unix/unix.c:70:14: error: conflicting types for ‘DIR’; have ‘FILE’
   70 | typedef FILE DIR;
      |              ^~~
In file included from unix/unix.c:29:
/usr/include/dirent.h:127:28: note: previous declaration of ‘DIR’ with type ‘DIR’
  127 | typedef struct __dirstream DIR;
      |                            ^~~
unix/unix.c: In function ‘readdir’:
unix/unix.c:79:6: error: argument ‘dirp’ doesn’t match prototype
   79 | DIR *dirp;
      |      ^~~~
In file included from /usr/include/features.h:511,
                 from /usr/include/sys/types.h:25,
                 from ./unix/osdep.h:30,
                 from ./tailor.h:93,
                 from ./zip.h:88,
                 from unix/unix.c:11:
/usr/include/dirent.h:167:23: error: prototype declaration
  167 | extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64)
      |                       ^~~~~~~~~~
unix/unix.c: In function ‘readd’:
unix/unix.c:103:15: warning: passing argument 1 of ‘readdir’ from incompatible pointer type [-Wincompatible-pointer-types]
  103 |   e = readdir(d);
      |               ^
      |               |
      |               DIR * {aka FILE *}
unix/unix.c:79:6: note: expected ‘DIR *’ but argument is of type ‘DIR *’ {aka ‘FILE *’}
   79 | DIR *dirp;
      |      ^~~~
unix/unix.c: In function ‘procname’:
unix/unix.c:181:25: warning: passing argument 1 of ‘readd’ from incompatible pointer type [-Wincompatible-pointer-types]
  181 |       while ((e = readd(d)) != NULL) {
      |                         ^
      |                         |
      |                         DIR * {aka FILE *}
unix/unix.c:97:6: note: expected ‘DIR *’ but argument is of type ‘DIR *’ {aka ‘FILE *’}
   97 | DIR *d;                 /* directory stream to read from */
      |      ^
make[1]: *** [unix/Makefile:117: unix.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/app-arch/zip-3.0-r7/work/zip30'
make: *** [unix/Makefile:202: generic] Error 2
 * ERROR: app-arch/zip-3.0-r7::gentoo failed (compile phase):
 *   emake failed
Comment 1 OldManSeph 2024-11-19 20:23:22 UTC
Created attachment 910337 [details]
OldManSeph emerge --info
Comment 2 immolo 2024-11-20 03:47:28 UTC

*** This bug has been marked as a duplicate of bug 943727 ***