Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943727 - app-arch/zip-3.0-r7 fails with gcc-15.0.0_pre20241117: unix/unix.c:70:14: error: conflicting types for ‘DIR’; have ‘FILE’
Summary: app-arch/zip-3.0-r7 fails with gcc-15.0.0_pre20241117: unix/unix.c:70:14: err...
Status: RESOLVED FIXED
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:
: 944041 (view as bug list)
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 08:01 UTC by tdr
Modified: 2024-11-24 23:31 UTC (History)
3 users (show)

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


Attachments
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-18 08:01 UTC, tdr
Details
build failure log (zip-3.0-r7:20241118-075659.build.log,14.65 KB, text/plain)
2024-11-18 08:01 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-18 08:01:00 UTC
gcc-15.0.0_pre20241117 default to using -std=gnu23 (stricter)

prototype mismatch

Reproducible: Always

Steps to Reproduce:
emerge =gcc-15.0.0_pre20241117
emerge =app-arch:zip-3.0-r7
Actual Results:  
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’:


works with gcc:15.0.0_pre20241110
Comment 1 tdr 2024-11-18 08:01:29 UTC
Created attachment 908943 [details]
emerge --info
Comment 2 tdr 2024-11-18 08:01:52 UTC
Created attachment 908944 [details]
build failure log
Comment 3 immolo 2024-11-20 03:47:28 UTC
*** Bug 944041 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2024-11-24 23:31:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1fd2801b201f00cc014fb8a59bc32baad8e110a

commit a1fd2801b201f00cc014fb8a59bc32baad8e110a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-24 23:25:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-24 23:25:52 +0000

    app-arch/zip: build all configure tests w/ gnu89 too
    
    Closes: https://bugs.gentoo.org/943727
    Signed-off-by: Sam James <sam@gentoo.org>

 app-arch/zip/zip-3.0-r7.ebuild | 2 ++
 1 file changed, 2 insertions(+)