[Bug 1225958] New: Package zsh does not build with gcc14 because of new errors
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1225958 Bug ID: 1225958 Summary: Package zsh does not build with gcc14 because of new errors Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: mjambor@suse.com QA Contact: qa-bugs@suse.de Blocks: 1220571 Target Milestone: --- Found By: --- Blocker: --- GCC 14 newly by default treats as errors a number of situations which before were only warnings. For more information see https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571. Because of this, package zsh fails to compile. This can be seen online at: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:G... It can be reproduced locally with command: osc build --clean --alternative-project home:rguenther:nextgcc The list of patches linked from https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/z/zsh.md?ref_ty... might help. The (first) error (that halts the build) is: [ 44s] termcap.c:45:14: error: ‘_nc_boolcodes’ declared as function returning an array [ 44s] 45 | static char *boolcodes[] = { [ 44s] | ^~~~~~~~~ [ 44s] termcap.c:45:1: error: function ‘_nc_boolcodes’ is initialized like a variable [ 44s] 45 | static char *boolcodes[] = { [ 44s] | ^~~~~~ [ 44s] termcap.c:45:14: error: conflicting types for ‘_nc_boolcodes’; have ‘int()’ [ 44s] 45 | static char *boolcodes[] = { [ 44s] | ^~~~~~~~~ [ 44s] /usr/include/ncursesw/term.h:761:1: note: previous declaration of ‘_nc_boolcodes’ with type ‘const char * const*(void)’ [ 44s] 761 | NCURSES_WRAPPED_VAR(NCURSES_CONST char * const *, boolcodes); [ 44s] | ^~~~~~~~~~~~~~~~~~~ -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com