Bug 1221712 - GCC 14: cpio package fails
Summary: GCC 14: cpio package fails
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Danilo Spinella
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 13:18 UTC by Michal Jireš
Modified: 2024-04-10 12:56 UTC (History)
1 user (show)

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 13:18:48 UTC
Building cpio with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/cpio/standard/x86_64

Due to:

util.c: In function ‘tape_fill_input_buffer’:
util.c:204:12: error: implicit declaration of function ‘tape_eof’ [-Wimplicit-function-declaration]
  204 |       if (!tape_eof (in_des))
      |            ^~~~~~~~
util.c:209:15: error: implicit declaration of function ‘tape_eod’ [-Wimplicit-function-declaration]
  209 |           if (tape_eod (in_des))
      |               ^~~~~~~~



Builds with:
(functions are defined later in the file)

Index: cpio-2.15/src/util.c
===================================================================
--- cpio-2.15.orig/src/util.c
+++ cpio-2.15/src/util.c
@@ -47,6 +47,9 @@
 extern int errno;
 #endif

+int tape_eof( int tape_des);
+int tape_eod( int tape_des);
+
 /* Write `output_size' bytes of `output_buffer' to file
    descriptor OUT_DES and reset `output_size' and `out_buff'.  */



See the meta bug#1220571 for more info.
Comment 1 Danilo Spinella 2024-04-10 12:56:32 UTC
Cpio has been fixed to build with GCC14, closing.