Bug 1221714 - GCC 14: fipscheck package fails
Summary: GCC 14: fipscheck package fails
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Security (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Security Team bot
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-03-19 13:25 UTC by Michal Jireš
Modified: 2024-07-08 15:41 UTC (History)
2 users (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:25:42 UTC
Building fipscheck with GCC 14 fails here:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/fipscheck/standard/x86_64

Due to (exhaustive list of errors):

filehmac.c: In function ‘compute_file_hmac’:
filehmac.c:219:24: error: implicit declaration of function ‘OSSL_PROVIDER_load’ [-Wimplicit-function-declaration]
  219 |                 fips = OSSL_PROVIDER_load(NULL, "fips");
      |                        ^~~~~~~~~~~~~~~~~~
filehmac.c:219:22: error: assignment to ‘OSSL_PROVIDER *’ {aka ‘struct ossl_provider_st *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  219 |                 fips = OSSL_PROVIDER_load(NULL, "fips");
      |                      ^
filehmac.c:265:32: error: passing argument 3 of ‘EVP_MAC_final’ from incompatible pointer type [-Wincompatible-pointer-types]
  265 |         EVP_MAC_final(c, rbuf, &hlen, sizeof(rbuf));
      |                                ^~~~~
      |                                |
      |                                unsigned int *
/usr/include/openssl/evp.h:1228:47: note: expected ‘size_t *’ {aka ‘long unsigned int *’} but argument is of type ‘unsigned int *’
 1228 |                   unsigned char *out, size_t *outl, size_t outsize);
      |                                       ~~~~~~~~^~~~


See the meta bug#1220571 for more info.
Comment 1 Martin Jambor 2024-07-08 15:41:05 UTC
I have submitted https://build.opensuse.org/request/show/1186220 which contains upstream patches addressing this issue (and perhaps more).