Bug 1221696

Summary: GCC 14: byaccj package fails
Product: [openSUSE] openSUSE Tumbleweed Reporter: Michal Jireš <michal.jires>
Component: JavaAssignee: E-mail List <java-maintainers>
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 Michal Jireš 2024-03-19 12:04:45 UTC
Building byaccj with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/byaccj/standard/x86_64

Due to:

main.c: In function ‘done’:
main.c:88:43: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
   88 |   if (action_file) { fclose(action_file); unlink(action_file_name); }
      |                                           ^~~~~~





Builds with automatically generated:

Index: byaccj1.15/src/main.c
===================================================================
--- byaccj1.15.orig/src/main.c
+++ byaccj1.15/src/main.c
@@ -9,6 +9,7 @@
 #endif

 #include "defs.h"
+#include <unistd.h>

 char dflag;
 char lflag;

See the meta bug#1220571 for more info.
Comment 1 OBSbugzilla Bot 2024-03-19 21:35:02 UTC
This is an autogenerated message for OBS integration:
This bug (1221696) was mentioned in
https://build.opensuse.org/request/show/1159649 Factory / byaccj