Bug 1225772

Summary: Package bdfresize does not build with gcc14 because of old autoconf
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Jambor <mjambor>
Component: OtherAssignee: Mike FABIAN <maiku.fabian>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1220571    

Description Martin Jambor 2024-05-31 18:09:12 UTC
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 bdfresize fails to compile.  This can be seen
online at: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/bdfresize/standard/x86_64

It can be reproduced locally with command: osc build --clean
--alternative-project home:rguenther:nextgcc

Since the last release appears to be from 2001, either using
-std=gnu89 (but see
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115310) or -fpermissive
seems appropriate.

The error (that halts the build) is:

[   11s] checking for gcc... gcc
[   11s] checking whether the C compiler (gcc -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -flto=auto) works... no
[   11s] configure: error: installation or configuration problem: C compiler cannot create executables.

...most probably because main in a generated snippet misses a return
type.
Comment 1 Martin Jambor 2024-07-08 12:40:32 UTC
I've submitted https://build.opensuse.org/request/show/1186165