Bugzilla – Bug 1221712
GCC 14: cpio package fails
Last modified: 2024-04-10 12:56:32 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.
Cpio has been fixed to build with GCC14, closing.