Bug 1221696 - GCC 14: byaccj package fails
Summary: GCC 14: byaccj package fails
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Java (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 12:04 UTC by Michal Jireš
Modified: 2024-03-19 21:35 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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