Bugzilla – Bug 1220467
GCC 14: dcraw package fails
Last modified: 2024-03-07 13:25:00 UTC
Building dcraw with GCC 14 fails here: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/dcraw/standard/x86_64 Due to: fuji_green.c: In function ‘read_shorts’: fuji_green.c:75:5: error: implicit declaration of function ‘swab’ [-Wimplicit-function-declaration] 75 | swab (pixel, pixel, count*2); | ^~~~ fujiturn.c: In function ‘main’: fujiturn.c:76:37: error: implicit declaration of function ‘ntohs’ [-Wimplicit-function-declaration] 76 | mid[orow*owide+ocol][i] = ntohs(in[icol][i]); | ^~~~~ fujiturn.c:90:28: error: implicit declaration of function ‘htons’ [-Wimplicit-function-declaration] 90 | out[ocol][i] = htons ( | ^~~~~ Builds with: Index: dcraw.spec_dir/dcraw/fuji_green.c =================================================================== --- dcraw.spec_dir.orig/dcraw/fuji_green.c +++ dcraw.spec_dir/dcraw/fuji_green.c @@ -5,6 +5,7 @@ $Date: 2006/03/01 01:46:47 $ */ +#define _XOPEN_SOURCE #include <ctype.h> #include <math.h> #include <setjmp.h> Index: dcraw.spec_dir/dcraw/fujiturn.c =================================================================== --- dcraw.spec_dir.orig/dcraw/fujiturn.c +++ dcraw.spec_dir/dcraw/fujiturn.c @@ -15,6 +15,7 @@ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> +#include <arpa/inet.h> #ifdef _16BIT typedef unsigned short value;
Thanks for the report. Do you plan to create a submit request?
(In reply to Michael Vetter from comment #1) > Thanks for the report. Do you plan to create a submit request? No sorry. I am doing this for many packages, so I leave the final resolution to people more familiar with the individual package.
(In reply to Michal Jireš from comment #2) > (In reply to Michael Vetter from comment #1) > > Thanks for the report. Do you plan to create a submit request? > > No sorry. I am doing this for many packages, so I leave the final resolution > to people more familiar with the individual package. Nevermind, I will submit the request. (Originally I assumed more cases will be handled upstream)
Integrated in factory